Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi all,
I have a single table of monthly produtivity employees reports.
I have a measure for media for each task category and need to calculate media for all company in each category with filters options to year, task category, Unit Group and employee group.
My fact table ("Rels") has : Initial Date , Final Date (in a single month per line) , Unit Id, AuthorId, Task Category, Value (number of tasks done), and employee group.
I have others table to calendar, Units Name with column to unit group, Tasks, Employee Group and Employees with Id
I have a measure to media = average (Rels[Valoue])
My Media - all Company = AVERAGEX (ALLEXCEPT(Rels, Rels[Category],Calendar[Date],Rels[EmployeeGroup],Units[UnitGroup]),Mesuare[Media])
This Media - all company is not working.
What I need to change?
My schema:
Solved! Go to Solution.
Hi @AleMacedo
Try code like below,
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
=
CALCULATE (
[Media],
ALLEXCEPT (
Rels,
Rels[Category],
Calendar[Date],
Rels[EmployeeGroup],
Units[UnitGroup]
)
)
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
I did it:
Hi @AleMacedo
Try code like below,
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Thank you!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |