Intellisense underlines with red ALLSELECTED with multiple columns in a variable, even though the code is valid: Note that it's not an issue with no variables:
v-robertq-msft
Community Support
4 years agoHi,
As far as I’m concerned, the table remove filters function like ALL() or ALLSELECTED() is always used with the query function like Calculate(), so that we usually suggest you to write the DAX formula like the method2.
For more info:
https://docs.microsoft.com/en-us/dax/allselected-function-dax
Best Regards,
Community Support Team _Robert Qin