Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everybody, how is it going?
I have a question that I need help, please. I checked the other threads but got a different result.
I need to split a coordinates column that latitude and longitude are delimited by a comma, but i cannot use Power Query.
For the longitude, the formula worked perfectly, but for the latitude I got some errors: some values got the divider and others got the divider and the first number from the right.
Latitude formula that I used and didn't worked:
Longitde formula (that worked):
COORDENADA | LATITUDE | LONGITUDE |
3.8442639,-51.8310729 | 3.8442639,- | -51.837152 |
3.8350949,-51.8331285 | 3.8350949,- | -51.8331285 |
2.053552,-50.7928413 | 2.053552,-5 | -50.7928413 |
Thanks in advance everyone!
Solved! Go to Solution.
@Anonymous
Please try
latitude =
VAR String = 'Tabela KM 2'[COORDENADA]
VAR Items =
SUBSTITUTE ( String, ",", "|" )
RETURN
PATHITEM ( Items, 2 )
@Anonymous
Please try
latitude =
VAR String = 'Tabela KM 2'[COORDENADA]
VAR Items =
SUBSTITUTE ( String, ",", "|" )
RETURN
PATHITEM ( Items, 2 )
Hi Tamerj1! Thanks for the response!
Your response brought the longitude, but changing the "2" for "1" on the return solved completely my problem.
Much thanks to you!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |