Forum Discussion

icdns's avatar
icdns
Post Patron
5 years ago
Solved

SWITCH STATEMENT

Hello,   Could someone help me in deriving result A to result B? Wherein I wanted to fall General Office in Small Business (see result B)  I have 2 columns and I have used a SWITCH STATEMENT but i...
  • manikumar34's avatar
    manikumar34
    5 years ago

    icdns , 

     

    Create another calculated column for that. Liek below. 

     

    SEG_MAJ_GRP1 = IF(AND('Table (2)'[SEG_MAJ_GRP] = "HOME",'Table (2)'[SEG_DESC]="GENERAL OFFICE"),SWITCH('Table (2)'[SEG_MAJ_GRP], "HOME","SMALL BUSINESS"),'Table (2)'[SEG_MAJ_GRP])
     
    If you think this is helpful Please Accept as Solution and Leave a like.
     
    Regards, 
    Manikumar