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,
there is a column(GeoLocation) with (latitude,longitude). how to split latitude and longitude as two differet columns by using only measure.
Thank you
Solved! Go to Solution.
Hi @Anonymous ,
az38's suggestion is great , you can also create measures like DAX below.
Latitude=
var Comma= FIND(",",Table1[GeoLocation],1)
return
MID(Table1[GeoLocation],1,Comma-1)
Longitude=
var Comma= FIND(",",Table1[GeoLocation],1)
Var Len=LEN(Table1[GeoLocation])
return
MID(Table1[GeoLocation],Comma+1,Len-Comma)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
az38's suggestion is great , you can also create measures like DAX below.
Latitude=
var Comma= FIND(",",Table1[GeoLocation],1)
return
MID(Table1[GeoLocation],1,Comma-1)
Longitude=
var Comma= FIND(",",Table1[GeoLocation],1)
Var Len=LEN(Table1[GeoLocation])
return
MID(Table1[GeoLocation],Comma+1,Len-Comma)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous
it depends on exactly format of your column. show a data example, please
do not hesitate to give a kudo to useful posts and mark solutions as solution
@Anonymous
anyway, try this column
=
VAR V_Pos = FIND(",",[GeoLocation])
RETURN
ROW(
"Lat",LEFT([GeoLocation],V_Pos-1),
"Long",RIGHT([GeoLocation],LEN([GeoLocation])-V_Pos)
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
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 |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |