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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
abadi_89
Frequent Visitor

Grouping count by value per category

zz.JPG

 

Hello all,

How may I get such results?

 

Will stacked % bars give such? how to group these count range?

Thanks alot.

 

Invoice (table) - Value (column)

CDTs (table) - Category (column)

Vendor (table) - Supplier name (column)

5 REPLIES 5
amitchandak
Super User
Super User

@abadi_89 , for the count you need bucketing

https://www.youtube.com/watch?v=CuczXPj0N-k

 

or

segmentation

https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

Then you can calculate % of sub total - https://www.youtube.com/watch?v=6jTildcV2ho

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak ,
I managed to make the bucketing but couldn't manage to after? it won't go to the visual!
Any ideas?

zz.JPG

Hi @abadi_89 

It seems your Segmentation is a measure. In order to use segmentation as category in a bar chart, you need to create a calculated column for segmentation instead of a measure because measures cannot be put in Legend or Axis fields of a chart. For example,

030301.jpg

Regards,

Jing

Thank you!

Now it make sense, any idea how to create that column if the region is in another table?

What I have is:

Invoice (table) - Value (column)

CDTs (table) - Category (column)

Vendor (table) - Supplier name (column)

What is the relationship between these tables? If you create proper relationships on columns in these tables, this should also work.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors