Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Numeric Dynamic Rating

Hello Power BI Community,

I am building a performance scorecard having 3 KPIs, which are available as input and I have a reference scale also to assign the rating based on inputs, so I am looking that how this can be built in Table Visual in Power BI

 

What I am looking for help with is that if my KPI 1 is 88% then in column KPI 1_Points it should be populated as 20 (based on the reference scale)

 

KPI 1, KPI 2 and KPI 3 are available and wanted to populate the numbers in columns KPI 1_Points, KPI 2_Points and KPI 3_Points based on the reference scale given below

KPI 1KPI2KPI3KPI 1_PointsKPI 2_PointsKPI 3_Points
88%37   
90%15   
69%48   
77%210   
100%515   
98%011   
81%917   

 

The reference Scale is as given below

 

KPI1Points KPI2Points KPI3Points
100%50 020 < 730
95-99%40 115 8 -1015
91-94%30 210 11- 158
80 - 90%20 35 >15 0
70-80%10 40   
<70%0      

 

Appreciate any help...

 

Thanks & Regards

Samrat

  • Anonymous ,

     

    Calculated Column : KPI 1 points

    KPI1 Points = SWITCH(TRUE(),
    'Table'[KPI 1] = 1,50,
    'Table'[KPI 1] < 1 && 'Table'[KPI 1] >= 0.95, 40,
    'Table'[KPI 1] < 0.95 && 'Table'[KPI 1] >= 0.91, 30,
    'Table'[KPI 1] < 0.91 && 'Table'[KPI 1] >= 0.80, 20,
    'Table'[KPI 1] < 0.80 && 'Table'[KPI 1] >= 0.70, 40, 0)
    Calculated Column : KPI 2 points
    KPI2 Points = SWITCH(TRUE(),
    'Table'[KPI2] = 0, 20,
    'Table'[KPI2] = 1, 15,
    'Table'[KPI2] = 2, 10,
    'Table'[KPI2] = 3, 5,
    'Table'[KPI2] = 4, 0)
    Calculated Column : KPI 3 points
    KPI3 Points = SWITCH(TRUE(),
    'Table'[KPI3] <=7, 30,
    'Table'[KPI3] >7 && 'Table'[KPI3] <=10, 15,
    'Table'[KPI3] >10 && 'Table'[KPI3] <=15, 8, 0)
  • Anonymous's avatar
    Anonymous
    4 years ago

    Thanks, it solved the purpose. Appreciate your help...

2 Replies

  • ddpl's avatar
    ddpl
    Solution Sage

    Anonymous ,

     

    Calculated Column : KPI 1 points

    KPI1 Points = SWITCH(TRUE(),
    'Table'[KPI 1] = 1,50,
    'Table'[KPI 1] < 1 && 'Table'[KPI 1] >= 0.95, 40,
    'Table'[KPI 1] < 0.95 && 'Table'[KPI 1] >= 0.91, 30,
    'Table'[KPI 1] < 0.91 && 'Table'[KPI 1] >= 0.80, 20,
    'Table'[KPI 1] < 0.80 && 'Table'[KPI 1] >= 0.70, 40, 0)
    Calculated Column : KPI 2 points
    KPI2 Points = SWITCH(TRUE(),
    'Table'[KPI2] = 0, 20,
    'Table'[KPI2] = 1, 15,
    'Table'[KPI2] = 2, 10,
    'Table'[KPI2] = 3, 5,
    'Table'[KPI2] = 4, 0)
    Calculated Column : KPI 3 points
    KPI3 Points = SWITCH(TRUE(),
    'Table'[KPI3] <=7, 30,
    'Table'[KPI3] >7 && 'Table'[KPI3] <=10, 15,
    'Table'[KPI3] >10 && 'Table'[KPI3] <=15, 8, 0)
  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks, it solved the purpose. Appreciate your help...