Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Dear all ,
I have created a measure which does proper calculation and returns seconds .for example 673929 seconds .
Now can I do something to get this measure return me in format of
day : hours
Please help
Solved! Go to Solution.
@Sujit_Thakur , refer if this can help
please try this
Measure 2 =
VAR _cal=[Measure]/60/60/24
var day=int(_cal)
var hour=int((_cal-day)*24)
return day&":"&hour
Proud to be a Super User!
@Sujit_Thakur - See Chelsie Eiden's Duration - https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
Uses Custom format strings:
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
If you want this as an actual measure/column:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
@Sujit_Thakur , refer if this can help
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
92 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
120 | |
110 | |
59 | |
57 |