Forum Discussion

RamiDaoud's avatar
RamiDaoud
Frequent Visitor
6 years ago
Solved

Changing row values based on another coumn value

Hello, I have the following table and I need to know how i can  add new column (Type2) based on the following: if one of the Type column values for the same BithdayID is Creative then all values in...
  • Pragati11's avatar
    6 years ago

    Hi RamiDaoud ,

     

    Create following column as follows:

    Type2 Value = IF(COUNTROWS(FILTER(ALL(BirthData), (BirthData[BirthdayID] = EARLIER(BirthData[BirthdayID])) && BirthData[Type] = "Creative")) > 0, "Creative", "Basic")
     
    You will get the required result as follows:
    If this helps please give Kudos and mark it as a Solution! 🙂
     
    Thanks,
    Pragati