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
Nuage
New Member

Power BI custom text view and grouping

Hello, I have a Power BI problem however I have no reasonable knowledge of the tool and was kind of forced to use it as my csv data file was too large for Excel so I'm hoping for some guidance from the community.

I have the data and a simple view already and now require an alternate view.

The CSV file has the following columns:
Timestamp | Path | Size

In my existing view I have been able to use the automatically created heirarchy for the date so as to group by year, and also added a column to convert size from bytes to GB as shown in the first screen shot.

pbi-1.jpg

 

For the new view I would like to have a drill down section which focuses and group the files based on the directory level as shown in the image from L1 down to L3 while ignoring the prefix G:\GDrive\ bounded in the Red box. The resulting view would then show 2 columns
Directory | Size (GB)
and these columns should then replicate as the user drills down.

pbi-2-edit.jpg

 

I'm sure it's not exactly difficult as I know exactly how I'd do this in Excel with a pivot table. I'm just clueless on how to convert this to a PowerBI query.

Thank you.

1 ACCEPTED SOLUTION
Nuage
New Member

Thanks for the tips. You've given me some things to learn about. Turns out I discovered an easier way (for me, at least) by using a transform and a split, then showing only the split columns that I needed.

Your input was appreciated all the same.

View solution in original post

4 REPLIES 4
Nuage
New Member

Thanks for the tips. You've given me some things to learn about. Turns out I discovered an easier way (for me, at least) by using a transform and a split, then showing only the split columns that I needed.

Your input was appreciated all the same.

watkinnc
Super User
Super User

If you already know how you do it in excel with a pivot table then you can Use power query to query the CSV and load it to the day tomorrow and then make a pivot table from the Data Model.  I doubt that you'll hit the size limit in PowerPivot.

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
wdx223_Daniel
Super User
Super User

NewStep=Table.SplitColumn(PreviousStepName,"Column3",each List.FirstN(List.Skip(Text.Split(_,"\"),2),3),{"L1","L2","L3"})

Thank you I'll give this a shot. In reference to the last array, is it safe to presume I can replace the L1,L2 etc with wildcards?

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors