Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, I have a column from a table that the database is not following a standard as from picture below. I need to have the time information in hours as a number, but the person that fills the database sometime fills with strings such as "h" for hours and "min" for minutes. I would like to create a function in PQ that transforms these cases of texts to the correct number value. In other words, I would like to change "h" for a comma, erase the word num and the value of minutes I would have to divide by 60 to have its decimal values in hours.
I am not very much familiar with coding in PQ, so I kindly ask someone's help 🙂
Solved! Go to Solution.
@RPAI2812 in PQ replace "h" with comma(,) and then split on first delimiter (,)
@RPAI2812 in PQ replace "h" with comma(,) and then split on first delimiter (,)
An additional relevant information is that I don't have access to edit the database
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 |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 5 |