Forum Discussion

FranP's avatar
FranP
Frequent Visitor
6 years ago

How to show percentage Count Rows on Stacked Bar Chart

Hi,

I have been using power bi for a short time. I hope you can help me. I have the following table:

 

Sales OrderSales Amount
15200
23100
31400
42800
54500
61200
71800
81550
9500
105500

 

I would like to show a Stacked bar Chart with the percentage of rows based on intervals.  The output would be something like this:

 

The breakdown of the figures is:

 

Sales Amount% Total Sales
+100090%
+200050%
+300040%
+400030%
+500020%

 

I have tried COUNTROWS or creating calculated tables and then unpivot the columns, but I don't make it. Could you please help me?

 

Thanks!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

     

    I'm attaching this PBIX.

     

    Let me know if it's what you're looking for.

     

    Cheers.

    • FranP's avatar
      FranP
      Frequent Visitor

      It worked, thanks a lot for your help!