Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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 |
---|---|
80 | |
74 | |
62 | |
61 | |
45 |
User | Count |
---|---|
108 | |
97 | |
88 | |
81 | |
61 |