Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I want to get the duration in Power BI ,between strat time column and end time column ( 24hrbased), when i did subtract I could get it in power queery but in model it is converting to a value. How to keep the same duration in model as in query.
ex: start time : 16:00:00( 4pm) column
End time: 16:30:00(4:30pm) column
Need a column of duration , I have duration 30min, 45 min 1hr and 2hr.
Thanks in advance.
If you want to change how it is displayed but keep date/time as the data type, there are dozens and dozens of ways to format a date time value within Power BI. See below image.
If none of those work for you , and you're okay with the data type being text, create it using DAX and check out the FORMAT() function and you will be able to customize it to display however you want.
https://learn.microsoft.com/en-us/dax/format-function-dax
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 38 | |
| 35 | |
| 23 |