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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
y3wan
Frequent Visitor

Default Value on Card Visuals Display

Hello All,

 

I have a drop down for store location (City A, City B, City C, & All) with various card visuals that display store selected, store sales and etc....

My goal is to have a default value for my card display as "All" from the Store Location column (when nothing is selected).

 

Store Location
City A
City B
City C
All

 

I have attmepted creating a measure of ISFILTERED, but wasn't succesfully.

Your help would be much apprecaited.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @y3wan ,

I adjust the measure, please try.

Measure =
VAR _a =
    HASONEVALUE ( 'Table'[Store Location] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Store Location] )
VAR _c =
    CALCULATE ( MAX ( 'Table'[Store Location] ), 'Table'[Store Location] = "All" )
RETURN
    IF ( _a, _b, _c )

For this question :"Is there a way that when nothing is selected manually, the option All will be selected instead?", we could only let the slicer option become single by set the "Single select " turn on, could not choose what option to select

vbinbinyumsft_0-1663573381713.png

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @y3wan ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1662950712083.png

2. create a measure and add it to card visual, then add a slicer with "Store Location" column

Measure =
VAR _a =
    HASONEVALUE ( 'Table'[Store Location] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Store Location] )
RETURN
    IF ( _a, _b, "All" )

Animation11.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi cst

 

Thanks for the reply.

 

Is there a way that when nothing is selected manually, the option All will be selected instead?

I think the measure provided was to display the text All

Anonymous
Not applicable

Hi @y3wan ,

I adjust the measure, please try.

Measure =
VAR _a =
    HASONEVALUE ( 'Table'[Store Location] )
VAR _b =
    SELECTEDVALUE ( 'Table'[Store Location] )
VAR _c =
    CALCULATE ( MAX ( 'Table'[Store Location] ), 'Table'[Store Location] = "All" )
RETURN
    IF ( _a, _b, _c )

For this question :"Is there a way that when nothing is selected manually, the option All will be selected instead?", we could only let the slicer option become single by set the "Single select " turn on, could not choose what option to select

vbinbinyumsft_0-1663573381713.png

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors