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
Anonymous
Not applicable

Measure: Sumif between two different date fields with connected date table - .pbix example attached

I have a data table with three fields: Start Date, End Date, and Value. The data table is connected to a Date Table (and needs to stay connected). I need to create a measure that sums values when the dates from the Date Table is between the Start Date and the End Date.

 

Attached is an example .pbix model  https://1drv.ms/u/s!AvCirXUmRp-JhcB-nzpsOmkjSpY9yg?e=V8u9Bv

 

Below is the data table and the resulting visual I'm trying to create using a measure. 

 

sumif between dates.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

You can refer to the following link to use 'crossjoin' functions to generate a new table with detailed records of the date range, then you can simply summarize these records.

Spread revenue across period based on start and end date, slice and dase this using different dates 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @Anonymous,

You can refer to the following link to use 'crossjoin' functions to generate a new table with detailed records of the date range, then you can simply summarize these records.

Spread revenue across period based on start and end date, slice and dase this using different dates 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Anonymous , refer to my file on a similar topic , attached after signature

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks, but in your example the data table is not connected to the date table. I need the data table and the date table connected as I have other visuals that require the two tables to be connected. Is there a way to get this to work if the tables are connected? 

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.