Forum Discussion
How to conditioanlly format the data in drill down using percentile
Hi,
My data is similar to:
| L1 | L2 | L3 | Score | Respones |
| A | A1 | A11 | 8 | 22 |
| A | A1 | A11 | 6 | 44 |
| A | A1 | A12 | 10 | 38 |
| A | A2 | A21 | 1 | 16 |
| A | A2 | A21 | 5 | 35 |
| A | A2 | A23 | 0 | 31 |
| A | A3 | A31 | 8 | 45 |
| A | A3 | A32 | 1 | 47 |
| A | A3 | A32 | 2 | 16 |
| A | A3 | A33 | 10 | 29 |
| B | B1 | B11 | 8 | 49 |
| B | B1 | B11 | 5 | 23 |
| B | B1 | B12 | 5 | 23 |
| B | B1 | B12 | 6 | 26 |
| B | B2 | B21 | 2 | 48 |
| B | B2 | B22 | 3 | 32 |
| B | B2 | B22 | 10 | 10 |
| B | B3 | B31 | 7 | 33 |
| B | B3 | B32 | 2 | 49 |
| B | B3 | B32 | 5 | 33 |
| C | C1 | C11 | 2 | 41 |
| C | C1 | C11 | 8 | 26 |
| C | C1 | C12 | 5 | 41 |
| C | C2 | C21 | 7 | 48 |
| C | C2 | C21 | 5 | 13 |
| C | C2 | C22 | 0 | 10 |
| C | C2 | C22 | 6 | 46 |
| C | C3 | C31 | 5 | 23 |
| C | C3 | C31 | 4 | 39 |
| C | C3 | C31 | 7 | 13 |
My data is in matrix visual and is drill down (L1, L2, L3 are the rows in drill down and score and responses are columns).
Now I want to conditionally format the data (score and responses column) on the basis of percentile. The catch here is that the percentile should be determined only on the basis of the amount of data that we are showing at any point of time.
For eg:
| Score | Responses | |
| A | 8.52 | 323 |
| B | 9.53 | 326 |
| C | 8 | 300 |
If I drill further, the 25th and 75th percentile should be decided according to the drilled numbers and formatted accordingly
| Score | Responses | |
| A1 | 8.32 | 104 |
| A2 | 8.91 | 82 |
| A3 | 8.86 | 137 |
Now the percentile should be based upon only these 3 numbers. (The numbers are just made up. In actual, at an aggregated level, I am taking a weighted mean of score and responses to calculate the scores).
parry2k Cmcmahan po DAN npowerbi
2 Replies
- Icey
Community Support
Hi Anonymous ,
In the example you provided, how does the value of score come from?
Best Regards,
Icey
- AnonymousNot applicable
Hi Icey,
The score is coming as a weighted mean (score*response)/ response for the data at aggreagtion.
For Power BI,
SUMX(Table, score*response)/ SUM(response)
I hope this is what you are asking for
Let me know if anything else is required
Regards,
Rohan Chhabra