Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
101 | |
66 | |
48 | |
39 | |
34 |
User | Count |
---|---|
166 | |
112 | |
60 | |
56 | |
37 |