Forum Discussion
Anonymous
3 years agoNot applicable
Expression.Error: The name 'SWITCH' wasn't recognized. Make sure it's spelled correctly.
Hello All, I am creating a custom column and I am not getting any syntax errors but when I click ok I am getting below error. Could any one please help how to fix this
- 3 years ago
Hi,
Switch is a DAX function not an M function? Write it as a calculated column formula
=if(and([Region="APAC",OR([AgentDepartment]="Hyd",[AgentDepartment]="Unknown")),"ASD Hyd",blank())
Hope this helps.
Ashish_Mathur
Super User
3 years agoWrite a calculated column formula in DAX not a Custom formula in M
Anonymous
3 years agoNot applicable
Hi Ashish_Mathur ,
Could you please help how to do dax for this.
Here my region is a table created in power bi
- Ashish_Mathur3 years ago
Super User
Already shared that.