Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Connect to 2020 census database

Hi all,

 

I'm trying to integrate census data from https://data.census.gov/cedsci/ into PowerBI, specifically information on demographics, unemployment/poverty, income, housing, and population density by metro area or county. 

 

I've already applied for and received the API key necessary from https://api.census.gov/data/key_signup.html 

 

I'm very new to PBI and DAX, so I'm struggling to find the proper query to get the information into my dashboards. It doesn't help that the census data website isn't all that intuitive either and seems like every different table is a new web address I'd have to include in the query (I think). For example, income by county is here: https://data.census.gov/cedsci/table?q=income&g=0100000US%240500000_0400000US01%240500000&tid=ACSST5Y2020.S1901 but I can't see how to include demographics into the same table. 

 

Any help would be greatly appreciated!

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    So there are many tables you want to connect to ,right? I'd suggest you firstly download the data into a local folder.

    And open Power BI Desktop, get data from Folder

    Then you could merge tables in Power Query Editor or build relationships between tables to make them related.

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hey when you connect to the web api, you can scrap anything you view from that page, meantime, you also can create parameter to change the web page. If you want the graphs from that page, you can check below video, hope you get some insights:
    https://www.youtube.com/watch?v=8zGick5e7MU