Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dax help : aggregate values by specific columns

Hi,

 

I would like to generate "Aggregated_Qty" by adding "column," instead of "measure" in Power BI.

 

In this case, I would like to base on "Sales Order" and "SKU" to calculated aggregated qty.

For example, the first 1 and 2 lines are the same group of "Sales Order" and "SKU", so the "Aggregated_Qty" is 200+100=300.

 

Wonder if you could guid me how to write dax by adding column function? Thanks.

 

CustomerSiteSales OrderLineSKUDateqtyAggregated_Qty
ABRA125D1AA2022-05-10200300
BBRB125D2AA2022-06-20100300
ACNA123D2GG2022-06-15100200
ACNA125D2GG2022-06-1850200
BCNB125D1GG2022-06-1950200
AUSA123D1JJ2022-06-1020002250
BUSB125D3JJ2022-06-212002250
BUSB125D3JJ2022-07-21502250

3 Replies