Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
briguin
Helper I
Helper I

Name a location based on Position within GEOFence (Longitude / Latitude)

I have a table in PowerBI = DateTime | DeviceId | Longitude | Latitude

I want to convert the reported longitude and latitude into a User-friendly name.

If the device Lat/long is in the Geofence box then I want to name it Location1 or 2, depending on which box it fits in.

briguin_0-1606331797808.png

 

I'm thinking of a "Lookup" table:

If

Device_Longitude > West_Long and Device _Longitude < East_Long

And

Device _Latitude > South_Latitude and Device _Longitude < North_Latitude

Then provide the matching name.

 

I don't see how I could join to get a cross-reference.

Is there any logic that would allow me to use a table to lookup values between a long/latitude?

I think I could use a switch in Dax but I may have many locations and don't want to hardcode the switch.

 

Here was my sample Geofence

Descp,West-Long, North_Lat, East-Long, South_Lat
Location1, -117.09892, 32.790678, -117.080209, 32.774514
Location2,-117.13617, 32.789235, -117.12165, 32.776464

 

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @briguin ,

Sorry for replying late. As far as I know, currently it could not support in power bi to meet your requirement.

Perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner: https://ideas.powerbi.com/forums/265200-power-bi-ideas


It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.