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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TBerger
New Member

Using PATH function on large tables

I want to load a large parent-child hierarchy table and parse it using the PATH function in calculated columns.

The table contains about 2.5M rows that belongs to about 115,000 hierarchies.

I started on PBI Desktop with few samples and it works fine.

After I publish the report to a PBIRS and check it I changed the SQL server view to allow loading the full table.

I scheduled a refresh and after 2 hours I received a time out error.

 

I presume that the when I use the full table the PATH is looking on all the rows to find the parent and it took long time.

I can distinguish the rows that belong to a hierarchy because there is a tree ID column for each row.
Can I iterate through the tree ID and let PATH working just on the relevant rows each time?
Another solution will be to parse the hierarchy just when a user choose one.

I didn't find the way to do ither of this.

Maybe there is another way to solve it?

Thank you.

 

 

1 REPLY 1
MFelix
Super User
Super User

Hi @TBerger ,

 

Try to do it on power query:

 

https://www.excelnaccess.com/replicating-path-function-of-dax-in-power-query-m/


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



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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