Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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])
I get the error "Operator or expression '()' is not supported in this context.".
Solved! Go to Solution.
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}
read this it will be useful too
https://www.sqlbi.com/articles/using-tuple-syntax-in-dax-expressions/
pls try htis
Sales Measure =
SUMX (
FILTER ( InvoiceData, NOT ( InvoiceData[CustomerID] IN { 1001, 1002 } ) ),
InvoiceData[Sales] * InvoiceData[Quantity]
)
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}
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |