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

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

Reply
A_Vijgo
New Member

Flatten Parent Child hierarchy with multiple months of data

Hi 

 

I have a monthly appended data for all employees and their reporting line managers changing every month. what i want to capture is the flattened out parent child hierarchy for every particular month. How can i tweak Path function or is there any other approach.

Below is the sample table and in LM1, 2 and 3, i want the hierarchy for the particular month

 

EIDNameLine Manager IDMonthLM 1LM 2LM 3
1036John2673Oct-23   
1178Claire2876Oct-23   
1789Charles2897Oct-23   
1436Sid2567Oct-23   
1098Jackie2345Oct-23   
1236Syed2765Oct-23   
1897Nolan2987Oct-23   
1036John2567Nov-23   
1178Claire2345Nov-23   
1789Charles2765Nov-23   
1436Sid2987Nov-23   
1098Jackie2673Nov-23   
1236Syed2876Nov-23   
1897Nolan2897Nov-23   
1 REPLY 1
Anonymous
Not applicable

Hi, @A_Vijgo 

 

According to your description, what you are trying to capture is a flattened parent-child hierarchy for each specific month, you can refer to the link below to try to see if it solves your problem; based on the information you have given so far, it doesn't solve your problem, you can provide information about the related problem without sensitive data, including but not limited to the measure, the datasheet, the expected output results and the implementation logic of the expected output results.

 

Related Link: Parent-child hierarchies – DAX Patterns

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors