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 September 15. Request your voucher.

Reply
krichmond
Helper IV
Helper IV

Modify existing DAX formula to look at anything between 91 days to 180 days as the true

I need help modifying an existing DAX formula (below) so that it looks at anything between 91 days to 180 days as the true and anything 181 days and greater as a false.

 

180 Day Date Designator = IF(DATEDIFF(mv_perfex[startdate],TODAY(),DAY)<=180,"True","False")
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @krichmond 

please try

180 Day Date Designator =
VAR Difference =
    DATEDIFF ( mv_perfex[startdate], TODAY (), DAY )
RETURN
    IF ( Difference >= 91 && Difference <= 180, "True", "False" )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @krichmond 

please try

180 Day Date Designator =
VAR Difference =
    DATEDIFF ( mv_perfex[startdate], TODAY (), DAY )
RETURN
    IF ( Difference >= 91 && Difference <= 180, "True", "False" )

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.