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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
russdev
Regular Visitor

Power Query In Service Edition

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_geo

However 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

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@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.

View solution in original post

1 REPLY 1
ankitpatira
Community Champion
Community Champion

@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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.