Forum Discussion

Phil-osophy's avatar
Phil-osophy
Helper I
7 years ago
Solved

transaction matching

hey everyone!   i have a follow up to my last post in regards to transactions. this time my data set problem is focused on trying to match the credit adjustments that correspond to a specific trave...
  • v-frfei-msft's avatar
    7 years ago

    Hi Phil-osophy ,

     

    To create two calculated columns as below.

    Column = 
    - IF ( Sheet1[transaction type] = "credit adjustment", [amount], BLANK () )
    
    Column 2 = 
    VAR a =
        CALCULATETABLE (
            VALUES ( Sheet1[Column] ),
            FILTER ( ALL ( Sheet1 ), Sheet1[Employee ID] = EARLIER ( Sheet1[Employee ID] ) ),
            Sheet1[Column]
        )
    RETURN
        IF ( [amount] IN a, "matched", "nope" )
    

     

  • Phil-osophy's avatar
    Phil-osophy
    7 years ago

    v-frfei-msft thank you for your help!

     

    it seems to be working correctly!