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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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

 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Kudoed Authors