Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
What are you trying to achieve?
You have used the FILTER function twice. The filter argument in the filter function should be a true / false expression - you've used a calculate modifier ALLEXCEPT which can only be used in the calculate function.
Here's your expression formatted using DAXformatter.com to make it more clear:
Try either:
Q3 TEST3 =
CALCULATE (
COUNTROWS ( 'Q3' ),
FILTER ( Q3, Q3[Facility Name] = SELECTEDVALUE ( Demographics[Facility Name] ) ),
ALLEXCEPT ( Q3, Q3[Gender] )
)
Or try:
Q3 TEST3 =
CALCULATE (
COUNTROWS ( 'Q3' ),
FILTER (
ALLEXCEPT ( Q3, Q3[Gender] ),
Q3[Facility Name] = SELECTEDVALUE ( Demographics[Facility Name] )
)
)
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |