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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AsadAliKhan
Frequent Visitor

Closing Blance calculation

Hi All,
I am new to DAX and trying to create a pivot report through Power BI, where month end closing balance is calculated by subtracting Fcast and adding Transit and On order quantity of respective month and previous month closing stock. see the sample below.

AsadAliKhan_0-1630534892732.png


will appreciate your help

Regards,
Asad

9 REPLIES 9
v-luwang-msft
Community Support
Community Support

Hi 

Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.

Best Regards
Lucien

Ashish_Mathur
Super User
Super User

Hi,

In an MS Excel file, share your data and in another tab, show your expected result with your Excel formulas.


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

Thank you, Ashish

 

Please see the link below

https://1drv.ms/x/s!ApmDRAP7RNB2iHWN1hOflBBSFY6Y?e=g4GJx3

 

Regards

Asad

Dear Ashish

 

Hope you will be fine!

 

Do you have any luck?

 

Regards,

Asad

Hi,

Sorry but i have not had the chance to look at this.  May be someone else can help you.


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

Hi,

I do not see any formulas in row 13 of the Result worksheet.  Also, why are so many sheets required in the workbook?


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

Dear Ashih,

 

I appreciate your interest, yes, there is no formula in row 13 for past month (Jul till Aug) as they are actual values while there is a formula from Sep onward (Column H) till last month.

we have seperate sheets to inorporate everyone needs.

 

AsadAliKhan_0-1630629258261.png

 

 

Once again Thank you

Asad

Greg_Deckler
Community Champion
Community Champion

@AsadAliKhan If that is a representation of your source data then unpivot your month columns in Power Query.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

 

Thank you for interest, No there are different tables for each measure. If you sahare your email I can forward you.

 

Thank you Once again.

Asad

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.