Reply
MattTrollope
Frequent Visitor

Identifying records from table with Join & End dates within a date range

I'm trying to create a measure that will return the records where a Join Date falls before the last date in a date range, and the Close Date after the first date in the range, or is blank. The following doesn't return any records where the Close Date is blank, is there an obvious reason?
There is an active join between the Date table and the Join Date, as I only want records with a Join Date returned (many of these have a blank Close Date), but when deactivated it it returns all records in the table, regardless of the date slicer.
Any help would be greatly appreciated (the blurred items all reference the same table).

 

MattTrollope_1-1716408965252.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

Jihwan_Kim_2-1716433315612.png

 

 

Jihwan_Kim_1-1716433302223.png

 

 

Jihwan_Kim_0-1716433288437.png

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

2 REPLIES 2
MattTrollope
Frequent Visitor

Thank you, that does work as expected.

It is the same method that I was using, which means there must be something within my semantic model that is at fault. I will investigate that to find my problem. At least you've reassured me that the DAX wasn't at fault.

Thanks again.

Jihwan_Kim
Super User
Super User

hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

Jihwan_Kim_2-1716433315612.png

 

 

Jihwan_Kim_1-1716433302223.png

 

 

Jihwan_Kim_0-1716433288437.png

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)