Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear Experts
I have the below report being used by the business. I was asked to populate the average of total sales of all stores of group A for a particular week.
I do not have date in my dataset, there is only weekyear, month and year.
Can anyone please help me with the DAX code to achieve the average sales for a particular week.
Thanks
Mahad
Solved! Go to Solution.
@Anonymous
Give this a try.
Avg =
CALCULATE (
AVERAGE ( YourTable[Sales] ),
ALLEXCEPT ( YourTable, YourTable[Week], YourTable[Group] )
)
@Anonymous
Give this a try.
Avg =
CALCULATE (
AVERAGE ( YourTable[Sales] ),
ALLEXCEPT ( YourTable, YourTable[Week], YourTable[Group] )
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
98 | |
80 | |
67 | |
63 |
User | Count |
---|---|
145 | |
111 | |
104 | |
84 | |
64 |