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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
samdthompson
Memorable Member
Memorable Member

Dynamic Heirarchy

Hello, was wondering if anyone had made a dynamic heirarchy. 

 

I have a data set of livestock breeding. Each animal will have x number of progeny and so on over generations. I currently have 12 generations and this will continue to grow. The grandparent/parent/child relationship has been flattened successfully and I have a heirarchy that works as expected:

 

2021-09-09_16-20-16.jpg

 

My problem is when I get another generation, I want it to automatically add itself to the hierarchy rather than having to manually add it in.

 

Currently:

GenA/

   GenB/

      GenC/

         GenD/

            GenE/

               GenF/

                  GenG/

                     GenH/

                        GenI/

                           GenJ/

                              GenK/

                                 GenL

 

When I get new data I need the heirarchy to automatically become:

 

GenA/

   GenB/

      GenC/

         GenD/

            GenE/

               GenF/

                  GenG/

                     GenH/

                        GenI/

                           GenJ/

                              GenK/

                                 GenL/

                                    GenM

 

Cheers,

 

 

// if this is a solution please mark as such. Kudos always appreciated.
1 ACCEPTED SOLUTION
samdthompson
Memorable Member
Memorable Member

Irritatingly this cant be solved in powerBI

// if this is a solution please mark as such. Kudos always appreciated.

View solution in original post

7 REPLIES 7
samdthompson
Memorable Member
Memorable Member

Irritatingly this cant be solved in powerBI

// if this is a solution please mark as such. Kudos always appreciated.
v-xiaotang
Community Support
Community Support

Hi @samdthompson 

Have you solved this problem? If yes, would you mind to accept the answer helpful as the solution or kindly share your solution to improve Power BI.
Really appreciate!


Best Regards,
Community Support Team _Tang

v-xiaotang
Community Support
Community Support

Hi @samdthompson 

How about using matrix?

Supposing you have a table bellow, then put it into matrix,

vxiaotang_0-1631521187174.pngvxiaotang_1-1631521213430.png

after you add a row into the table, the heirarchy will change,

vxiaotang_2-1631522942071.pngvxiaotang_3-1631522967670.png

 

Best Regards,

Community Support Team _Tang

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

@v-xiaotang, the problem is I want to have the generations automatically added to the matrix as the number grow.

 

// if this is a solution please mark as such. Kudos always appreciated.

Hi @samdthompson 

thanks for your reply.

In fact, it cannot be automatically added to the matrix unless the data is added to the table of the data source. Powerbi desktop can be used to clean data, calculate data, but cannot create data to datasource.

In my previous example, if the hierarchy in your data source changes, the hierarchy in the matrix will also change accordingly. So I think modifying the data source is a better way.

 

 

Best Regards,

Community Support Team _Tang

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

amitchandak
Super User
Super User

@samdthompson If these are columns, I doubt you can made it dynamic

@amitchandak  And if I make then rows? Do I need to make some mad bridging table so people can look at everything from GenA downwards or from say GenG downwards?

// if this is a solution please mark as such. Kudos always appreciated.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.