Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello. Help, please!
I have a number of tables in Power BI desktop (loaded JSON files).
Each files contains the same columns, but with different values.
Please see in the picture above how I need them corellated.
Each parent and child is a JSON file, therefore a table, so I have 20 tables.
How could I link them to create a hierarchy as described?
Each table contains the following.
After I create a hierarchy, I would like to add a filter, so whenever the client selects a Parent, he can go deeper into children`s data/ sub-children if related.
Please, please, tell me there is an option as I`ve been searching a lot and cannot find an answer. 😞
Thank you in advance.
Solved! Go to Solution.
@Alexandra_B , Append then in single table and use path and path length in DAX
https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/
@Alexandra_B , Append then in single table and use path and path length in DAX
https://www.sqlbi.com/articles/clever-hierarchy-handling-in-dax/
@amitchandak, I`ve sorted it out with Merge and followed the steps from links (path and pathlength). Then I created a relationship between the hierarchy table and the unpivoted merged table and it works. Thank you for your help!
@amitchandak, thank you.
I have apended them in a single table, but how do I differentiate them?
I have tried to merge them, but I`m getting lost at "Join kind" and then it`s taking ages to load 😞
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |