Forum Discussion
Create a custom column using an IF statement
- Anonymous6 years ago
Hi dreaves1 ,
Create a new Column
New Column = SWITCH ( TRUE (), 'Table'[Offers] > 'Table'[Hires], 'Table'[Offers] - 'Table'[Hires], 'Table'[Offers] < 'Table'[Hires], 'Table'[Offers], BLANK () )
Regards,Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)Did I answer your question? Mark my post as a solution!
Hi dreaves1 ,
Create a new Column
New Column =
SWITCH (
TRUE (),
'Table'[Offers] > 'Table'[Hires], 'Table'[Offers] - 'Table'[Hires],
'Table'[Offers] < 'Table'[Hires], 'Table'[Offers],
BLANK ()
)
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
It won't recognize my table now and I get an error message.
- Anonymous6 years agoNot applicable
For a custom Column Formula in Power Query you can use
If [Offers] > [Hires] then [Offers] - [Hires] else [Offers]
Regards,
HN
- Anonymous6 years agoNot applicable
Hi dreaves1 ,
Follow these steps
Regards,Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)Did I answer your question? Mark my post as a solution!
- v-lionel-msft6 years agoCommunity Support
Hi dreaves1 ,
Or create a conditional column in 'Power Query'.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.