Forum Discussion
Showing Top 3 Counts in Matrix Table
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.
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. - bdehning2 years ago
Post Prodigy
I added more data to your example in both columns and it shows Body Grouping and Cause Grouping when count is only one and starts to add more than 3 Rows. Here is my current table. It is not just showing TOP 3 Body Grouping now.
- bdehning2 years ago
Post Prodigy
Here is my Table I have now for the Slicer Selection I have.
How would your _RANK measure below change with my model?
_RANK = RANKX(ALLEXCEPT('Table', 'Table'[Body Grouping]), [Count_Cause], , DESC, Skip)