Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hey guys i'm learning dax. I wrote this measure on training data=
Solved! Go to Solution.
hi @Anonymous
Since Total Quantity Sold = SUM(Sales[Quantity])
In the Measure [Average Quantity Sold per Day], It nested a measure [Total Quantity Sold].
Average Quantity Sold per Day = AVERAGEX(VALUES(Dates[Date]);[Total Quantity Sold]) ,
So it essentially looks like this formula
Average Quantity Sold per Day=AVERAGEX(VALUES('Date'[Date]); CALCULATE(SUM(Sales[Quantity])) )
not this formula Average Quantity Sold per Day = AVERAGEX(VALUES(Dates[Date]);SUM(Sales[Quantity]))
Please refer to CALCULATE Function in dax
https://docs.microsoft.com/en-us/dax/calculate-function-dax
Regards,
Lin
hi @Anonymous
Since Total Quantity Sold = SUM(Sales[Quantity])
In the Measure [Average Quantity Sold per Day], It nested a measure [Total Quantity Sold].
Average Quantity Sold per Day = AVERAGEX(VALUES(Dates[Date]);[Total Quantity Sold]) ,
So it essentially looks like this formula
Average Quantity Sold per Day=AVERAGEX(VALUES('Date'[Date]); CALCULATE(SUM(Sales[Quantity])) )
not this formula Average Quantity Sold per Day = AVERAGEX(VALUES(Dates[Date]);SUM(Sales[Quantity]))
Please refer to CALCULATE Function in dax
https://docs.microsoft.com/en-us/dax/calculate-function-dax
Regards,
Lin
User | Count |
---|---|
93 | |
85 | |
76 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |