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
HenryJS
Post Prodigy
Post Prodigy

Add Measure Date Is Not In Future

Hi all,

 

How do I create a measure that states:

  • If CandidateRef does NOT HAVE a PlacementStartDate in the future THEN YES

 

 

 

Screen Grab.JPG

5 REPLIES 5
Anonymous
Not applicable

Hi @HenryJS ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help anyone in the community find the solution easily when they face the same problem with you. Thank you.

However, if you still have something else needs help about this thread, please provide more details, we will continue to follow up.

Best Regards

Rena

az38
Community Champion
Community Champion

Hi @HenryJS 

try

Measure = 
var _isDateInFuture = CALCULATE( COUNTROWS('Table'), ALLEXCEPT('Table', 'Table'[CandidateRef]), 'Table'[PlacementStartDate] > TODAY())
RETURN
IF(_isDateInFuture < 1, "Yes", "No")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi @az38 

 

Doesn't seemed to have worked. Top two CandidateRef's have a PlacementStartDate's in the future.

 

It needs to be if the CandidateRef has a row where PlacementStartDate || ExtensionStartDate is in the future THEN YES for all rows with that CandidateRef

 

Hope that makes sense

 

 

Screen Grab2.JPG

Anonymous
Not applicable

Hi @HenryJS ,

What's your actual expected result? Which situation the field Finisher will display "Yes"? Situation 1 or situation 2?

1. When there is No PlacementStartDate in future for that CandidateRef?

2. When PlacementStartDate or PlacementEndDate have dates in future?

For example, the field Finisher will display yes or no for the CandidateRef 69785 ,105468 and 24768?

Best Regards

Rena

az38
Community Champion
Community Champion

@HenryJS 

you asked


@HenryJS wrote:

If CandidateRef does NOT HAVE a PlacementStartDate in the future THEN YES


So, if you want YES when CandidateRef has a future try

Measure = 
var _isDateInFuture = CALCULATE( COUNTROWS('Table'), ALLEXCEPT('Table', 'Table'[CandidateRef]), 'Table'[PlacementStartDate] > TODAY())
RETURN
IF(_isDateInFuture > 0, "Yes", "No")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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