Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YYlee
Helper I
Helper I

Show % in clustered column chart in Power BI

This is my excel database plug into Power BI:

YYlee_4-1733324306879.png

 

This is in Power BI that I unpivot them and add a custom column:

 

YYlee_5-1733324347719.png

 

I would like to have each TB at total of 100%

 

YYlee_3-1733324280998.png

 

Appreciate for help.

 

Regards, YY

1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi @YYlee ,
On top of your measure or column dropped in Y-Axis field, please right click on top of it, and show values as percent of grand total as shown bellow, this avoid to create another measure:

Bibiano_Geraldo_0-1733335791127.png

 

If you prefer to create a measure to calculate a percente of grand total, follow this steps:

1- make sure that you have a measure total pax, something like this:

Sales Amount = SUM(financials[Gross Sales])

 

2- Now you can create another measure for percent of grand total and put in your Y-Axis:

% of Total = 
VAR total = 
    CALCULATE(
        [Sales Amount], --REPLACE WITH YOUR TOTAL PAX MEASURE HERE
        ALLSELECTED(financials[Segment],financials[Product]) --PUT THE COLUMN OF YOUR X-AXIS AND OF THE LEGEND
    )

RETURN
    DIVIDE(
        [Sales Amount],
        total
    )


Now make sure that the data labels of your visual are enabled and expand y-Axis and set the range Minimum to 0:

Bibiano_Geraldo_1-1733336715651.png


This is th finaly result in both scenarios:

Bibiano_Geraldo_2-1733336778806.png

 

 

 

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

This pattern should work

Total = sum(Data[Value])

Share = divide(calculate([Total],calculate([Total],all(Data[Custom])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

thank you for your help...I am sorry...This does not work...

You are welcome.  Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you dear! I have successfully made with with another friends below assistance! Thank you for your offering!!

Bibiano_Geraldo
Super User
Super User

Hi @YYlee ,
On top of your measure or column dropped in Y-Axis field, please right click on top of it, and show values as percent of grand total as shown bellow, this avoid to create another measure:

Bibiano_Geraldo_0-1733335791127.png

 

If you prefer to create a measure to calculate a percente of grand total, follow this steps:

1- make sure that you have a measure total pax, something like this:

Sales Amount = SUM(financials[Gross Sales])

 

2- Now you can create another measure for percent of grand total and put in your Y-Axis:

% of Total = 
VAR total = 
    CALCULATE(
        [Sales Amount], --REPLACE WITH YOUR TOTAL PAX MEASURE HERE
        ALLSELECTED(financials[Segment],financials[Product]) --PUT THE COLUMN OF YOUR X-AXIS AND OF THE LEGEND
    )

RETURN
    DIVIDE(
        [Sales Amount],
        total
    )


Now make sure that the data labels of your visual are enabled and expand y-Axis and set the range Minimum to 0:

Bibiano_Geraldo_1-1733336715651.png


This is th finaly result in both scenarios:

Bibiano_Geraldo_2-1733336778806.png

 

 

 

Dear, I am able to % if the total chart is 100%, but I would like each "segment" is 100%. Any way can I make it?

Hi @YYlee ,

In above DAX, just remove the segment in ALLSELECTED function, something like bellow:

% of Total = 
VAR total = 
    CALCULATE(
        [Sales Amount], --REPLACE WITH YOUR TOTAL PAX MEASURE HERE
        ALLSELECTED(financials[Product]) --PUT column used in your LEGEND field
    )

RETURN
    DIVIDE(
        [Sales Amount],
        total
    )

 

As you can see now, each segment is 100%:

Bibiano_Geraldo_0-1733379964222.png

 

Thank you dear! Is successfully!! I use the 1st DAX you sent me, and use distinctcount for my total pax!! Thank you!

Happy it works @YYlee 


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.