Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi everyone,
I have a measure which creates following error: Calculation error in measure "": A function 'FILTER' has been used in a True/False expression that is used as a table filter expression.
The measure:
CALCULATE (
DISTINCTCOUNT ( Sales[CustomerID] ),
OR (
FILTER ( Countries, Countries[CountryID] = "VS" ),
FILTER (
'Product',
( 'Product'[System] = "AJ98"
|| 'Product'[System] = "AJ1032" )
&& 'Product'[ProductCode] <> "1W"
&& 'Product'[ProductCode] <> "2W"
&& 'Product'[ProductCode] <> "1E"
&& 'Product'[ProductCode] <> "1C"
&& 'Product'[ProductCode] <> "5B"
&& 'Product'[ProductCode] <> "9F"
&& 'Product'[ProductCode] <> "2G"
)
)
)
So I want the measure be filtered or with the CountryID = "VS" or the other part.
When I use the filters separate, it works.
Luuk
User | Count |
---|---|
54 | |
22 | |
19 | |
16 | |
11 |
User | Count |
---|---|
81 | |
55 | |
39 | |
20 | |
12 |