Forum Discussion

deepvibha's avatar
deepvibha
Advocate II
7 years ago
Solved

Quality Indicators Monthly Percentage

Hello, I am maintaining quality indicator data in the following format in MS Excel: Month Indicator Pt. Completed <= 30 min Pt. Completed <= 90 min. Total no. of OP surgery accep. Pts...
  • Anonymous's avatar
    Anonymous
    7 years ago

    deepvibha,

    Before you unpivot columns in Power BI Desktop query editor, you can replace 0 values in Total no. of OP column with null, then fill down.



    Then create the following measures in your table.

    % Pt. Completed<30 = DIVIDE(CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Pt. Completed <= 30 min")),CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Total no. of OP")),0)
    % Pt. Completed<90 = DIVIDE(CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Pt. Completed <= 90 min.")), CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Total no. of OP")),0)
    % surgery accep. Pts. within 12 weeks = DIVIDE(CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="surgery accep. Pts. within 12 weeks")), CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Total no. of OP")),0)
    % Surgery advised pts. Within 12 weeks = DIVIDE(CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Surgery advised pts. Within 12 weeks")), CALCULATE(SUM(Table1[Nos]),FILTER(Table1,Table1[Details]="Total no. of OP")),0)


    However, it is not possible to put all the measures in the above chart as you describe, as the measures will be calculated to return different results based on the fields in  the chart, you can create a table visual to view the results instead.


    Regards,

     

    Lydia