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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lyao716
Frequent Visitor

Total percentage doesn't add up to 100% in bar chart

Hi,

I have data 'count([customerID])', and I want to show that in % by [product category]. Like the screenshot shows. However, the % doesn't add up to 100%. What kind of measure I can use to fix this?

lyao716_0-1637672436995.png

Thank you in advance.

 

BR,

Lin

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @lyao716 ,

You can create a bar chart with the same setting as the one in below screenshot, please find the details in the attachment.

yingyinr_0-1637914464505.png

If the above one is not what you want, please provide some sample data with Text format and your expected result with more details(include calculation logic, special examples, screenshot etc.). Thank you.

Best Regards

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

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @lyao716 ,

You can create a bar chart with the same setting as the one in below screenshot, please find the details in the attachment.

yingyinr_0-1637914464505.png

If the above one is not what you want, please provide some sample data with Text format and your expected result with more details(include calculation logic, special examples, screenshot etc.). Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Nathaniel_C
Super User
Super User

Hi @lyao716 ,

You will probably need to use ALL() or ALLSELECTED().  Perhaps you might be able to dummy up some data to create a pbix or share your pbix with us.

https://www.youtube.com/watch?v=1KfTmRYRLZs orhttps://docs.microsoft.com/en-us/dax/allselected-function-dax might be useful.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel


Please read this post to get your question answered more quickly:

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors