Forum Discussion

kapil512's avatar
kapil512
Icon for Helper II rankHelper II
8 years ago
Solved

How to replace the same value based on the two columns

HI,   Can anyone please help me out the below issue?   I have the data like below, and i want to replace the second column data using the first column.   Column1 Column2 Replace the value ...
  • v-sihou-msft's avatar
    8 years ago

    kapil512

     

    Just create a calculated column like below;

     

    Column =
    IF (
        Table3[Column2] = BLANK (),
        CALCULATE (
            MAX ( Table3[Column2] ),
            FILTER (
                Table3,
                Table3[Column1] = EARLIER ( Table3[Column1] )
                    && Table3[Column2] <> BLANK ()
            )
        ),
        BLANK ()
    )

     

    Regards,