Forum Discussion

aleonor's avatar
aleonor
New Member
6 years ago

Create a new column with filtered data from another column

Hi,

 

I wand to creat a new column that bring the data filtered from other column in the same table.

 

Look at the image, the idea is to have another column with amount value that type is 22, for example.

 

 

Thanks,

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi aleonor ,

     

    If you want to do it in DAX.

     

    New Column = IF ('Table'[Type] = 22, 'Table'[Amount],Blank())

     

     

    If in Power Query

     

    if  [Type] = 22   then [Amount] else null

     

     

     

    Regards,
    Harsh Nathani

    Appreciate with a Kudos!! (Click the Thumbs Up Button)
    Did I answer your question? Mark my post as a solution!

    • aleonor's avatar
      aleonor
      New Member

      Thanks Anonymous,

       

      This only can be done in Import Mode, it don't work in DirectQuery?

       

      Thanks.