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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Nijlal01
Helper I
Helper I

Calculate demand on Ship-From from Customer Demand and Demand Allocation table

Hi all,

 

I would like to calculate demand on ship-from location using customer demand table (below) and demand allocation table(on top). I think best would be with a DAX formula but PowerQuery is also fine.

 

So in this easy example all demand in the planning horizon for item 659152 and dmdgroup PH1700_ES101010_0000279544 has to be allocated to ship-from ES002UN_PH1700_ESB2 (since allocation percentage is 100% and effective date is from 2021 until 2050).

But it could also be that 50% is allocated to ship-from x and 50% to ship-from y and/or that until 27-02-2023 it is 100% allocated to ship-from x and from 27-02 onwards to ship-from y.

 

The result should be item_code, ship-from, ship-from, date, demand qty

 

Hope someone can help me!

 

Thanks

 

Nijlal01_0-1676402402812.png

 

 

0 REPLIES 0

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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