Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I have the following filters on the dashboard:
I have used a funnel visual below
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.
Solved! Go to 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 ()
)
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 )
)
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 ()
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |