skip to main content
Power BI
    • What is Power BI
    • Why Power BI
    • Customer stories
    • Data visuals
    • Power BI Desktop
    • Power BI Pro
    • Power BI Premium
    • Power BI Mobile
    • Power BI Embedded
    • Power BI Report Server
  • Pricing
    • Azure + Power BI
    • Office 365 + Power BI
      • Energy
      • Healthcare
      • Manufacturing
      • Retail
    • For analysts
    • For IT
    • For developers
    • Overview
    • Find consulting services
    • Partner showcase
    • Find a partner
    • Become a partner
      • Overview
      • Guided learning
      • Documentation
      • Webinars
      • Roadmap
      • Overview
      • Issues
      • Give feedback
    • Blog
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • Events
    • User groups
    • Community blog
    • Register
    • ·
    • Sign In
    • ·
    • Help
    Go To
    • Galleries
    • COVID-19 Data Stories Gallery
    • Themes Gallery
    • Data Stories Gallery
    • R Script Showcase
    • Webinars and Video Gallery
    • Quick Measures Gallery
    • MBAS Gallery
    • MBAS Gallery 2020
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Microsoft Power BI Community
    • Galleries
    • Data Stories Gallery
    • IP Address Mapping in Power BI

    IP Address Mapping in Power BI

    07-23-2017 08:25 AM - last edited 01-25-2021 10:10 AM

    Microsoft SamLester
    Microsoft
    7477 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    SamLester
    Microsoft SamLester
    Microsoft
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    IP Address Mapping in Power BI

    ‎07-23-2017 08:25 AM

    The following report and M code show how to perform an IP Lookup to obtain location details for a list of IP Addresses in order to map them in Power BI.

     

    For detailed instructions, please see the blog here:

    https://blogs.msdn.microsoft.com/samlester/2017/07/23/ipaddressmappinginpowerbi/

     

    Thanks,
    Sam Lester (MSFT)

     

     

    eyJrIjoiM2MzZGE1YTktZTQxMS00ODE2LWIwNjAtNWQ1MmJhNDBmOTliIiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9

    http://blogs.msdn.microsoft.com/samlester
    Follow me on Twitter


    Preview file
    368 KB
    IPAddressMapping_Jan2021.pbix
    Labels:
    • Labels:
    • Business
    • Entertainment
    • How To
    • Social Media
    Message 1 of 3
    7,477 Views
    4
    Reply
    • All forum topics
    • Previous Topic
    • Next Topic
    mwilner
    mwilner
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎02-06-2020 05:38 AM

    I am new to PowerBI and I have been trying to follow the instructions but found it didn't work for me as described.

    I think in the GetAllFromIP the "Source = (FullURL) =>" should be Source = (FullIPURLCity) =>, right because that's how the column was named?

    Then when trying to apply the query editor only the column FullIPURLCity is getting created but I don't get the table that should be coming from the GetAllFromIP function, I am missing a step I guess.

    Trying to run just the function I get an error that the resulting format is HTML not JSON as expected, again, I think I am missing a step.

     

    Any help, or ideas to fix this would be appreciated.

    \Manfred

     

    Message 2 of 3
    2,538 Views
    0
    Reply
    mwilner
    mwilner
    New Member
    In response to mwilner
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    ‎02-06-2020 06:11 AM

    One more quick update.

    I finally found the sample PBIX file 😎

    The CSV file noted in the sample is missing and referencing a local file! After creating a sample file I was able to load the project correctly and could analyze it. 

    There were two steps in the project that are not described in the blog that were the missing pieces to my puzzle.

    Also, when trying to execute the query I noted that the key keyword was missing, inserting this got me the expected result.

     

    Unfortunately this only worked for my sample file with a few IP address samples but when I was trying to execute this against my large (over a thousand IP's) it errored out with an OLE DB or ODBC error: [DataSource.Error] Unable to connect to the remote server. 

    I assume that there is a limit on how many IP's one can translate.

    Message 3 of 3
    2,533 Views
    0
    Reply
    Preview Exit Preview

    never-displayed

    You must be signed in to add attachments

    never-displayed

    Additional options
    You do not have permission to remove this product association.
     

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents

    • Sign in
    • Sign up

    Browse

    • Solutions
    • Partners
    • Consulting Services

    Downloads

    • Power BI Desktop
    • Power BI Mobile
    • Power BI Report Server
    • See all downloads

    Learn

    • Guided learning
    • Documentation
    • Support
    • Community
    • Give feedback
    • Webinars
    • Developers
    • Blog
    • Newsletter

    • © 2021 Microsoft
    • Follow Power BI
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks