Forum Discussion

SirArthur's avatar
SirArthur
Frequent Visitor
8 years ago
Solved

100% Stacked area Chart ?

Hi guys, How can I create a 100% Stacked area Chart  by week? 

  • Hi SirArthur,

     

    Based on my test, I can only create a visual like this that is not exact same as yours.

     

     

    Here I created four measures as below.

     

    Very good = CALCULATE(COUNT(Table1[cali]),Table1[cali]=1)/COUNTROWS(Table1)
    Good = CALCULATE(COUNT(Table1[cali]),Table1[cali]=2)/COUNTROWS(Table1)
    Bad = CALCULATE(COUNT(Table1[cali]),Table1[cali]=3)/COUNTROWS(Table1)
    Very bad = CALCULATE(COUNT(Table1[cali]),Table1[cali]=4)/COUNTROWS(Table1)

    For more details, please check the pbix as attached.

     

    https://www.dropbox.com/s/s0x7byvpp3ysf84/Stacked%20area%20Chart.pbix?dl=0

     

    Regards,

    Frank

3 Replies

  • SirArthur's avatar
    SirArthur
    Frequent Visitor

    Hi guys, I need create a 100% stacked area char like this:

    This table count the rating column per week(1,2,3,4).

    It is a percentage of the rating, Legend: 1 - Very good, 2 - Good,  3 - Bad, 4 - Very bad. 

     

     

    My table have 2 columns. Column 1 is date and 2 column is rating like this:


     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    I have been told that it is impossible, but I believe that everything is possible with Power Bi. Thanks for the help.

     

    Regards.

     

    • v-frfei-msft's avatar
      v-frfei-msft
      Community Support

      Hi SirArthur,

       

      Based on my test, I can only create a visual like this that is not exact same as yours.

       

       

      Here I created four measures as below.

       

      Very good = CALCULATE(COUNT(Table1[cali]),Table1[cali]=1)/COUNTROWS(Table1)
      Good = CALCULATE(COUNT(Table1[cali]),Table1[cali]=2)/COUNTROWS(Table1)
      Bad = CALCULATE(COUNT(Table1[cali]),Table1[cali]=3)/COUNTROWS(Table1)
      Very bad = CALCULATE(COUNT(Table1[cali]),Table1[cali]=4)/COUNTROWS(Table1)

      For more details, please check the pbix as attached.

       

      https://www.dropbox.com/s/s0x7byvpp3ysf84/Stacked%20area%20Chart.pbix?dl=0

       

      Regards,

      Frank

      • v-frfei-msft's avatar
        v-frfei-msft
        Community Support

        Hi SirArthur,

         

        Does that make sense? If so, kindly mark my answer as a solution to close the case please.

         

        Regards,

        Frank