cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Visualisations blank until something (multiple values) selected in a slicer

Hi,

 

I am trying to display blank visuals until user make a selection from the slicer. Using the below two metrics I can make the visuals blank and display the data with single selection but my challenge is to make it work with MULTIPLE SELECTIONS. My slicer column is being displayed in the Matrix visual as one of the fields, this might be the reason it's not working the way it's supposed to, with my first metric.

 

      Using Cross Filter: = IF(ISCROSSFILTERED(Table[Column_Name]),"Y",BLANK())

 

With the second metric I could only make it for a single selection:

     Using Distinct Count: = IF(CALCULATE(DISTINCTCOUNT(Table[Column_Name]),ALLSELECTED(Table[Column_Name]))=1,"Y","N")

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Visualisations blank until something (multiple values) selected in a slicer

HI @Anonymous,

 

You can follow below steps to achive your requiremetn:

 

1. Create a measure to mark tag based on selected records .

Using Cross Filter: = 
IF (
    COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' ))
        && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1,
    "Y",
    "N"
)

 2. Add above measure to visual level filter, then switch filter mode to 'is' to filter "Y" tag.

 

Result:

1.gif

 

 

Regards,

Xiaoxin Sheng

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

View solution in original post

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Visualisations blank until something (multiple values) selected in a slicer

HI @Anonymous,

 

You can follow below steps to achive your requiremetn:

 

1. Create a measure to mark tag based on selected records .

Using Cross Filter: = 
IF (
    COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' ))
        && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1,
    "Y",
    "N"
)

 2. Add above measure to visual level filter, then switch filter mode to 'is' to filter "Y" tag.

 

Result:

1.gif

 

 

Regards,

Xiaoxin Sheng

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

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Visualisations blank until something (multiple values) selected in a slicer

Awesome, It's working Pefectly. Thank you for the quick response and help @v-shex-msft

Highlighted
Helper I
Helper I

Re: Visualisations blank until something (multiple values) selected in a slicer

This doesn't work for me 😞

Cause I amgetting N for every row 

Highlighted
Frequent Visitor

Re: Visualisations blank until something (multiple values) selected in a slicer

Hi,

Does it work for scattered plot and Guage.

Because I can’t select the created measure value in visual level filter to Y or N. It doesn’t allow me to click
Highlighted
Regular Visitor

Re: Visualisations blank until something (multiple values) selected in a slicer

Hi,

 

Used this measure to filter :

sing Cross Filter: = 
IF (
    COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' ))
        && COUNTROWS ( ALLSELECTED ( 'CALENDAR' ) ) > 1,
    "Y",
    "N"
)

It works fine on Table and Pie viz. but cannot apply to cards, linear guage visualizations. Is there any ither measure that'll work for all visualizations?

Also, is it possible that measures cannot be filtered by another measure? 

 

Please help.

 

Regards,

Pooja 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors