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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Anonymous
Not applicable

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

HI @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

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)

HI @Anonymous ,

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
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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