Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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 platform | Category | Post ID | Views |
Picture | 1 | 140 | |
Video | 2 | 200 | |
Text | 3 | 70 |
What i want to do, is have a visual where the information is as follows:
Picture | 5140 |
140 | |
2500 | |
2500 | |
Video | 500 |
200 | |
300 | |
Text | 170 |
70 | |
100 |
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!
Solved! Go to Solution.
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)
Proud to be a Super User!
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.
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)
Proud to be a Super User!
Hi, @CarlsBerg999 , since all of your tables consist of idential columns, why not combine them in PQ with simply one step Table.Combine({"Facebook", "Twitter", "Linkedin"}); then you can easily slice and dice the data.
As to hierarchy of axis, you can refer to another thread,
https://community.powerbi.com/t5/Desktop/X-Axis-Label-Hierarchy/td-p/841928
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |