Forum Discussion

VTork's avatar
VTork
Frequent Visitor
3 years ago
Solved

Customize 100% stacked bar chart

Hi all, 

Does anyone know how to create a 100% stacked bar chart like the one below? 

 

Thanks! 

  • Hi, VTork ;

    You could create two measures.

    percent = SUM(financials[ Sales])/CALCULATE(SUM(financials[ Sales]),ALL(financials))
    Measure = 1-[percent]

    then set it.

    change the color.

    and off one measure data label

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

    • VTork's avatar
      VTork
      Frequent Visitor

      Hi José, 

      Thank you for getting back to me! Sorry didn't realise how small it was when I uploaded it. 
      Please see below.... If possible, I'd like to create an identical chart as the one below in Power Bi. 

       

       

       

       

       

       

       

      Many thanks! 

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

    Hi, VTork ;

    You could create two measures.

    percent = SUM(financials[ Sales])/CALCULATE(SUM(financials[ Sales]),ALL(financials))
    Measure = 1-[percent]

    then set it.

    change the color.

    and off one measure data label

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.