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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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