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
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
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.