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
rocky09
Solution Sage
Solution Sage

Calculating Closing Stock balance from the previous month's closing Stock

Hello, I am stuck with this dataset. My task is to calculate the Closing Balance for each and every month. But not sure, how do I achieve this. Can anyone please help?

 

To calculate the Closing Balance, the Logic  is :
Prev.Month Closing Stock + Cur.Month Production + Cur.Month Receipts - Cur.Month Demand

 

rocky09_0-1652152184503.png

 

The expected answer should be something like this:

rocky09_1-1652152221601.png

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

8 REPLIES 8
rocky09
Solution Sage
Solution Sage

@amitchandak @Ashish_Mathur @SpartaBI 

Can anyon help with this problem?

Hi,

Share your source data (not the format in which you want to see the report) in a format that can be pasted in an MS Excel file.


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

Hi @Ashish_Mathur 
Here is the data as requested.  I have received the data in the same format as below.

ProductCategoryMar-22Apr-22May-22Jun-22Jul-22
CableDemand 4092605038025784
CableReceipts 7030450046155543
CableProduction 0002515
CableClosing Stock4601    
PipeDemand 7584589448752254
PipeReceipts 2245333222455578
PipeProduction 12506643654
PipeClosing Stock7825    

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

wow..

Thank you so much. This is what I am looking for.

You are welcome.


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

Hello @rocky09,

 

Request you to please share data in tabular format.

 

 

Cheers,
Shishir

Here it is:

ProductCategoryMAR 2022APR 2022MAY 2022JUN 2022
CableDemand 4092.8346050.9993802.334
CableReceipts 703045004615.38
CableProduction 000
CableClosing Stock4601   

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.