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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Default value on Visual Card

Hi good day can anyone help me on my visual card default value, i have slicer Bridge with  A,B and C on the selection, if non selected on the slicer Bridge i want a default value from POB PLAN&ACTUAL, my card value are come from POB PLAN and POB ACTUAL. Each table has a current week column.

AllanBerces_0-1756033103209.png

Thank you

3 ACCEPTED SOLUTIONS
vojtechsima
Super User
Super User

Hey @AllanBerces ,

You can use nested SELECTEDVALUE, or some SWITCH, IFs:

BridgePick =
SELECTEDVALUE ( 'Bridge'[Bridge],
    SELECTEDVALUE ( 'POB_PLAN&ACTUAL'[Bridge],
        "Default"
    )
)

 

SELECTEDVALUE is great here, because if there's more than value for particular column, it's gonna return BLANK, therefore calling fallback value.

View solution in original post

MohamedFowzan1
Solution Specialist
Solution Specialist

Hi @AllanBerces 

 

I believe this could be done by checking if any value is selected in the slicer

 

We can have a measure for that such as:

IsBridgeSelected = 
IF(
    ISFILTERED(Bridge[BridgeColumn]), // Replace BridgeColumn by your actual bridge key/column
    1,
    0
)

 

Then accordingly we can create the measure to be used within the table

CardValue = 
IF(
    [IsBridgeSelected] = 1,
    CALCULATE(
        SUM(POB_PLAN[Value]),
        POB_PLAN[Week] = [CurrentWeek] 
    ),
    CALCULATE(
        SUM(POB_PLAN&ACTUAL[Value]),
        POB_PLAN&ACTUAL[Week] = [CurrentWeek] 
    )
)

 

Adjust the actual column names based on the desired measures, you could also have the selected value as a variable to check if the anything is selected within the slicer and then use the measure within the card visual. Please provide more context if this doesnt help.

View solution in original post

Shahid12523
Community Champion
Community Champion

Use a measure like this:

 

Card Value =
VAR Sel = SELECTEDVALUE(Bridge[Bridge])
RETURN
IF (
ISBLANK(Sel),
CALCULATE([Your Measure], ALL(Bridge), POB_PLANACTUAL),
[Your Measure]
)


If slicer has A/B/C → show that.
If slicer is blank → default to POB_PLANACTUAL.

Shahed Shaikh

View solution in original post

7 REPLIES 7
v-venuppu
Community Support
Community Support

Hi @AllanBerces ,

I hope the information provided is helpful.I wanted to check whether you were able to resolve the issue with the provided solutions.Please let us know if you need any further assistance.

Thank you.

v-venuppu
Community Support
Community Support

Hi @AllanBerces ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-venuppu
Community Support
Community Support

Hi @AllanBerces ,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @Shahid12523 @MohamedFowzan1 @vojtechsima @FBergamaschi  for the prompt response.

I wanted to check if you had the opportunity to review the information provided and resolve the issue..?Please let us know if you need any further assistance.We are happy to help.

Thank you.

Shahid12523
Community Champion
Community Champion

Use a measure like this:

 

Card Value =
VAR Sel = SELECTEDVALUE(Bridge[Bridge])
RETURN
IF (
ISBLANK(Sel),
CALCULATE([Your Measure], ALL(Bridge), POB_PLANACTUAL),
[Your Measure]
)


If slicer has A/B/C → show that.
If slicer is blank → default to POB_PLANACTUAL.

Shahed Shaikh
MohamedFowzan1
Solution Specialist
Solution Specialist

Hi @AllanBerces 

 

I believe this could be done by checking if any value is selected in the slicer

 

We can have a measure for that such as:

IsBridgeSelected = 
IF(
    ISFILTERED(Bridge[BridgeColumn]), // Replace BridgeColumn by your actual bridge key/column
    1,
    0
)

 

Then accordingly we can create the measure to be used within the table

CardValue = 
IF(
    [IsBridgeSelected] = 1,
    CALCULATE(
        SUM(POB_PLAN[Value]),
        POB_PLAN[Week] = [CurrentWeek] 
    ),
    CALCULATE(
        SUM(POB_PLAN&ACTUAL[Value]),
        POB_PLAN&ACTUAL[Week] = [CurrentWeek] 
    )
)

 

Adjust the actual column names based on the desired measures, you could also have the selected value as a variable to check if the anything is selected within the slicer and then use the measure within the card visual. Please provide more context if this doesnt help.

vojtechsima
Super User
Super User

Hey @AllanBerces ,

You can use nested SELECTEDVALUE, or some SWITCH, IFs:

BridgePick =
SELECTEDVALUE ( 'Bridge'[Bridge],
    SELECTEDVALUE ( 'POB_PLAN&ACTUAL'[Bridge],
        "Default"
    )
)

 

SELECTEDVALUE is great here, because if there's more than value for particular column, it's gonna return BLANK, therefore calling fallback value.

FBergamaschi
Solution Sage
Solution Sage

Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.

 

Need help uploading data? click here

 

Want faster answers? click here

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.