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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
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.