Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

How to conditioanlly format the data in drill down using percentile

Hi,

My data is similar to:

L1L2L3ScoreRespones
AA1A11822
AA1A11644
AA1A121038
AA2A21116
AA2A21535
AA2A23031
AA3A31845
AA3A32147
AA3A32216
AA3A331029
BB1B11849
BB1B11523
BB1B12523
BB1B12626
BB2B21248
BB2B22332
BB2B221010
BB3B31733
BB3B32249
BB3B32533
CC1C11241
CC1C11826
CC1C12541
CC2C21748
CC2C21513
CC2C22010
CC2C22646
CC3C31523
CC3C31439
CC3C31713

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:

 

 ScoreResponses
A8.52323
B9.53326
C8300

 

If I drill further, the 25th and 75th percentile should be decided according to the drilled numbers and formatted accordingly

 ScoreResponses
A18.32104
A28.9182
A38.86137

 

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's avatar
    Icey
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

    In the example you provided, how does the value of score come from?

     

    Best Regards,

    Icey

    • Anonymous's avatar
      Anonymous
      Not 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