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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
CarlBlunck
Resolver I
Resolver I

Calculate with not equal to filter issue

Hi team,

 

I have this measure:

 

PerformanceReview_Total = CALCULATE(
    DISTINCTCOUNT(fact_PerformanceReview[Person Person No.]),
    fact_PlacementData[PersonStatus] = "Existing",
    fact_PlacementData[BaseClass] <> "UNPAID"
)
 
Which is working as expecting.  However, when I use a filter on this page that lets me select a value from the fact_PlacementData[BaseClass] column, the value of the measure is not changing.
 
When I update the measure to be:
 
PerformanceReview_Total = CALCULATE(
    DISTINCTCOUNT(fact_PerformanceReview[Person Person No.]),
    fact_PlacementData[PersonStatus] = "Existing"
)
 
The value of the measure does change when select a value from the fact_PlacementData[BaseClass] column when using a filter on this page.
 
Here is the issue - I swear, last week, the value was updating when I had the fact_PlacementData[BaseClass] <> "UNPAID" filter in the measure.  But now it's not and I can't understand why.
 
Any thoughts or ideas?
 
Thanks
Carl
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@CarlBlunck I just answered the similar question, update your measure to this:

 

PerformanceReview_Total = CALCULATE(
    DISTINCTCOUNT(fact_PerformanceReview[Person Person No.]),
    KEEPFILTERS ( fact_PlacementData[PersonStatus] = "Existing" ),
    KEEPFILTERS ( fact_PlacementData[BaseClass] <> "UNPAID" )
)

 

To learn more about keepfilters, check this video on my YT channel:

 



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.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@CarlBlunck Not at all, this is how DAX works.



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.

Interesting @parry2k - last week I swear it was behaving differently.  But could also be dreaming...  Thanks for helping me with this.

parry2k
Super User
Super User

@CarlBlunck I just answered the similar question, update your measure to this:

 

PerformanceReview_Total = CALCULATE(
    DISTINCTCOUNT(fact_PerformanceReview[Person Person No.]),
    KEEPFILTERS ( fact_PlacementData[PersonStatus] = "Existing" ),
    KEEPFILTERS ( fact_PlacementData[BaseClass] <> "UNPAID" )
)

 

To learn more about keepfilters, check this video on my YT channel:

 



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 !  Did something change lately to require the keepfilters() function to be included?  

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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