Forum Discussion
dashbuilder
5 years agoNew Member
Measure is calculated incorrectly in a table
Hi all, I would appreciate it if someone could help me please with my measures: I have the following table: Date Item Price 01.01.2020 A 20 01.01.2020 A 25 01.01.2020 A 30 0...
- 5 years ago
dashbuilder , I created three versions of it, Please check those out in the file attached after signature
dashbuilder
5 years agoNew Member
amitchandak thank you for your response. I have created a new data table as follows
Then, I altered the formula as suggested:
Percent Growth =
var _max = maxx('DATE','DATE'[Date])
var _min = MINX('DATE','DATE'[Date])
return
DIVIDE((CALCULATE(AVERAGE(Table[Price]), FILTER(ALLSELECTED('DATE'),'DATE'[Date]=_max))
-CALCULATE(AVERAGE(Table[Price]),FILTER(ALLSELECTED('DATE'),'DATE'[Date]=_min))),
CALCULATE(AVERAGE(Table[Price]),FILTER(ALLSELECTED('DATE'),'DATE'[Date]=_min)))*100Now, I get "0"s:
Am I doing something wrong? Thank you heaps.
amitchandak
Super User
5 years agodashbuilder , I created three versions of it, Please check those out in the file attached after signature
- dashbuilder5 years agoNew Member
Awesome, thank you heaps amitchandak