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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Created daily balancing table - how to calculate BOD and EOD values

I have a Data Table showing history of status changes for transactions. Each transaction has entries only on days that the status changed.  Each record also includes the date that the transaction is closed.
A simple example:

Status Change DateTransaction StatusNext Close Date
2022-01-30Created2022-02-01
2022-02-01Completednull
2022-02-02Reopennull

 

 

I would like to create a visualization shows that derives the following measures for each calendar day. 

DateOpen BODNewReopenClosedOpen EOD
2022-01-3001001
2022-01-3110001
2022-02-0110010
2022-02-0200101

 

I can easily obtain the New, Reopen and Close values, but am struggling with the Open BOD and Open EOD values, since I need to derive values even if there isn't a change in status for the date, e.g. 2022-01-31 has BOD & EOD .

Open at Beginning of Day
Next Close Date is blank or  Next Close Date >= date shown in the resulting table

 

Open at End of Day 
Next Close Date is blank or  Next Close Date > date shown in the resulting table


I was originally thinking of generating the date in the resulting table, but could just use the distinct list of Status Change Dates.

Can anyone help me figure out how to calculate these two sums?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

you will need a disconnected dates table and then do a crossjoin.

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

you will need a disconnected dates table and then do a crossjoin.

 

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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