Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I'm trying to create a table via DAX that will use latitudes and longitudes as integers however when I enter that values only whole numbers are available but I need decimal values x5 or x6.
I know I can "Enter Data" or "connect to Excel csv" file but the particular problem I'm working on requires a DAX table to be created in this fashion.
I have also followed other advice tips to change numbers into decimal numbers, not summarized and data category classifications as "latitude" and "longitude" respectively
My formula is:
Test Coordinates =
DATATABLE(
"Latitude",INTEGER,
"Longitude",INTEGER,
"Nod",INTEGER,
"Ion",INTEGER,
"Address",STRING,
{
{48.858242,2.2949378,31,1,"Address 1"},
{38.89773,-77.03653,32,2,"Address 2"},
{51.499447,-0.124759,33,3,"Address 3"},
{52.51622,13.37765,34,5,"Address 4"}
}
)
https://www.dropbox.com/s/7mo46b7z590zuuh/LatLongFix.pbix?dl=0
Solved! Go to Solution.
Hi @Anonymous ,
Please try the dax below:
Test Coordinates =
DATATABLE(
"Latitude",DOUBLE,
"Longitude",DOUBLE,
"Nod",INTEGER,
"Ion",INTEGER,
"Address",STRING,
{
{48.858242,2.2949378,31,1,"Address 1"},
{38.89773,-77.03653,32,2,"Address 2"},
{51.499447,-0.124759,33,3,"Address 3"},
{52.51622,13.37765,34,5,"Address 4"}
}
)
here is my test result:
Hope it helps,
Community Support Team _ Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try the dax below:
Test Coordinates =
DATATABLE(
"Latitude",DOUBLE,
"Longitude",DOUBLE,
"Nod",INTEGER,
"Ion",INTEGER,
"Address",STRING,
{
{48.858242,2.2949378,31,1,"Address 1"},
{38.89773,-77.03653,32,2,"Address 2"},
{51.499447,-0.124759,33,3,"Address 3"},
{52.51622,13.37765,34,5,"Address 4"}
}
)
here is my test result:
Hope it helps,
Community Support Team _ Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Create with ROW and union after that mark this column category as long/lat
example
union(
ROW("Month", 1),
ROW("Month", 2),
ROW("Month", 3)
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.