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.
Hi,
So I have this problem, I have a table with individual efficiency scores (per day) of each worker. I know how tu calculate a monthly median for each one of them. But, each worker is assigned to a different sector. And what I want to do, is to calculate a monthly median, from a monthly median (score) from every worker assigned to a spesific room (chose by a slicer or filter). So a monthly median for each sector, but calculated from monthly scores of workers assigned to it.
What i have:
- a table with date (daily), worker id, and score
- a table with workers id's, and sector
Tried various combinations and nothin, either empty result or dax error. Im new to it so the struggle is big. Please help.
Solved! Go to Solution.
Hi @blazko
Please try this formula
Median Score = IF( ISFILTERED('Users'[user]), CALCULATE(MEDIAN('Users'[score])), MEDIANX('Sectors',CALCULATE(MEDIAN('Users'[score]))) )
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 |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |