Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Solved! Go to Solution.
Hi @Anonymous
I would recommend handling this further upstream (data source or Power Query).
However, here is a DAX expression you could use for a calculated column:
Latitud Decimal =
VAR DMS = [Latitud Fin] // Ideally prefix with table name e.g YourTable[Latitud Fin]
VAR DMS_Delimited =
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( DMS, "°", "|" ), "'", "|" ), """", "" )
VAR Grados =
VALUE ( PATHITEM ( DMS_Delimited, 1 ) )
VAR Minutos =
VALUE ( PATHITEM ( DMS_Delimited, 2 ) )
VAR Segundos =
VALUE ( PATHITEM ( DMS_Delimited, 3 ) )
VAR Result = Grados + Minutos / 60 + Segundos / 3600
RETURN
Result
This changes the delimiters to vertical bars, which allow for convenient splitting of the string with the PATHITEM function.
Regards
Hi @Anonymous
I would recommend handling this further upstream (data source or Power Query).
However, here is a DAX expression you could use for a calculated column:
Latitud Decimal =
VAR DMS = [Latitud Fin] // Ideally prefix with table name e.g YourTable[Latitud Fin]
VAR DMS_Delimited =
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( DMS, "°", "|" ), "'", "|" ), """", "" )
VAR Grados =
VALUE ( PATHITEM ( DMS_Delimited, 1 ) )
VAR Minutos =
VALUE ( PATHITEM ( DMS_Delimited, 2 ) )
VAR Segundos =
VALUE ( PATHITEM ( DMS_Delimited, 3 ) )
VAR Result = Grados + Minutos / 60 + Segundos / 3600
RETURN
Result
This changes the delimiters to vertical bars, which allow for convenient splitting of the string with the PATHITEM function.
Regards
infinitely grateful 🤜🤛
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
45 | |
43 |