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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
brightonshock
Frequent Visitor

Function Placeholder

Hi all,

 

I'm currently trying to do a distinct count whilst using keepfilters - dax below. I am getting a message saying "A function placeholder has been used in a true/false expression that is used as a table filter expression. This is not allowed". The thing is i have pretty much copied this from another measure which is working. The cases_grouped 1 is another measure i am 'calling' into this one. Any advice?? Thanks in advance!

 

a) 1-10 cases = CALCULATE (

    DISTINCTCOUNT ( weeklytrackerview[allocated_worker]),

Keepfilters( weeklytrackerview[cases_grouped1] in {"a) 1-10 cases"}),

keepfilters( weeklytrackerview[report_type] in {"Open Cases"}

)

)

2 REPLIES 2
Anonymous
Not applicable

Hi @brightonshock ,

 

Has this question been solved? If you have solved it, you can post your solution here. If any of the responses were helpful to you, please consider marking them as solutions, which will help more users find similar problems faster. If the question is not solved, please feel free to let us know. Thanks in advance!

 

Best Regards,
Gao

Community Support Team

SpartaBI
Community Champion
Community Champion

@brightonshock you can't put a "naked" measure as 1 of the filter arguments of calculate.
You will need to wrap it with filter to look something like this:
KEEPFILTERS(
FILTER('some table/columns', [cases_grouped1] in {"a) 1-10 cases"})
)


CALCULATE FILTERS ARE TABLES.
Also a very important note: when you reference a measure in a formula never put the table name before it (only in columns), this is very confusing. good thing you said it's a measure after.



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.