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.
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
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 |
---|---|
43 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |