Forum Discussion
Showing Top 3 Counts in Matrix Table
Hi bdehning ,
After my testing, it is unlikely that you want to act on the measure in the filter to achieve your needs, I would suggest the following approach:
Create these measures:
Count_Cause =
COUNT('Table'[Cause Grouping])_RANK =
RANKX(ALLEXCEPT('Table', 'Table'[Body Grouping]), [Count_Cause], , DESC, Skip)Output =
IF(
[_RANK] <= 3,
[Count_Cause],
BLANK()
)
Then put the measure Output into the Value of the Matrix:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am not getting what you got so far. I am getting this so far. I will try again b ut providing my model info below.
My Body Grouping is in Table BodyPart
My Cause Grouping is in Table Injury Cause
BodyPart and Injury Cause are both joined to LossRun Table.
My Count_Cause =
My _RANK =
My Output =
I do have _Rank has a Filter and is less than or equal to 3.
Something is a miss on my end.
- bdehning2 years ago
Post Prodigy
It is something with my _RANK measure as all Body Grouping Rows show 1.
- bdehning2 years ago
Post Prodigy
Count_Cause is not providing accurate numbers either for each Body Grouping?
- bdehning2 years ago
Post Prodigy
I started to break this down so you can help. I did create
Total Cause Count = COUNTROWS(RELATEDTABLE(LossRun))
So now I see table with Counts for each of Rows of Body Part and Cause Grouping.
I then tried to use_RANK =RANKX(ALLEXCEPT('BodyPart', 'BodyPart'[Body Grouping]), [Total Cause Count], , DESC, Skip), but all _RANK rows show a 1.
What do I need to correct in _RANK to make it work.