Forum Discussion

BobPierre's avatar
BobPierre
Frequent Visitor
7 years ago
Solved

Displaying Percentage Bar Chart

Dear All,

I am new to Power BI.

I have a sample data like the one on the left hand side but I want the graph to be like the one on the right.

I only made use of the YES in my chart. For example,

India: January there are two Yeses and a No =(2/3)*100= 66.67% and February, there are one Yes and a No =(1/2)*100= 50%

 

Thank you all in advance........

  • Hi BobPierre,

     

    You should new a measure.

    "Yes" percentage = CALCULATE(COUNT(table8[Status]),FILTER(table8,table8[Status]="Yes"))/COUNT(table8[Status])

     

    Best regards,

    Yuliana Gu

2 Replies

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi BobPierre,

     

    You should new a measure.

    "Yes" percentage = CALCULATE(COUNT(table8[Status]),FILTER(table8,table8[Status]="Yes"))/COUNT(table8[Status])

     

    Best regards,

    Yuliana Gu

    • BobPierre's avatar
      BobPierre
      Frequent Visitor

      Wow!!!! Thank you for saving my day. I appreciate you.