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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
chris-d
Frequent Visitor

Calculate only when slicers are applied

I've got a data table with a number of different products and metrics listed, and a card with calculations based on the data table. When no slicers are applied the calculations on the card are astronomical, but the data shouldn't be used as the metrics should never be looked at for the whole table. Is there a way for the card to calculate only when slicers are applied?

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @chris-d ,

 

You can add if condition like below:-

Measure = if(isfiltered(table[slicer_column]),{your calculation})

or

Measure = if(selectedvalue(table[slicer_column])<> blank(),{your calculation})

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @chris-d ,

 

You can add if condition like below:-

Measure = if(isfiltered(table[slicer_column]),{your calculation})

or

Measure = if(selectedvalue(table[slicer_column])<> blank(),{your calculation})

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

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.