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 a text column in an existing table. I want to remove the seconds so that it will relate to a Time table column that is in hh:mm format (with am/pm) . I know this is likely easy, but I cannot figure out the m code in order to do this. Help will be greatly appreciated.
Solved! Go to Solution.
Hi @SHAKEDALROY ,
On your Violation time column:
1. Replace values --> A by AM and P by PM
2. Split the column in 3 by Number of Characters (2) with the option "Repeatedly"
3. Combine the two first columns with a ":" as separator
4. Combine the resulting column with the one left containing AM/PM with a space as separator
5. In your Ribbon > Transform > Date & Time Column > Hour > Analize
Regards
Hi @SHAKEDALROY ,
On your Violation time column:
1. Replace values --> A by AM and P by PM
2. Split the column in 3 by Number of Characters (2) with the option "Repeatedly"
3. Combine the two first columns with a ":" as separator
4. Combine the resulting column with the one left containing AM/PM with a space as separator
5. In your Ribbon > Transform > Date & Time Column > Hour > Analize
Regards
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 |
---|---|
101 | |
52 | |
21 | |
12 | |
11 |