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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Problem with Grouping Data function

Dear Community, 

 

I am facing a problem when I try to select bars on a chart to combine them as one group. I click CTRL + Right Click, but when options appear; the Group function is in gray( not allowing me to create group). My Data is Region(text) VS Sales (sum) for each region.

 

I tried also to create a new measure but it creates the total for each region with the total sum of all the regions at once.

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

To use grouping, select two or more elements on a visual by using Ctrl+click to multi-select elements. Then, right-click one of the multi-select elements and select Group from the menu that appears. You can refer to the document: https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning.

 

If you need to create a measure to get total sales for per region, you can use DAX below.

 

Total sales per region=CALCULATE(SUM(Data[sale]),FILTER(ALLSELECTED(Data),Data[Region]=MAX(Data[Region])))

Best Regards,

Amy

 

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-xicai
Community Support
Community Support

Hi  @Anonymous ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not,  let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

To use grouping, select two or more elements on a visual by using Ctrl+click to multi-select elements. Then, right-click one of the multi-select elements and select Group from the menu that appears. You can refer to the document: https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning.

 

If you need to create a measure to get total sales for per region, you can use DAX below.

 

Total sales per region=CALCULATE(SUM(Data[sale]),FILTER(ALLSELECTED(Data),Data[Region]=MAX(Data[Region])))

Best Regards,

Amy

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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