Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
Could someone please help me to convert this in to DAX.
IIF(stop_action_description = 'Pick Up', (
IIF((
NOT ISNULL(aa_event_date_et)
AND TO_CHAR(aa_event_date_et, 'YYYY-MM-DD') <> '1900-01-01'
AND TO_CHAR(aa_event_date_et, 'YYYY-MM-DD') <> '2000-01-01'
), aa_event_date_et, IIF(TO_CHAR(schdarrivetodt_et, 'YYYY-MM-DD') <> '2000-01-01' AND NOT ISNULL(schdarrivetodt_et)
, schdarrivetodt_et, TO_DATE('1900-01-01 00:00:00', 'YYYY-MM-DD HH24:MI: SS')))
), IIF((
stop_action_description = 'Delivery'
OR stop_action_description = 'Pick Up - Delivery'
), IIF((
NOT ISNULL(last_agreed_dt_et)
AND TO_CHAR(last_agreed_dt_et, 'YYYY-MM-DD') <> '1900-01-01'
), last_agreed_dt_et, IIF((
NOT ISNULL(ab_event_date_et)
AND TO_CHAR(ab_event_date_et, 'YYYY-MM-DD') <> '2000-01-01'
), ab_event_date_et, IIF((TO_CHAR(schddeparttodt_et, 'YYYY-MM-DD') <> '2000-01-01')
AND NOT ISNULL(schddeparttodt_et)
, schddeparttodt_et, TO_DATE('1900-01-01 00:00:00', 'YYYY-MM-DD HH24:MI: SS'))))))
Thanks in advance
Hi @Anonymous ,
Sorry, I am not farmiliar with Sql statements, could you please just post your sample data and explain your logic of your data and post your desired result if possible?
Regards,
Daniel He
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |