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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.