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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
mrclay82
Helper II
Helper II

aggregation

Hi,


In Power Query I have 6 columns:

 

In the column [Warehouse] I have 2 values: “Main DC” and “Second DC”.

In the column [ProductCode] I have 1 value: “IO1234”.

In the column [ProductDescription] I have 1 value: “Product A”.

In the column [Sales Quantity Jan] I have 2 values: “2” which represents the sales for January for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”.

In the column [Sales Quantity Feb] I have 2 values: “2” which represents the sales for February for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”.

In the column [Sales Quantity March] I have 2 values: “2” which represents the sales for March for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”.

I don’t want to differentiate [Sales Quantity Jan], [Sales Quantity Feb] and [Sales Quantity March] per [Warehouse] so I only want one value for [Warehouse] that aggregates the data for the other columns.

 

The output should be the following columns and values:
In the column [Warehouse] 1 value: “Main DC”.

In the column [ProductCode] 2 values: “IO1234” and “IO1235”.

In the column [ProductDescription] 2 values: “Product A” and “Product B”.

In the column [Sales Quantity Jan] “3” (which represents the sales for January for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”.)

In the column [Sales Quantity Feb] “3” (which represents the sales for February for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”).

In the column [Sales Quantity March] “3” (which represents the sales for March for “[Warehouse] “Main DC” and “1” which represents the sales for January for “[Warehouse] “Second DC”).

How can I achieve this? I tried the Group By option without success.

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.