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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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