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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
NewBIe2013
Regular Visitor

Need help with measures - Demand and Usage

BI gurus, I'm a beginner on DAX/Measures.

I have this Excel and the calculation rather easy to achieve, and would like to convert it to Power BI, did some research from online and this community, went through a couple of resolutions from online such as cross-highlight, current month, and future month, and couldn't get my head around.

 

Hence would really need your help on the Planned and Future Qty, they are from same table called Forecast with Order date and Delivery date. 

 

This probably needs a couple of measures, and want to achieve:

- Planned Qty: qty order on the month but may be deliver in the following months;

- Future Qty: qty might need to order next month and deliver in the following months;

- Stock level:

  > capture the current stock level (i.e. 127), then from next month onwards, it would be [(current stock level + Planned qty + Future qty) - Usage]

 

NewBIe2013_0-1708751093032.png

 

 

Thanks.

1 ACCEPTED SOLUTION

Hi @NewBIe2013 ,

 

Since I don't know the source of the first stock level, I used the formulated data to complete your idea:

vtianyichmsft_0-1709543858804.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
NewBIe2013
Regular Visitor

Hi @v-tianyich-msft , thanks for that. 
need some clarifications on the measure, you have put in the var _num = 127, can it be update to take from the current on hand stock level (even though it still 127)? Reason to ask for change is because when comes to Apr, the current on hand will be different. Look forward to your response. Thanks. 

NewBIe2013
Regular Visitor

Future Qty = sum of dark pink colour cells. 

Hi @NewBIe2013 ,

 

Since I don't know the source of the first stock level, I used the formulated data to complete your idea:

vtianyichmsft_0-1709543858804.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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