This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello
I would like to create a GeoIP lookup function. In Desktop I would create the following Power Query and add custom column to the data source.
let
get_geo = (IPAddress as text) =>
let
Source = Json.Document(Web.Contents("http://ip-api.com/json/"&IPAddress&"")),
#"Converted to Table" = Record.ToTable(Source),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "city" or [Name] = "country" or [Name] = "countryCode" or [Name] = "query")),
#"Transposed Table" = Table.Transpose(#"Filtered Rows"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table")
in
#"Promoted Headers"
in
get_geoHowever I can't see any obvious way in service edition to add the Power query. I am sure I am missing something obvious.
Thank you
Russell
Solved! Go to Solution.
@russdev You can't create power query function straight through power bi service. you have to create them in power bi desktop, use there and they get published as part of your publish from power bi desktop. If you're using that funciton in your other queries they will be applied when you refresh via power bi service.
@russdev You can't create power query function straight through power bi service. you have to create them in power bi desktop, use there and they get published as part of your publish from power bi desktop. If you're using that funciton in your other queries they will be applied when you refresh via power bi service.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 9 | |
| 7 | |
| 6 |
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 24 | |
| 19 | |
| 19 |