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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Multiple IF

Hi and good day,

Can anyone help me on my claculated columm using IF function (for ACTIVE Job only)
 - IF Job is ACTIVE, then check Est Stat Date if date is 2025  copy the date on the result column
- IF Job is ACTIVE, then check Est Stat Date if date is not 2025 check on Actual Stat Date if 2025 copy the date on the result column
- IF Job is ACTIVE, then check Est Stat Date if date is not 2025 check on Actual Stat Date if not check Est End Date if  2025 copy the date on the result column
  

AllanBerces_0-1746580441567.png

DESIRED OUTPUT

AllanBerces_1-1746580474005.png

Thank you

1 ACCEPTED SOLUTION
pankajnamekar25
Super User
Super User

Hello @AllanBerces 

Use this DAX code to create calculated column

ResultDate =

IF (

    'Table'[Job Status] = "ACTIVE",

    SWITCH (

        TRUE(),

        YEAR('Table'[Est Stat Date]) = 2025, 'Table'[Est Stat Date],

        YEAR('Table'[Actual Stat Date]) = 2025, 'Table'[Actual Stat Date],

        YEAR('Table'[Est End Date]) = 2025, 'Table'[Est End Date],

        BLANK()

    ),

    BLANK()

)

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

View solution in original post

2 REPLIES 2
pankajnamekar25
Super User
Super User

Hello @AllanBerces 

Use this DAX code to create calculated column

ResultDate =

IF (

    'Table'[Job Status] = "ACTIVE",

    SWITCH (

        TRUE(),

        YEAR('Table'[Est Stat Date]) = 2025, 'Table'[Est Stat Date],

        YEAR('Table'[Actual Stat Date]) = 2025, 'Table'[Actual Stat Date],

        YEAR('Table'[Est End Date]) = 2025, 'Table'[Est End Date],

        BLANK()

    ),

    BLANK()

)

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Hi @pankajnamekar25 thank you very much for the reply, work as i need.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.