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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AlanP514
Post Patron
Post Patron

Dynamic static value

Hai guys need your help 

 

 I have challenge in dax could you please help  regarding this. Scenario is
If nothing selected from slicer or filter visual the card or the chart should give a static value 195 ,If user select any particular year or any filter they want to see the actual target value (actual data) for that particular area . ie if nothing selected static value. if they select slicer they want to see actual value in kpi card .could you please help me with this

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi, you can try a measure like this

Measure = if (calculate(not IScrossFILTERED(factSales)),195,sum(factSales[ReturnAmount]))
It functions with direct and undirect filtering

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

View solution in original post

2 REPLIES 2
serpiva64
Solution Sage
Solution Sage

Hi, you can try a measure like this

Measure = if (calculate(not IScrossFILTERED(factSales)),195,sum(factSales[ReturnAmount]))
It functions with direct and undirect filtering

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

Thank you for your solution its working

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