Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
HaSte
Frequent Visitor

Automate a hierarchy with increasing levels

Hello,

I have some issues with automating a tree hierarchy. I don’t know the final level of the hierarchy, so I need it fully automated. Given a set of data:

Data_Example_Hierarchy.PNG

 

I found a lot of solutions where I can manually get the hierarchy in a column schema and use it with a DAX expression to prepare and use the date like this:

Column_Prep_And_Drilldown.PNG

But I have now 2 open struggles: First of all I have currently 23 levels(!) and they will continue to grow. So this should be fully automated without the need of knowing the amount of levels before. And I need to display measures for every ID. Which leads me to my main questions:

 

  1. Preparing the hierarchy to a drilldown capable format. I get the data from a SQL CTE, should I get it from there in a column schema? Or is there a viable solution in PowerBI to get It done automatically?
  2. If a new level rises, and I managed to get the preparation automated, I need to integrate the new column (level) automatically in the drilldown hierarchy for a matrix. How can I manage this?

Thank you in advance!

1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.