Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |