I am trying to create a calculated column using DAX in powerbi with multiple conditions. I wrote the below query using Switch function but it only accepts two arguments. Is there any way I can change it using If else or other?
Group= SWITCH( TRUE(), AND(Table1[Product] = "Appliances"), "Home", AND(Table1[Table1] = "Utensils"), "Home",
AND(Table1[Product] = "Crane"), "Building",
AND(Table1[Product] = "Agriculture", Table 1[ProductType]="Tractor"), "Agricultural Products",
AND(Table1[Product] = "Car",Table1[ProductType]!="Bicycle"), "Large Transportation", "null" )