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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
maurcoll
Helper I
Helper I

Greater than Date Selected

Hi I need help to identify the people who's training has not expired based on a date selected. So for example if i select a date from a slicer the the table will only show me the people whose training is still valid after this date. So for example with the below table if i selected 01/02/2025 only employees 1 and 4 would show in the table. Employee Training Expires Employee 1 First Aid 01/05/2025 Employee 2 First Aid 01/04/2024 Employee 3 Fire Marshall 27/10/2024 Employee 4 Supervisor 30/03/2025
1 ACCEPTED SOLUTION
Alex87
Solution Supplier
Solution Supplier

Hello,

I recreated your use case. This measure will work for you as long as you DO NOT have an active relationship between your date dimension table and your fact table.

 

IsTrainingValid = 
VAR _SelectedDate = MAX('Date Table'[Date])
VAR _Result = 
IF(
   MAX(YourTable[Expires]) > _SelectedDate, 
   "Valid", 
   "Expired")

RETURN
_Result

 

 

Alex87_0-1715068868659.png

 

If it answers your query, please mark my rely as the solution

View solution in original post

1 REPLY 1
Alex87
Solution Supplier
Solution Supplier

Hello,

I recreated your use case. This measure will work for you as long as you DO NOT have an active relationship between your date dimension table and your fact table.

 

IsTrainingValid = 
VAR _SelectedDate = MAX('Date Table'[Date])
VAR _Result = 
IF(
   MAX(YourTable[Expires]) > _SelectedDate, 
   "Valid", 
   "Expired")

RETURN
_Result

 

 

Alex87_0-1715068868659.png

 

If it answers your query, please mark my rely as the solution

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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