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.
Hi,
I have one time column with different times. For example: 12:43:00 and 14:12:00.
I want a second column like this:
Column1 Column2
12:43:00 12-13
14:12:00 14-15
I cant find the formula for this.
Solved! Go to Solution.
In Power Query add a custom column
This solution works! So please click accept solution and thumbs up button
= Table.AddColumn(#"Changed Type", "Custom", each Text.From( Time.Hour([Time]))
& "-" &
Text.From(Time.Hour([Time])+1))
You can pad values before 12 with a leading zero like like
= Table.AddColumn(#"Changed Type", "Custom", each Text.PadStart(Text.From(Time.Hour([Time])),2,"0")
& "-" &
Text.PadStart(Text.From(Time.Hour([Time])+1),2,"0"))
try this
In Power Query add a custom column
This solution works! So please click accept solution and thumbs up button
= Table.AddColumn(#"Changed Type", "Custom", each Text.From( Time.Hour([Time]))
& "-" &
Text.From(Time.Hour([Time])+1))
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 |
---|---|
107 | |
98 | |
83 | |
76 | |
65 |
User | Count |
---|---|
120 | |
112 | |
94 | |
84 | |
75 |