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
DarSz
Frequent Visitor

Hierarchical slicer with AND logic - further analysis

Hello, I have following problem.

 

In my report I am using hierarchical slicer with AND logic - solution presented in this article:
https://medium.com/seismic-data-science/changing-or-to-and-logic-for-power-bi-slicers-1a6b20aee5f5

This is my data visualisation:

DarSz_0-1657277322698.png

I want to know how many have fruits in selected colours, and I can do this. But now I want to know what are the other values for these filtered clients and I can't put my finger on which method I should use. Can anybody can help me with these?

Here is link to the pbix with example:
https://we.tl/t-b0cGih4nf2

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @DarSz ,

 

Since the original table has been filtered by slicer, you will need to copy it as an independent table.

Then create a measure like below and use it as visual filter.

mark = 
var ids = CALCULATETABLE(VALUES(Client[ClientId]), 
FILTER('Client', [HierarchySlicer Check] = 1))
return
IF(SELECTEDVALUE('Table (2)'[ClientId]) in ids,1,0)

Result:

vjaywmsft_0-1657520719626.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @DarSz ,

 

Since the original table has been filtered by slicer, you will need to copy it as an independent table.

Then create a measure like below and use it as visual filter.

mark = 
var ids = CALCULATETABLE(VALUES(Client[ClientId]), 
FILTER('Client', [HierarchySlicer Check] = 1))
return
IF(SELECTEDVALUE('Table (2)'[ClientId]) in ids,1,0)

Result:

vjaywmsft_0-1657520719626.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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