Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Create a True() False() columns to identify when specific fields change

Hi, my manager wants a field that identifies when something changes in a data set. I want to be able to create a field with some kind of mark or true/false or something like that when if something ch...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi  Anonymous ,

     

    Here are the steps you can follow:

    1. Create calculated column.

    Flag1 =
    var _Group1Index1=SUMX(FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])),[Group1])
    var _Group1Index2=SUMX(FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])+1),[Group1])
    var _Groupall1=SUMX(FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])&&'Table'[Formatted ID]=EARLIER('Table'[Formatted ID])),[Group2])
    var _Groupall2=SUMX(FILTER(ALL('Table'),'Table'[Index]=EARLIER('Table'[Index])+1&&'Table'[Formatted ID]=EARLIER('Table'[Formatted ID])),[Group2])
    return
    IF(
        _Group1Index1<>_Group1Index2,"True",
    IF(
        _Groupall1<>_Groupall2,"False",
        BLANK()))

    2. Result:

     

    Whether the screenshot above meets your expectations

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly