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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Syndicate_Admin
Administrator
Administrator

Please help

if ([Outcome Date]-[#"Treatment Registrar Date#(lf)(please fill in date format: 1-Jan-2021)"]) >150 then "OK" else "Check"

 

is not working

 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

Duration.Days([Outcome Date]-[#"Treatment Registrar Date#(lf)(please fill in date format: 1-Jan-2021)"]) >150

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Thank you. It working indirectly.

Syndicate_Admin
Administrator
Administrator

I want to use if condition for that logic

[Date 2] - [Date 1]= result >150 days, "OK", "Check"

 

wdx223_Daniel
Super User
Super User

Duration.Days([Outcome Date]-[#"Treatment Registrar Date#(lf)(please fill in date format: 1-Jan-2021)"]) >150

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors