Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi there,
I have a matrix which shows the no of participants per category per type.
Category | Type 1 | Type 2 | Type 3
categoryA, 20, 40, 40 --(total 100 participants)
categoryB, 10,160,30 --(total 200 participants)
I am using a measure which holds the NoOfParticipants which is the CountRows of the table. The measure is auto filtered by the category and type in the matrix.
I would like to present this as a % out of a total per row, so in above example we will get:
Category | Type 1 | Type 2 | Type 3
categoryA, 20%, 40%, 40% --(total 100% participants)
categoryB, 5%,80%,15% --(total 100% participants)
How do i create the second matrix?
Thank you.
Solved! Go to Solution.
EDIT: I completely misread the question. You can just use the Show Value As option in the dropdown of the measure in the matrix options to select Row Total. This gives the results you want without any complicated measures.
I'm leaving my previous answer below, just in case you find it interesting.
If you could share your current COUNTROWS measure, that would be incredibly helpful as a starting point for us.
It seems likely that you can to use an expression like this that uses ISINSCOPE to determine if it is being calculated as a regular value or as a column total in a matrix.
NoOfParticipants for Matrix = IF( ISINSCOPE(Table1[Type]), [NoOfParticipants], DIVIDE( [NoOfParticipants], CALCULATE([NoOfParticipants], ALLSELECTED(Table1) ) )*100 )
EDIT: I completely misread the question. You can just use the Show Value As option in the dropdown of the measure in the matrix options to select Row Total. This gives the results you want without any complicated measures.
I'm leaving my previous answer below, just in case you find it interesting.
If you could share your current COUNTROWS measure, that would be incredibly helpful as a starting point for us.
It seems likely that you can to use an expression like this that uses ISINSCOPE to determine if it is being calculated as a regular value or as a column total in a matrix.
NoOfParticipants for Matrix = IF( ISINSCOPE(Table1[Type]), [NoOfParticipants], DIVIDE( [NoOfParticipants], CALCULATE([NoOfParticipants], ALLSELECTED(Table1) ) )*100 )
Divide the first measure by itself, but in the second one use calculate and allexcept whatever the type field is
User | Count |
---|---|
126 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |