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

Show blank when nothing is selected in the slicer

Hello,

 

 

Capture.PNG

From the picture above, you can see that I have used 4 slicers to calculate different things i.e.e hours, billing amount and total amount.

 

If I do not select anything, it shows this value (refer to the picture above). These values are accumulated and mean absolutely nothing, they only mislead the user. Please if someone can tell me what to do? Is there any way/option I can use where my table shows blank or nothing if nothing is selected from the slicer? Thanks.

 

P.S New to Power BI, not that good with DAX.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Show blank when nothing is selected in the slicer

HI @Khan17 ,

You can remove second condition to let it check the filter status of source tables and return tag:

Calendar Filtered = 
IF (
    COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' ))
    "Y",
    "N"
)

If you want check multiple tables at same time, you can append the condition formula with 'and' logic.

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
3 REPLIES 3
Community Support Team
Community Support Team

Re: Show blank when nothing is selected in the slicer

Hi @Khan17 ,

You can add measures with if statement to check current row contents of filter and return tag, then drag these measures to visual level filter to filter unmatched records.

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

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |
Highlighted
Khan17 Frequent Visitor
Frequent Visitor

Re: Show blank when nothing is selected in the slicer

This works but it is not what I am looking for. I just want my table to be blank when nothing is selected, that is all. The link you pasted was dependant on making multiple selections, something I am not looking to do here. Each selection in my slicer is unique and imperative so yeah. I need to make it blank when no value is selected in all 4 slicers (When the program is started, when I clear all selections)

Community Support Team
Community Support Team

Re: Show blank when nothing is selected in the slicer

HI @Khan17 ,

You can remove second condition to let it check the filter status of source tables and return tag:

Calendar Filtered = 
IF (
    COUNTROWS(ALLSELECTED ( 'CALENDAR' )) <> COUNTROWS(ALL ( 'CALENDAR' ))
    "Y",
    "N"
)

If you want check multiple tables at same time, you can append the condition formula with 'and' logic.

Regards,

Xiaoxin Sheng

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



For learning resources/Release notes, please visit: | |