Forum Discussion
Jonjon_99
Helper I
2 years agoPOWER BI DAX IF STATEMENT
hi, i would like to create new column/DAX formula that will return my Product to "Others".
this is the sample
if the product = Montana, Paseo, Velo and VTT it will be tag as Others
TIA!
johnyip
then it’s better for you to create a table with the names of the products in an Excel file and upload it to power bi
and then you can update the list at any time
----Measure = IF(MAX('yourtabl[product]) in VALUES('tablePro[Product]), "Others", MAX('yourtabl[product]))
4 Replies
- Ahmedx
Super User
pls try this
Measure = IF(MAX('yourtabl[product]) in {Montana, Paseo, Velo, VTT}, "Others", MAX('yourtabl[product])) ----- Column = IF('yourtabl[product] in {Montana, Paseo, Velo, VTT}, "Others", 'yourtabl[product])- Ahmedx
Super User
then it’s better for you to create a table with the names of the products in an Excel file and upload it to power bi
and then you can update the list at any time
----Measure = IF(MAX('yourtabl[product]) in VALUES('tablePro[Product]), "Others", MAX('yourtabl[product]))