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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ahumke
Helper I
Helper I

Card that defaults to a value until a slicer selection is made

I've got a bar chart showing total credits from 2014-2023 across the X axis.  I want to have a card defaults to the total credits from 2018 unless the user clicks on the chart to specify a different year in the trend. Is that possible?

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @ahumke

You could use ISFILTERED to create a measure like this

Measure = IF(ISFILTERED('Table'[Year]),CALCULATE(SUM('Table'[Qty])),CALCULATE(SUM('Table'[Qty]),'Table'[Year]=2018))

Then drag this measure into card visual

Result:

If don't select any value, only show 2018 valueIf don't select any value, only show 2018 valueafter select one value from slicerafter select one value from slicerafter select one  or more values from slicerafter select one or more values from slicer

 

Best Regards,

Lin

Community Support Team _ Lin
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
v-lili6-msft
Community Support
Community Support

hi, @ahumke

You could use ISFILTERED to create a measure like this

Measure = IF(ISFILTERED('Table'[Year]),CALCULATE(SUM('Table'[Qty])),CALCULATE(SUM('Table'[Qty]),'Table'[Year]=2018))

Then drag this measure into card visual

Result:

If don't select any value, only show 2018 valueIf don't select any value, only show 2018 valueafter select one value from slicerafter select one value from slicerafter select one  or more values from slicerafter select one or more values from slicer

 

Best Regards,

Lin

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

Awesome!  Thanks that totally works!

Anonymous
Not applicable

It's possible using DAX, you need to create the measure using the function ISFILTERED, this function returns True or False, with this yo can use an IF to decide what calculation the measure will show.

 

I hope this help you.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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