This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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
DESIRED OUTPUT
Thank you
Solved! Go to Solution.
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.
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 21 | |
| 18 |