how to get count of subfolders and files on Silcer selection Power bi

m_vishal_c

Board Regular
Joined
Dec 7, 2016
Messages
209
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
HI before i start, i have also post same concept question on here but for Excel.
I am looking the solution for power bi.

i do have all folders and files complete path in column ( i fetch data from excel:- data source).
from that i have created slicer and i need count of all subfolders and files (on PowerBi-Cart) on selected value in slicer. like

if i select
(1) "General" from slicer, it should gives me count like 17 (as per below image),
(2) If i select General/ABC then it counts 9 (including subfolders)
(3) if i select General/ABC/ABC1 then the count will be 7

can anyone help me. thanks in advance...

if this is duplicate with my previous ( as i mentioned in beginning) please let me know so i can delete one of them. thanks

Path
General
General/ABC
General/ABC/ABC1
General/ABC/ABC1/ABC1 - Report1/1212.xls
General/ABC/ABC1/ABC1 - Report2
General/ABC/ABC1/ABC2
General/ABC/ABC1/ABC2/Fun 2022
General/ABC/ABC1/ABC2/ABC3
General/ABC/ABC1/ABC2/ABC3/ABC4
General/ABC/ABCDE
General/XYZ
General/XYZ/MARSH
General/XYZ/MARSH/EARTH
General/XYZ/LAND
General/XYZ/LAND/HOUSE
General/XYZ/LANDSCAPE
General/XYZ/LANDSCAPE/BIKE
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top