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.
Hallo zusammen,
Die Flugverspätungen liegen wie in dem Bild dargestell vor:
1. Ich möchte nur die positiven Werte summieren.
2. Die Dauer soll in hh:mm angzeigt werden. Zusätzlich habe ich das Problem, dass wenn der Wert über 24 Stunden z.B 25 Stunden ist es mir nur als 1 Stunde ausgegeben wird.
Vielen Dank
Solved! Go to Solution.
Hi, @Anonymous
I simulated some data, hoping to restore your problem.
1. Calculate the difference in minutes and convert it to time format.
Minute = DATEDIFF([Actual time],[Expected time],MINUTE)
Duration =
IF (
ABS ( [Minute] ) > 1440,
INT ( ( ABS ( [Minute] ) - 1440 ) / 60 ) & ":"
& ABS ( [Minute] )
- INT ( ABS ( [Minute] ) / 60 ) * 60,
INT ( ABS ( [Minute] ) / 60 ) & ":"
& ABS ( [Minute] )
- INT ( ABS ( [Minute] ) / 60 ) * 60
)
2. You can determine whether minutes are positive and sum them.
Sum =
CALCULATE ( SUM ( 'Table'[Minute] ), FILTER ( 'Table', [Minute] > 0 ) )
Sum time =
IF (
[Sum] > 1440,
INT ( ( [Sum] - 1440 ) / 60 ) & ":"
& [Sum]
- INT ( ( [Sum] - 1440 ) / 60 ) * 60,
INT ( [Sum] / 60 ) & ":"
& [Sum]
- INT ( [Sum] / 60 ) * 60
)
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
I simulated some data, hoping to restore your problem.
1. Calculate the difference in minutes and convert it to time format.
Minute = DATEDIFF([Actual time],[Expected time],MINUTE)
Duration =
IF (
ABS ( [Minute] ) > 1440,
INT ( ( ABS ( [Minute] ) - 1440 ) / 60 ) & ":"
& ABS ( [Minute] )
- INT ( ABS ( [Minute] ) / 60 ) * 60,
INT ( ABS ( [Minute] ) / 60 ) & ":"
& ABS ( [Minute] )
- INT ( ABS ( [Minute] ) / 60 ) * 60
)
2. You can determine whether minutes are positive and sum them.
Sum =
CALCULATE ( SUM ( 'Table'[Minute] ), FILTER ( 'Table', [Minute] > 0 ) )
Sum time =
IF (
[Sum] > 1440,
INT ( ( [Sum] - 1440 ) / 60 ) & ":"
& [Sum]
- INT ( ( [Sum] - 1440 ) / 60 ) * 60,
INT ( [Sum] / 60 ) & ":"
& [Sum]
- INT ( [Sum] / 60 ) * 60
)
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Bitte die Beispieldaten in einem benutzbaren Format zur Verfügung stellen. Zum Beispiel eine Tabelle in die Nachricht integrieren, oder einen der Dateiserver Anbieter benutzen.
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 |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
87 | |
61 |