Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Solved! Go to Solution.
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.
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.
Write a calculated column formula in DAX not a Custom formula in M
Hi @Ashish_Mathur ,
Could you please help how to do dax for this.
Here my region is a table created in power bi
Already shared that.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!