Spark Line funktionality

Dear All,

I am looking for a similar functionality to sparklines in excel.
This means I want to look at the trend for the sales price value development. But this should be represented as a single KPI for example using a math function. That gives us the gradient of the trendline.

Thank you