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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Unable to correctly filter records using start and end date

Hi, I'm trying to create a measure where if a date falls within start and end date fields, it's a match else it's not.
Here's my data

StevenT_0-1655215807888.png

As you can see here, some of the fields marked True in the last column, should be marked as false because they fall outside of the date range.

This is the DAX code I'm using.

_A Date between IterStart IterEnd =
IF (
SELECTEDVALUE (
'UniqueSprintSchedule'[IterationStartDate] ) >= MAX ( 'WIP Data'[Epic Actual End Date])
&& SELECTEDVALUE ( 'UniqueSprintSchedule'[IterationEndDate] ) <= MAX ( 'WIP Data'[Epic Actual End Date] ),
TRUE(),FALSE()
)


What am i doing wrong? 

3 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi Sparta.  I'll have to stop at this point.  Due to the limitations I have, I'll be unable to proceed any further on this question. Thanks for the attempt and I appreciate it.

View solution in original post

v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, in your formula, the symbol doesn't seem right. The IterationStartDate should <= Epic Actual End Date and the IterationEndDate should >= Epic Actual End Date.

vkalyjmsft_0-1655791954918.png

I create a sample and it can get the correct result after modify the symbol.

vkalyjmsft_1-1655792276503.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

Thank you very much. I see where I made what some might call a "Stupid" mistake.

I appreciate the response!

View solution in original post

11 REPLIES 11
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, in your formula, the symbol doesn't seem right. The IterationStartDate should <= Epic Actual End Date and the IterationEndDate should >= Epic Actual End Date.

vkalyjmsft_0-1655791954918.png

I create a sample and it can get the correct result after modify the symbol.

vkalyjmsft_1-1655792276503.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

Thank you very much. I see where I made what some might call a "Stupid" mistake.

I appreciate the response!

Anonymous
Not applicable

Hi Sparta.  I'll have to stop at this point.  Due to the limitations I have, I'll be unable to proceed any further on this question. Thanks for the attempt and I appreciate it.

@Anonymous ok, sorry I couldn't help here

Anonymous
Not applicable

I wish i could but at this time, I'm unable to do it. But I appreciate the input. I just can't go past providing this much....

Anonymous
Not applicable

I'm sorry, it's not possible at time...I'll have to pass on this question and thank you for your attempt.

Ok 🙂 Sorry I couldn't help more. 
P.S.
Check out my showcase report - got some high level stuff there 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂

Anonymous
Not applicable

Hi Sparta. I wish i could but can't.  Having a copy of the actual data, is the best to describe a problem.
I'll have to see what I can do. Thanks for the attempt.

SpartaBI
Community Champion
Community Champion

@Anonymous your columns have similar names, want to be sure you don't have a typo 🙂
What exactly do you want to be between what?
Also, in the screenshut you send, all of the columns in the table except the last one are columns or are some of them measures? Best if you could just share the file

Anonymous
Not applicable

Thanks for your response. Unfortunately i can't submit the tables, i can only describe what I'm trying to do.
Here's a screen print that might provide enough information?

The data model of the two tables

StevenT_10-1655218709834.png

 

 

@Anonymous Still didn't understand. Would be great if you could create a sample PBIX with few rows and share it.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors