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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.