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

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.

Reply
Anonymous
Not applicable

Calculation error in measure "": A function 'FILTER' has been used in a True/False expression

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

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors