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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Gopinath_iyer
Helper II
Helper II

Hierarchy and filter

Hello Friends,

 

i have a data set like below

 
AgentsPolicies soldEntity keyParent key
A131 
B222 
C531
D2043
E2052
F1062

 

The requirent is to create a matrix view in power bi with hierarchy and Agent filter as well. So if the user selects Agent 'A' in filter the view should be as below

AgentsPolicies sold
A38
    C25
          D20

 

and if the user select 'C' in Agent filter view should be

AgentsPolicies sold
C25
    D20

 

can this be done in power bi. Any suggestion would be of great help.

 

regards,

Gopi

2 REPLIES 2
MFelix
Super User
Super User

Hi @Gopinath_iyer ,

 

This is a common parent child pattern.

 

You need to follow the dax pattern show in this blog post by SQLBI guys.

 

If you need any assistance please get back to me.


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



 

Thanks,

 

i have implemented this and the hierarchy is coming fine, but when i use the Agent filter it is not working properly.

 

e.g, when i select 'C' in Agent filter

i am getting

AgentsPolicies sold
A25
    C25

 

but i want 

AgentsPolicies sold
C25
    D20

 

basically i want to see the selected agent and his downline with their respective policies sold counts, but i m getting the selected agent and the upper level with the policies sold count of selected agent for all the agents. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.