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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
CMajka8
Helper I
Helper I

DAX Measure not recognizing applied filter

Hello - 

 

I have created some DAX measures and placed them in a table visual. However, when I apply a filter from my slicer, the measure shows values where there should be none, therefore the table is not correctly filtering based on the selection made in the slicer. In the image below, there should only be 'Male' appearing in the table. It's almost as if the Selected Year measure does not recognize the slicer. Any suggestions? Thanks!

 

CMajka8_0-1623945592368.png

 

2 REPLIES 2
selimovd
Super User
Super User

Hey @CMajka8 ,

 

can you show the formula behind the measures and the data model?

Best is to share the file is possible. Otherwise it will be difficult to help you as we don't see any details.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hi Denis - unfortunately it's not possible to share the file due to sensitive data. However, the 3 measures involved are as follows:

a. Selected year = [Current Year]+[Year Selection]
b. Current Year =
VAR CurrentYear = YEAR( TODAY())
RETURN
CurrentYear
c. Year Selection = IF( HASONEVALUE( 'Year Scenario'[Year Scenario] ), VALUES( 'Year Scenario'[Year Scenario] ), 0)

Thanks!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.