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
mighty
Frequent Visitor

How can I use a dax measures to ignored the current filter but only filter based on the dax measure

I have the following filters on the dashboard:

mighty_0-1691660347627.png

 

I have used a funnel visual below

mighty_1-1691660428182.png

 

I am struggling and trying to calculate the number of  learners who are enrolled for 2024, the column name is "Year_Enrolled" but when I use the following dax measure:

Enroled = CALCULATE (
                       DISTINCTCOUNT ( Learner[id] ), Learner[Date_Approved_Scholar_Application] <> BLANK () )

                               + CALCULATE (

                      DISTINCTCOUNT ( Learner[id] ), Learner[Date_Approved_Sibling_Application] <> BLANK () )

)

 

it does not allow ingore the commencement_year filter shown above, so it filtered based on the commencement_year and I want it to ignore that. Therefore I tried using the following dax measure:

Enroled =
CALCULATE (
DISTINCTCOUNT ( Learner[id] ),
Learner[Date_Approved_Scholar_Application] <> BLANK (),
FILTER ( Learner, Learner[Year_Enrolled] = 2024 )
)
+ CALCULATE (
DISTINCTCOUNT ( Learner[id] ),
Learner[Date_Approved_Sibling_Application] <> BLANK (),
FILTER ( Learner, Learner[Year_Enrolled] = 2024 )
)

 

But still it does not ignore the commencement_year filter, I only want the Enroled to be filtered based on the Year_Enrolled without additing Year_Enrolled filter on the dashboard. But the rest of the counts such as "Fees Paid" and "Contract Signed" to be filtered based on commecement_year filter.

1 ACCEPTED SOLUTION

@mighty  If you don't want Year_Enrolled = 2024, you can remove filter condition from the measure.

 

Below measure will ignore the filter applied on Table[commencement_year]

Enroled =
CALCULATE (
    DISTINCTCOUNT ( Learner[id] ),
    REMOVEFILTERS ( Table[commencement_year] ),
    Learner[Date_Approved_Scholar_Application] <> BLANK ()
)
    + CALCULATE (
        DISTINCTCOUNT ( Learner[id] ),
        REMOVEFILTERS ( Table[commencement_year] ),
        Learner[Date_Approved_Sibling_Application] <> BLANK ()
    )

 

OR

Enroled =
CALCULATE (
    DISTINCTCOUNT ( Learner[id] ),
    ALL ( Table[commencement_year] ),
    Learner[Date_Approved_Scholar_Application] <> BLANK ()
)
    + CALCULATE (
        DISTINCTCOUNT ( Learner[id] ),
        ALL ( Table[commencement_year] ),
        Learner[Date_Approved_Sibling_Application] <> BLANK ()
    )

 


Regards,
Nandu Krishna

View solution in original post

3 REPLIES 3
nandukrishnavs
Super User
Super User

@mighty 

 

Try this 

Enroled =
CALCULATE (
    DISTINCTCOUNT ( Learner[id] ),
    Learner[Date_Approved_Scholar_Application] <> BLANK (),
    REMOVEFILTERS ( Table[commencement_year] ),
    FILTER ( Learner, Learner[Year_Enrolled] = 2024 )
)
    + CALCULATE (
        DISTINCTCOUNT ( Learner[id] ),
        Learner[Date_Approved_Sibling_Application] <> BLANK (),
        REMOVEFILTERS ( Table[commencement_year] ),
        FILTER ( Learner, Learner[Year_Enrolled] = 2024 )
    )

Regards,
Nandu Krishna

Still it is filtering the commencement_year 😥

@mighty  If you don't want Year_Enrolled = 2024, you can remove filter condition from the measure.

 

Below measure will ignore the filter applied on Table[commencement_year]

Enroled =
CALCULATE (
    DISTINCTCOUNT ( Learner[id] ),
    REMOVEFILTERS ( Table[commencement_year] ),
    Learner[Date_Approved_Scholar_Application] <> BLANK ()
)
    + CALCULATE (
        DISTINCTCOUNT ( Learner[id] ),
        REMOVEFILTERS ( Table[commencement_year] ),
        Learner[Date_Approved_Sibling_Application] <> BLANK ()
    )

 

OR

Enroled =
CALCULATE (
    DISTINCTCOUNT ( Learner[id] ),
    ALL ( Table[commencement_year] ),
    Learner[Date_Approved_Scholar_Application] <> BLANK ()
)
    + CALCULATE (
        DISTINCTCOUNT ( Learner[id] ),
        ALL ( Table[commencement_year] ),
        Learner[Date_Approved_Sibling_Application] <> BLANK ()
    )

 


Regards,
Nandu Krishna

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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