Forum Discussion

JAVED's avatar
JAVED
Helper I
8 years ago
Solved

Filter Data

Hi! I am new to power bi, I am laging with a problem i have 2 columns one contains Different Products like p1,q2,r1,s6,t4,a4,b5,c8,d9 etc... and in another other column i have cost of that Products ...
  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    8 years ago

    Hi JAVED,

     

    You can create a calculated column below: 

     

    Column = IF('Table1'[Products]="p1"|| 'Table1'[Products]="p2"||'Table1'[Products]="a4"||'Table1'[Products]="q2"||'Table1'[Products]="s1"||'Table1'[Products]="c3",'Table1'[cost],0)

     

     

    Best Regards,
    Qiuyun Yu