Forum Discussion
slounsbury
8 years agoHelper II
Display Absolute Value Of DATEDIFF Column
I have a column that has the difference in time but some of the values are reading as the correct number just negative. Is there away to modify my query to make all numbers absolute?
Query Being Used:
ART = DATEDIFF(v_rpt_Service_SLA[ART_ST], v_rpt_Service_SLA[Date_Responded_UTC],HOUR)
Hi slounsbury,
Just wrap your measure with ABS formula:
ART = ABS ( DATEDIFF ( v_rpt_Service_SLA[ART_ST], v_rpt_Service_SLA[Date_Responded_UTC], HOUR ) )Regards,
MFelix
2 Replies
- MFelixSuper User
Hi slounsbury,
Just wrap your measure with ABS formula:
ART = ABS ( DATEDIFF ( v_rpt_Service_SLA[ART_ST], v_rpt_Service_SLA[Date_Responded_UTC], HOUR ) )Regards,
MFelix
- slounsburyHelper II
Thank you! This did the trick.