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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
alks_skla_f
Helper I
Helper I

Column chart doesn't show information correctly

Hello, I want to show sum of quantity by item category. I have item_cat on x-axis and sum of quantity on y-axis. When I hover bar over, I can see that quantity is correct. Instead of taking sum of quantity for all categories as 100%, it takes the quantity by category as 100%. How can I fix it, please:

alks_skla_f_0-1743617091640.png

 

1 ACCEPTED SOLUTION

Hi,

Share the download link of the PBI file.


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

View solution in original post

10 REPLIES 10
v-hashadapu
Community Support
Community Support

Hi @alks_skla_f , Since it's been a while since we last heard from you, we’re closing this thread per our follow-up policy. For any further discussions or questions, please start a new post in the Microsoft Fabric Community Forum — we’ll be happy to assist.

Thank you for being part of the Microsoft Fabric Community.

v-hashadapu
Community Support
Community Support

Hi @alks_skla_f ,could you please share more details including sample data and the steps you have taken so far (excluding sensitive content) with us to help solve your issue. If it is already solved, please share the answer here and mark it 'Accept as Solution', so others with similar queries may find it easily.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @alks_skla_f , Thank you for reaching out to the Microsoft Community Forum.

could you please share more details including sample data and the steps you have taken so far (excluding sensitive content) with us to help solve your issue. If it is already solved, please share the answer here and mark it 'Accept as Solution', so others with similar queries may find it easily.
Thank you.

Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Total = sum(Data[Qty])

Measure = divide([Total],calculate([Total],all(Data[Item_cat])))

Format Measure as %,

Hope this helps.


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

Hello, still doesn't work:

Total_num_qty = SUM('pizzeria orders'[quantity])
test = divide([Total_num_qty],calculate([Total_num_qty],all('pizzeria item'[item_cat])))

alks_skla_f_0-1743943516170.png

Is there any other solutrion, please?

Hi,

Share the download link of the PBI file.


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

Hi @alks_skla_f ,

 

There are two approaches are we can do,

1) using dax -->test=divide(sum(test_table[quanity]),(calculate (sum(test_table[quanity]),All(test_table[item_cate))

2)Go to Y-axis in visual and right click on y-axis the and select show as value option and from there you can select Percentage of grand total.

 

Regards,

Surya.

please, see my answer above, this solution doesn't work for me

techies
Super User
Super User

Hi @alks_skla_f please check this

 

PercentOfTotal =
DIVIDE(
    SUM('Sheet5'[quantity]),
    CALCULATE(SUM('Sheet5'[quantity]), ALL('Sheet5'))
)
― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

please, see my answer above, this solution doesn't work for me

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors