Use the following steps:
- Select Power Query Editor in Power Bi desktop
- On the edge of the screen select table
- Click on Add Column tab
- and slect Conditional Column
- Give a name to the column
- Give the condition as present in the picture
- And format the column.
For more information on Power BI, check the following Power BI Course
Also, check out our YouTube video to know the data visualization basics and best practices with Power BI