Forum Discussion
Calculate %-difference between two data points in different series
Hi,
I have two measures with one data point in each and I want to calculate the %-difference between these in a card, how can I do that correctly?
The formulas for the measures are as follows:
So I would want a card saying "-25%" in this case (ie (6-8)/8=-0,25)
I also wonder how I can change the format of the date in the chart? It does not format as in the source table.
Anonymous
One if the two
Difference % = divide([Quantity Last Period] - [Current Quantity]) , [Current Quantity])
Difference % = divide([Quantity Last Period] , [Current Quantity]) -1
3 Replies
- Greg_DecklerCommunity ChampionSo like:
Percent Difference = ([Quantity Last Period] - [Current Quantity]) / [Current Quantity]
? - amitchandakSuper User
Anonymous
One if the two
Difference % = divide([Quantity Last Period] - [Current Quantity]) , [Current Quantity])
Difference % = divide([Quantity Last Period] , [Current Quantity]) -1 - AnonymousNot applicable
Hi Anonymous ,
Check if the reply above solved you first question. And for you second question, you can select the column then find the Format feature under Modeling pane.
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.