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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TBSST
Frequent Visitor

Having two dates filtered through one date filter

Hi all, 

 

i am trying have multiple viuslisatiosn that use different dates to be filtered with one date slicer. 

 

I currently have a callender table, which i would like 'the date' to be the main slicer. All dates are on seperate tables. With the DAX i am using, i would like to have a distinctcount of all users, and then for them to be filtered by entery date and another viusaltion to be filtered through exit date. So when change 'the date' slicer, the visulations with entry dates will show users who had an entry date between that period of time, and the visulisations with the exit date to show the exit dates between the period of time. 

 

Although with the DAX, when using 'The date' slicer, it is not showing the correct numbers.

 

Clients = CALCULATE(DISTINCTCOUNTNOBLANK(table[clientID]), FILTER(entry, entry[EntryDate] <=MAX('Calendar'[TheDate] && (entry, entry[EntryDate] >=MIN('Calendar'[TheDate]))))
 
any help would be appreciated. 

Thank you. 
1 REPLY 1
JoeBarry
Solution Sage
Solution Sage

Hi @TBSST 

 

Not sure what this means All dates are on seperate tables are exits and entries in different tables? If they are in the same table do this below

 

Create a a one to many relationship between the date column in the Date table and the entry date and the same relationship with the exit date. This relationship will be inactive. 

 

New Entries = DISTINCTCOUNT(table[ClientID])

 

Exits = CALCULATE(DISTINCTCOUNT(table[ClientID]),
USERELATIONSHIP(table[ExitDate], DateTable[Date])

 

 

If they are in seperate tables, create a one to many relationship with the dates. Remove the USERELATIONSHIP from the 2nd measure and then add  them to the visuals. 

 

Thanks

Joe

 

If this post helps, then please Accept it as the solution

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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