The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have this formula :
new column = if [EVT_CD] = "TF" then [EVT_TMSTMP] - #duration(0, 1, 0) else [EVT_TMSTMP]
but it gives me an error in new column.
My [EVT_TMSTMP] column is in Date/Time format, and looks like this:
Can anyone fix my formula so I dont get an error when a TF record is found?
Solved! Go to Solution.
Your mention of requiring 4 parameters jogged my memory and i was able to fix this. Thanks!
= if [EVT_CD] = "TF" then [EVT_TMSTMP] - #duration(0, 0, 1, 0) else [EVT_TMSTMP]
Your mention of requiring 4 parameters jogged my memory and i was able to fix this. Thanks!
= if [EVT_CD] = "TF" then [EVT_TMSTMP] - #duration(0, 0, 1, 0) else [EVT_TMSTMP]
Please, if you get an error and want help you really have to post the error message. Also, Duration takes 4 parameters