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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
melina
Helper IV
Helper IV

combine data

Hi All,

 

I have a table in CSV file. The table in CSV file will upload to PBI. The table as below :

 

Purch.Doc.Vendor NameScheduled Qty
554321MyApps SDN BHD120
554321MyApps SDN BHD225
554322Abu Munawer SDN BHD1000
554322Abu Munawer SDN BHD1640

 

My question can PBI combine the rows that have same Purch.Doc number?

Then sum the total for Schedule Qty that have same Purch.Doc?

 

At the end, the table display like this :

Purch.Doc.Vendor NameScheduled Qty
554321MyApps SDN BHD345
554322Abu Munawer SDN BHD2640
1 ACCEPTED SOLUTION

The relevant information is outside your screenshot.

 

Below just an arbitrary example with grouping on 2 fields which must be under the "Goup By" section of the screen.

 

Group By 2.png

Specializing in Power Query Formula Language (M)

View solution in original post

6 REPLIES 6
MarcelBeug
Community Champion
Community Champion

In "Edit Queries", go to the "Transform" tab, select your first 2 columns, choose  "Group By" and fill out the fields, such that the quantities will be summed.

Specializing in Power Query Formula Language (M)

Thank for your reply, but when i try to use Group By method, the vendor name column missing. I need to display vendor name, Why?

Probably you didn't select both the Purch.Doc. and the Vendor Name columns before you chose "Group By".

Specializing in Power Query Formula Language (M)

oh, you are correct. Ok after i already select, what input should i put in the box?

How the query will know for the same Purch.Doc?

Capture.PNG

The relevant information is outside your screenshot.

 

Below just an arbitrary example with grouping on 2 fields which must be under the "Goup By" section of the screen.

 

Group By 2.png

Specializing in Power Query Formula Language (M)

Thanks a lot for helping me. Now i got the idea and solution to solve this problem..tq!Smiley Happy

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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