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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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