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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.