Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |