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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
dwyermf
Regular Visitor

Grouping figures using Filter on another column

Looking to create a measure to sum the figures in the Tonnes column based on filter of "HG" and "LG" in the Stockpile column. 

 

STOCKPILETONNES
503 - HG10000
503 - LG15000
504 - HG10000
504 - LG15000
505 - LG15000
508 - LG10000

 

Looking to create the below,

STOCKPILETONNES
LG55000
HG20000
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

You could add a calculated colmn to your table of 

Group = RIGHT ( 'Table'[STOCKPILE], 2 )

Then pull that into your visual.

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

You could add a calculated colmn to your table of 

Group = RIGHT ( 'Table'[STOCKPILE], 2 )

Then pull that into your visual.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.