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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
spettinger
Frequent Visitor

Default value when no filter is selected

I have a table with a few different data points (shown below). I have a slicer to filter the dashboard by the trade, but when a trade is not selected, I need my card to show the data for trade "x" 

 

This is not the average or sum.

 

spettinger_0-1655298622381.png

 

I tried the below measure, and it shows 30.80216981 when no trade is selected (YAY), but when I select "Boilermaker" on the slicer, the card visual goes "Blank" when I need it to show 21.3209 

 

spettinger_0-1655298919838.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @spettinger ,

 

I create a sample and have a test by your code. I think your code should be correct, it works well in my sample.

My Sample:

RicoZhou_0-1655709045814.png

Code:

ROUND = 
IF (
    ISFILTERED ( Overview1[TRADE] ),
    SELECTEDVALUE ( Overview1[SPI $] ),
    CALCULATE ( SELECTEDVALUE ( Overview1[SPI $] ), Overview1[TRADE] = "X" )
)

Result is as below.

By default:

RicoZhou_1-1655709081278.png

Select "Boilermaker":

RicoZhou_2-1655709089633.png

Please check whether there are some other filters in your data model.

You can download my sample to compare mine with yours.

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @spettinger ,

 

I create a sample and have a test by your code. I think your code should be correct, it works well in my sample.

My Sample:

RicoZhou_0-1655709045814.png

Code:

ROUND = 
IF (
    ISFILTERED ( Overview1[TRADE] ),
    SELECTEDVALUE ( Overview1[SPI $] ),
    CALCULATE ( SELECTEDVALUE ( Overview1[SPI $] ), Overview1[TRADE] = "X" )
)

Result is as below.

By default:

RicoZhou_1-1655709081278.png

Select "Boilermaker":

RicoZhou_2-1655709089633.png

Please check whether there are some other filters in your data model.

You can download my sample to compare mine with yours.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors