Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The left hand side of a set expression criterion must be a field name, not an expression, so this does not work:
=sum({$<[A]={"A2"}, mid([B],5)={"B2"}>}[Total_sales])
You can probably use this to achieve what I think you were trying:
=sum({$<A = {"A2"}, B = {"*B2*"}>} Total_sales)
It is the mid([B],5)={"B2"} that is your problem. You can only modify fields not expressions. You can look at set modifiers as invisible selections in your data model.
The left hand side of a set expression criterion must be a field name, not an expression, so this does not work:
=sum({$<[A]={"A2"}, mid([B],5)={"B2"}>}[Total_sales])
You can probably use this to achieve what I think you were trying:
=sum({$<A = {"A2"}, B = {"*B2*"}>} Total_sales)