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
Tcoher22
Frequent Visitor

Calculate Days Between Dates Based on Field's Value

I'm a novice with PowerBI and could use some help attempting to calculate the days between dates based on different columns. 

 

From this table: 

Screen Shot 2019-05-03 at 9.22.25 AM.png

 

 

 

 

 

If Invoice 2 Amount populated, I want to subtract the Invoice Date associated with Invoice 1 Amount from Invoice 2. And so on for the other invoices. Trying to get a sense of what the aging of invoices looks like at different phases of our billing cycle. 

 

Any help would be greatly appreciated!

 

Thanks in advance!

2 REPLIES 2
Anonymous
Not applicable

It's help you?
Measure := ALCULATE ( SUM ( Table[INVOICE1] ) + SUM ( Table[INVOICE2] ) + SUM ( Table[INVOICE3] ) ; DATESBETWEEN ( Date ; MIN ( Date [Date] ) ; MAX ( Date[Date] ) )
 

Unfortunately, no. What I'm attempting to do is pull the date value when the column for invoice 2 is populated and then subtract the invoice date associated with Invoice 1 from it. 

 

For example: 

 

For invoice 2 the Invoice date is 4/2/19. I want to subtract 2/6/19 from that date to return the value 55 days. 

 

My goal is to measure the time spent between invoices. 

 

Does that make sense?

 

Thanks again!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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