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
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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors