Forum Discussion

CarlsBerg999's avatar
CarlsBerg999
Icon for Helper V rankHelper V
6 years ago
Solved

Creating hierarchies from multiple tables

Hi,

 

I'm having issues creating hierarchies with data from multiple tables. The goal is to have a visualization that enables a drilldown feature to lower levels of the hierarchy. I have three tables (Facebook, Twitter, Linkedin) with identical data fields. Facebook is an example below:

 

Facebook:

Media platformCategoryPost IDViews
FacebookPicture1140
FacebookVideo2200
FacebookText370

 

What i want to do, is have a visual where the information is as follows:

Picture5140
Facebook140
Twitter2500
Linkedin2500
Video500
Facebook200
Twitter300
Text170
Facebook70
Linkedin100

 

How do i create hierarchy like this from three different data sources? Basically this could be a Pie Chart where you have Picture, Video and Text, and by clicking on "Text", you get the media sources that comprise the text.  

 

Thank you in advance!

  • CarlsBerg999 

    maybe you can try this in PQ.

    1. select both Media and Category , then unpivot

    you can see the column value is that you want.

    2. do the same steps for the rest two tables and combine three tables(Append function in PQ)

     

3 Replies

  • CarlsBerg999 

    maybe you can try this in PQ.

    1. select both Media and Category , then unpivot

    you can see the column value is that you want.

    2. do the same steps for the rest two tables and combine three tables(Append function in PQ)

     

  • v-diye-msft's avatar
    v-diye-msft
    Icon for Community Support rankCommunity Support

    Hi CarlsBerg999 

     

    If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

    If not, please kindly elaborate more.