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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
fsim
Responsive Resident
Responsive Resident

Filtering a Business Unit table with a Slicer that applies on the Hierarchy Path

Hello !

Here is my issue.

I'm working with Business Units from CRM365. BU are in a Hierarchy. I want to create a slicer on the BU that will filter the Bu table not only on the selectedBU but also to all the BU "under" the selected one.

I tried many solutions (pathcontains, containstring etc...). None works. My last successfull attemps is using a measure.

(based on this https://community.powerbi.com/t5/Desktop/Dynamic-filtering-slicing-if-text-contains/m-p/425504/highl...)
Unfortunately I cannot Filter a page using a measure. It needs to be a column.

So I modified it ,  but the Selected BU value is always empty... I'm a little bit stuck here.
In order to get this done. I duplicated my BU table. (one is BU DL and the other one is BU)
Search BU is the result of the measure. Filter Search Bu is the above column.
any idea would be much appreciated.

I also tried the column 

Filter Search BU =     PATHCONTAINS( 'Business Unit (DL)'[Bu Path], [Selected BU]) --> always returns False
and
Filter Search BU =     CONTAINSSTRING( 'Business Unit (DL)'[Bu Path], [Selected BU]) --> always returns True


bu slicer.png

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors