cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Using Measure as a Visual Level Filter

I understand that we cannot use measure value as a visual level filter.

However, I'd like to filter visualization depending on measure value.

Would you know how to implement the function below?

 

cat_1cat_2value
AA2
AA1
AB3
BB4
BC5

 

[function]

・setting "cat_1" & "cat_2" as slicers

・making some visualization of measure of "value"

・if a number of rows with slicer's settings is less than 2, a visualization is hidden.

e.g.)

When we chose "A" in cat_1 and "all" in cat_2, a visualization is not hidden. (a number of rows is 3.)

When we chose "A" in cat_1 and "A" in cat_2, a visualization is not hidden. (a number of rows is 2.)

When we chose "A" in cat_1 and "B" in cat_2, a visualization is hidden. (a number of rows is 1.)

 

*** In my first idea, I set measure counting numbers of rows and set it as visual level filter.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @joade2co ,

 

Create a measure and add it to visual filter as below.

Measure = COUNTROWS(ALLSELECTED('Table'))

 2.PNG3.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

2 REPLIES 2
Highlighted
Super User IV
Super User IV

@joade2co , You will not be able to hide visual. You create a measure and return null.

 

example

Switch( true(),

Max([cat_1]) = "All"  &&  isfiltered([cat_2]) =False() , blank(),

[Measure]

)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Community Support
Community Support

Hi @joade2co ,

 

Create a measure and add it to visual filter as below.

Measure = COUNTROWS(ALLSELECTED('Table'))

 2.PNG3.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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors