Forum Discussion

RafaelAri's avatar
RafaelAri
Icon for Helper III rankHelper III
4 years ago
Solved

Custom column based on existing columns

I want to add a custom column, after loading an Excel file to Power BI, so that I can define a number of IF conditions, which depend on existing columns.
(For example: if "Employee number greater than 50" and "Employee name contains ###" and "Work start date greater than 1/1/2022" .... then ....)

3 Replies

    • SteveHailey's avatar
      SteveHailey
      Icon for Solution Specialist rankSolution Specialist

      Hello RafaelAri

       

      Just to add on to amitchandak's answer, in case you're unclear on how to create a new column.

       

      1. Go to the Data view, using the icon on the far left.

      2. In the ribbon, under Column tools, click the "New column" button.

      3. Enter the DAX formula in the formula bar.

       

      Please see the screenshots below:


       

      -Steve