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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Group values

Hello, I need to group a table by an 'ID' field of 1000 different categories and apply a sum to the 'Sales' numeric field, but when I d, I apply the group by for the 'ID' field and create the sum field by the column 'Sales' I get a table with 2 columns, but I need to be able to interact with a date field, which I cannot add in the groupby, since then the grouping calculation would break down one row for each day, instead of one row for each 'ID'. I really appreciate the help!

 Hello, I need to group a table by an 'ID' field of 1000 different categories and apply a sum to the 'Sales' numeric field, but when I do, I apply the group by for the 'ID' field and create the sum field by the column 'Sales' I get a table with 2 columns, but I need to be able to interact with a date field, which I cannot add in the groupby, since then the grouping calculation would break down one row for each day, instead of one row for each 'ID'. I really appreciate the help!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Why create a group by in power query? You can use ID and Sum on sales column in a visual and filter as per need based on dates

 

Sales measure = sum(Table[Sales])

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
Anonymous
Not applicable

Because I need to create an histogram with the values grouped by id (the calculation that I must pass as x-axis data to the histogram is the result of grouping the values ​​by ID). After this i should be able to change the chart date with a date slicer that I have created. 

 

Thanks.

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.

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.

Top Solution Authors
Top Kudoed Authors