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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-yaningy-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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