Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How can I change values in a specific column depending on values of other columns?

Hi,   I created a duplicate of the column "Einzeldauer" and named it "Ersatzstunden". The column "Einzeldauer" must stay untouched.   1. If a cell in column "Grund Abwesend" is "Feiertag" and the...
  • JorgePinho's avatar
    3 years ago

    Hello Anonymous !

     

    My suggestion is:

     

    1. Delete the current Ersatzstunden column you have

    2. Add Column > Custom Column and try this 

     

    if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜ") then [Einzeldauer]
    else if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜN") then Value.Multiply([Einzeldauer],-1)
    else null