Forum Discussion

SK1968's avatar
SK1968
Regular Visitor
1 year ago
Solved

If statement with subtraction

Please can someone help with a problem I have I have a table that has the following, Column 1 is 'Weekly hours', Column 2 is 'LA' - this is part of a calculated table called 'Hours Used' I wo...
  • bhanu_gautam's avatar
    1 year ago

    SK1968 You can create a new calculated column using DAX

     

    DAX
    Adjusted Hours =
    IF(
    'Hours Used'[LA] = "Plymouth",
    12 - 'Hours Used'[Weekly hours],
    11 - 'Hours Used'[Weekly hours]
    )