Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
This is probalby a super easy solutions to this but after trying several different methods from the forum I couldn't get it to work. I have several columns that I need to either have time units added to them (ie. Hour, Day, Minute).
Here is an example of one of my columns that needs to have the "Days" unit added:
ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR))
Solved! Go to Solution.
Am not sure this is what you expect ....Please let me know if you need something else 🙂
Adding & "Days" at the end of your formula will solve the problem.
ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR)) & "Days"
Thanks
Raj
Hi
Could you please make the question clear ? OR Can you please post some details / sample with what do you have and what do you expect?
Thanks
Raj
Of course, I have all three of these columns of which the last one I created through a DATEDIFF calculation as shown above. Currently It looks like this:
| Date_Responded_UTC | ART_ST | ART |
| 11/6/17 8:00 PM | 11/7/17 8:00 PM | 1 |
| 11/7/17 8:00 PM | 11/11/17 8:00 PM | 4 |
I am wanting it to look like this:
| Date_Responded_UTC | ART_ST | ART |
| 11/6/17 8:00 PM | 11/7/17 8:00 PM | 1 Days |
| 11/7/17 8:00 PM | 11/11/17 8:00 PM | 4 Days |
Am not sure this is what you expect ....Please let me know if you need something else 🙂
Adding & "Days" at the end of your formula will solve the problem.
ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR)) & "Days"
Thanks
Raj
Thank you @Anonymous, This worked great! I had been trying to place the & "Date" inside the parenthesis.
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.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |