Forum Discussion

android11's avatar
android11
Regular Visitor
10 years ago
Solved

Creating a new column if values in column 1 = column 2

Hi,   I am trying to create a new column that includes all names in column Fullname if they are equal  to a certain value in column UserType.   If Mary Byrne in Fullname is of UserType "Caregive...
  • Neuro81's avatar
    10 years ago

    if you are doing this in Power Query then
    this should do it
    =if [usertype]="caregiver" then [Fullname] else ""

    if you are creating a calculated column then its

    Caregiver = if(users[UserType]="caregiver",users[Fullname],BLANK())

    The first part of an IF is to check the logic so it checks to see if the first expression is true or false
    then the second part is what is returned if its TRUE
    and the last if it is false