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

View all the Fabric Data Days sessions on demand. View schedule

Reply
anongard
Helper I
Helper I

Query if statement

In Query mode, I'm trying to replicate this DAX function: TestCourse = IF(Courses[CompletedDate] > Courses[ActivationDate],TRUE,FALSE)

 

However, nothing I've tried in M has worked. I tried first with

 

= if Courses[CompletedDate] > Courses[ActivationDate]

then "TRUE"

else "FALSE" 

 

but I get errors about cyclic references and nothing very helpful to resolve it. If I could do a conditional column that would give me an option for Value=Course[ActivationDate] I would as well, but it doesn't let me do that. What am I doing wrong? 

 

Thanks,

Alex

1 ACCEPTED SOLUTION

@anongard

 

Click ABC123 and Choose the Option "Select a Column"

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@anongard

 

Hi, please check the image.

 

dates Compare.png

Regards

 

Victor

Lima - Peru




Lima - Peru

Unfortunately, the field labeled "Value" will only accept values that are dates. It will not accept "Activation Date" as you describe it. 

 

conditionalcolumn.PNG

@anongard

 

Click ABC123 and Choose the Option "Select a Column"

 

Victor

Lima - Peru




Lima - Peru

My god you're a genius. Thank you so much! I fell a little like an idiot for not seeing that option sooner. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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