Forum Discussion

LizzyLou's avatar
LizzyLou
Regular Visitor
6 years ago
Solved

Nested IF/And multiple criteria

Hi! Super DAX beginner here, but I'm working on an employee tracker to track productivity criteria for a working from home vs working in the office project. I have a multi-tab excel file where I'm co...
  • Greg_Deckler's avatar
    6 years ago

    OK, I don't see Coworker Code column in the sample data provided. In general DAX's IF statement works identically to Excel's IF statement. So I am guessing that what you are having trouble with is that in Excel you can specificy a column/row reference while in DAX you have to filter down to a particular row and column within a table. LOOKUPVALUE can be of use here. 

     

    Also, for complex IF statements, it is generally better to use SWITCH.