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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
farhadidrees
Frequent Visitor

Closing and Opening Balance

Hi Team,

 

I am having following scenario, 

1-Closing balance of each month should be opening balance of next month.

2-Suppose I have initial Balance in January is 100 so in feb I need to have new column x in which i should have 

x = 100+ClosingCash

3- Now for month of March i should have x+ Closing Cash and so on of for all the months.

 

farhadidrees_0-1631623029687.png

Any help would be highly appreciated.

 

Thanks.

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @farhadidrees ,

 

I think what you are asking is the running total in Power Query. Please refer to 

https://www.myonlinetraininghub.com/quickly-create-running-totals-in-power-query

 

In my opinion, DAX is easier and more convenient than M language for Running total. You can refer to

https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115

 

 

 

Best Regards,

Stephen Tao

 

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

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @farhadidrees ,

 

I think what you are asking is the running total in Power Query. Please refer to 

https://www.myonlinetraininghub.com/quickly-create-running-totals-in-power-query

 

In my opinion, DAX is easier and more convenient than M language for Running total. You can refer to

https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115

 

 

 

Best Regards,

Stephen Tao

 

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

 

watkinnc
Super User
Super User

In an AddColumn dialogue, type:

 

= List.Zip({Table[Opening Balance], List.Skip(Table[Opening Balance)})[1][0]

 

This will give you your last month balance on the the new row, and you can just add the row math.

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Helpful resources

Announcements
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.

Top Solution Authors
Top Kudoed Authors