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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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