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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
anmsharma
Helper II
Helper II

Parent-Child hiearchy handling with Power BI for Departments

Hi Team,

 

I am exploring the Power BI for the development of reports but I am struck at a very minute point i.e. Implementation of the Parent-Child Hierarchy.

 

I have the departments with me such as F1 which is the parent and child departments such as F1.1,F1.2,F1.3 and F1.4. Now the requirement is that if I select the "F1" in the data slicer for F1 then my data should also include the results for F1, F1.1,F1.2,F1.3 and F1.4.

 

So, in reports the "F1" selection should combine the enitre data for child also.

 

Could you please assist me in achieving it.

 

Thanks in advance,

 

Anmol

 

Sample Data for the Parent-Child DeptSample Data for the Parent-Child Dept

 

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @anmsharma,

 

I add a similar problem in my reports the solution I made was a new column with the grouping I needed, so taking into account your information I would extract the first 2 carachters from each of your lines and make it a "parent".

 

Would be something like this:

ParentChildDescription
F1F1General Managment
F1F1.1General Managment
F1F1.2Managment Comité
F1F1.3General Managment Administration
F1F1.4Others

 

This way you could use the Parent in your visuals / Formulas.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

HI @anmsharma,

 

Ad a column with a lookupvalue:

 

Parent_Name = LOOKUPVALUE(Table1[Description],Table1[Child],Table1[Parent])

Result should be this:

PArent.png

 

Regards,

MFelix

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @anmsharma,

 

I add a similar problem in my reports the solution I made was a new column with the grouping I needed, so taking into account your information I would extract the first 2 carachters from each of your lines and make it a "parent".

 

Would be something like this:

ParentChildDescription
F1F1General Managment
F1F1.1General Managment
F1F1.2Managment Comité
F1F1.3General Managment Administration
F1F1.4Others

 

This way you could use the Parent in your visuals / Formulas.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Hi @MFelix,

 

Many Thanks for your help, it worked just perfectly for me.

 

Another minute stuff which I have is that, in the Description I am supposed to display only the "Description of Parent".

 

for e.g. F1.2 should display the Description of Parent F1 only.

 

Thanks again,

 

Anmol

HI @anmsharma,

 

Ad a column with a lookupvalue:

 

Parent_Name = LOOKUPVALUE(Table1[Description],Table1[Child],Table1[Parent])

Result should be this:

PArent.png

 

Regards,

MFelix

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Many Many Thanks to you @MFelix

 

I am just a beginner here and doing lots of things with Power BI to get it with the Management.

 

I sincerely appreciate your help for that.

 

Thanks Again,

 

Anmol

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.