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
Live_Mace
Frequent Visitor

SUMIFS Calculation with Dax

Dax novice here...

I need help creating a measure: SPLIT_DROP_DEMAND... on excel this will be done with a SUMIFS: =F2/SUMIFS(F:F,D:D,D2,C:C,C2,A:A,A2)*G2

 

So the drop_demand is joined on a warehouse-sku-period level, need a measure that will split it down to the shipto level, based on the demand quantity.

See sample table:

WAREHOUSESHIP_TOSKUPERIOD_YEARSALES_DIVISIONDEMANDDROP_DEMAND SPLIT_DROP_DEMAND
123456789216655441123P12-2023LOCAL965,3761,797,480                               541,192
123451533686655441123P12-2023LOCAL521,6401,797,480                               292,432
123451233546655441123P12-2023LOCAL123,4441,797,480                                 69,203
123458866976655441123P12-2023LOCAL154,1521,797,480                                 86,418
123458633216655441123P12-2023LOCAL236,1241,797,480                               132,372
123457788566655441123P12-2023LOCAL213,8761,797,480                               119,899
123457896326655441123P12-2023LOCAL260,1361,797,480                               145,833
123451234556655441123P12-2023LOCAL401,2201,797,480                               224,925
123451536356655441123P12-2023LOCAL330,3721,797,480                               185,207
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Split drop demnd = DIVIDE(Data[DEMAND],CALCULATE(SUM(Data[DEMAND]),FILTER(Data,Data[WAREHOUSE]=EARLIER(Data[WAREHOUSE])&&Data[SKU]=EARLIER(Data[SKU])&&Data[PERIOD_YEAR]=EARLIER(Data[PERIOD_YEAR]))))*Data[DROP_DEMAND]

Hope this helps.

Ashish_Mathur_0-1702098871224.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

This calculated column formula works

Split drop demnd = DIVIDE(Data[DEMAND],CALCULATE(SUM(Data[DEMAND]),FILTER(Data,Data[WAREHOUSE]=EARLIER(Data[WAREHOUSE])&&Data[SKU]=EARLIER(Data[SKU])&&Data[PERIOD_YEAR]=EARLIER(Data[PERIOD_YEAR]))))*Data[DROP_DEMAND]

Hope this helps.

Ashish_Mathur_0-1702098871224.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur this works!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.

Users online (1,863)