Forum Discussion
aleonor
6 years agoNew Member
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
- AnonymousNot 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 NathaniAppreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!- aleonorNew Member
Thanks Anonymous,
This only can be done in Import Mode, it don't work in DirectQuery?
Thanks.