Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
116 | |
72 | |
64 | |
46 |