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
I am trying to summarize some data that is set out as follows
I wannt to show the number of tasks for each person and also what the worst [Due Status] is for each person. So for example Person A has 4 tasks and the worst [Due Status] is 'Overdue'. I have done this by adding a calculated column [Rank] and then creating a new table using the following DAX
Summary =
ADDCOLUMNS(
SUMMARIZE(
'Table1',
Table1[Person],
"Number of tasks", CALCULATE(COUNTROWS('Table1'))
),
"Status",
CALCULATE (
SELECTCOLUMNS (
TOPN ( 1, 'Table1', 'Table1'[Rank] ),
"val", 'Table1'[Due Status]
)
)
)
There is one extra bit I am stuggling with. That is also adding a column that counts the number of times the worst [Due Status] appears.
For example:
Solved! Go to Solution.
Hi @Anonymous ,
if you create additional calculated column and/or calculated table, your model becomes slow performing.
See my pbi file. I have used a small snapshot table for the ranking.
https://1drv.ms/u/s!Aj45jbu0mDVJi2GypBfgxC2_wMkd?e=Ca9qyB
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What is th definitition of "worst due status"?
Hi @Anonymous ,
if you create additional calculated column and/or calculated table, your model becomes slow performing.
See my pbi file. I have used a small snapshot table for the ranking.
https://1drv.ms/u/s!Aj45jbu0mDVJi2GypBfgxC2_wMkd?e=Ca9qyB
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
please provide the sample data in usable format, not as a screenshot.
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 |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |