Forum Discussion
azizrasul
2 years agoRegular Visitor
Error in Formula
I am trying to obtain a measure using the following: - Sales Measure = SUMX(FILTER(InvoiceData, NOT(InvoiceData[CustomerID] IN (1001, 1002))), InvoiceData[Sales]*InvoiceData[Quantity]) ...
- 2 years ago
The error comes from this part:
IN (1001, 1002)https://www.sqlbi.com/articles/using-tuple-syntax-in-dax-expressions/
read the above, or TLDR, just change it to:
IN {1001, 1002}
Ahmedx
2 years agoSuper User
pls try htis
Sales Measure =
SUMX (
FILTER ( InvoiceData, NOT ( InvoiceData[CustomerID] IN { 1001, 1002 } ) ),
InvoiceData[Sales] * InvoiceData[Quantity]
)