Forum Discussion

tomekm's avatar
tomekm
Helper III
3 years ago
Solved

Comparing changes in Attributes based on 2 columns from Month to Month

Hello,   I'm trying to create a calculated column or measure that will identify the same Attribute from Period 1 to Period 2, and see if the Attribute preserves the same ID or not. This table will ...
  • v-jianboli-msft's avatar
    3 years ago

    Hi tomekm 

     

    Please try:

    First create a new table for slicer:

    Use the two columns to create two slicer 

    Then apply the measure to the table visual:

    Measure = 
    var _a = CALCULATE(MAX('Table'[ID]),FILTER(ALLEXCEPT('Table','Table'[Attribute]),[Period]=SELECTEDVALUE('For slicer'[start])))
    var _b = CALCULATE(MAX('Table'[ID]),FILTER(ALLEXCEPT('Table','Table'[Attribute]),[Period]=SELECTEDVALUE('For slicer'[end])))
    return _a=_b

    Final output:

     

    Best Regards,

    Jianbo Li

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