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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
erickulcyk
Employee
Employee

How can I create a treemap using a directory structure?

Hello, I have a series of file paths (like d:\a\b\c), and I would like to create a treemap where the size of the box is proportional to the number of items that are in the directory.  Would anyone know how to do this?  My first thought would be to split the path by \ and then put each of the split strings in new columns, and use those columns for the treemap.  However, I can't figure out how to split the string and put it in a new column.  Is there a good way to do this?

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @erickulcyk ,

If it is convenient in your environment, I would storing the data as txt file then import the data to PowerBI with the delimiter "\"

PBIDesktop_q9i6AjHHqG.png

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @erickulcyk ,

If it is convenient in your environment, I would storing the data as txt file then import the data to PowerBI with the delimiter "\"

PBIDesktop_q9i6AjHHqG.png

Best Regards,

Teige

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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