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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
WiggityZwiggity
New Member

Using a Static Value in a Measure Breaks Visual Filters

I have a table visual filtered by slicers and report filters.  I've created a series of measures that evaluate each row within that data table by referencing a value within that table.  When I try to apply a static value to a new measure the table filters are ignored and all values appear.

 

As an example, I have a data table with accounts filtered by a slicer indicating a sales territory.  An example of a measure would be a count of orders for those customers from a related table.  When I try to apply any static value or logic the filters on the table break.  As an example if I create a measure that says IF([OrderCount]>1,"Active,"Inactive") then all values from the customer table now appear in the visual.

 

What am I doing wrong here? 

1 ACCEPTED SOLUTION

Thanks @parry2k that worked.  Although I'm not sure I understand why.  I have the same issue when applying even simple calculations i.e. if I wanted to just subtract a value from [OrderCount] the same thing occurs.  So would I have to add an IF statement like that to evaluate if it is not blank?  I think that's where I get tripped up.  

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@WiggityZwiggity Glad, it worked. Although it doesn't matter I think by mistake your accepted your reply as a solution.

 

Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@WiggityZwiggity because you are now returning the value in this new measure, try it like this

 

IF([OrderCount]>1,"Active,IF (NOT (ISBLANK([OrderCount]),"Inactive")) 


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks @parry2k that worked.  Although I'm not sure I understand why.  I have the same issue when applying even simple calculations i.e. if I wanted to just subtract a value from [OrderCount] the same thing occurs.  So would I have to add an IF statement like that to evaluate if it is not blank?  I think that's where I get tripped up.  

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.