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.
I have a report created from different data tables showing train traffic data like this. I need help for 2 issues: 1) How do I make the arrive_delay column to show times as hh:mm:ss instead of as decimal numbers. 2) I need a calculation or a measure that shows in % how many of each days total counted arrives are more than 3:00 minutes delayed and a calculation of the average delay of these delayed arrivals.
Can anyone help me making these calculations or measures?
Solved! Go to Solution.
For the first one, there is a blog article here:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
And a quick measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Seconds-2-HHMMSS/m-p/195615
For the second one, you are going to need the reverse, convert your hhmmss times to seconds probably.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279
For the first issue, you just need to change the format. No matter you create a column or measure.
differnce = Sheet1[real]-Sheet1[schedule]
difference2 = sum(Sheet1[real])-SUM(Sheet1[schedule])
for the second issue,you can try below coding
count% = DIVIDE( CALCULATE(COUNT(Sheet1[schedule]),FILTER(Sheet1,Sheet1[differnce]*86400>180)),COUNT(Sheet1[schedule]))
Proud to be a Super User!
For the first one, there is a blog article here:
https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
And a quick measure:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Seconds-2-HHMMSS/m-p/195615
For the second one, you are going to need the reverse, convert your hhmmss times to seconds probably.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279
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 |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |