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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
New_be
Helper V
Helper V

Group By: Not Working

Hi expert! I have one problem that i think people from this community can help me with 😊

 

Problem:

I want to group a value column based on certain columns. But when I use function grouped by, it seems doesn't worked. Below are the examples:

 

Based on this image, I want to group columns ARTICLE, PRD_ORDERID, and PRODUCTION_DATE to get sum of SF (square feet). As we can see in the red square I have same ARTICLE, same PRD_ORDERID & CUSTOMER but different PALLET_NUMBER. So i want to ignore PALLET_NUMBER because I just wanted to know how many SF have been produced on certain date, for a certain order id & article number.

groupby_1.png

 

Result:

Below is the result that i got from grouped by function. It still shows multiple rows for the same PRD_ORDERID & PRODUCTION_DATE.

groupby_2.png

 

 

 

 

 

 

 

 

 

 

 

Desired output:

My desired output is for PRD_ORDER = 4477549 and PRODUCTION_DATE = 27/6/2020, I just want one row that shows sum of SQFT for the particular order & date.

PRD_ORDERIDPRODUCTION_DATESQFT
447754927/6/2020Sum of sqft 
447754929/6/2020343.71

 

 

Any idea why this is happening? Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@New_be , I doubt your date has timestamp

 

Create a date from production date in power query and try with that date

DateTime.Date([production_date])

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@New_be , I doubt your date has timestamp

 

Create a date from production date in power query and try with that date

DateTime.Date([production_date])

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

Thanks @amitchandak ! 😃 Its work like you said. But i don't know why it is not working for me before as i already converted the datatype.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

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.