Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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] )
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 86 | |
| 85 | |
| 68 | |
| 64 |