I am trying to do an If formula in Power bi, with filtering and comparing data. I want to check for every Client,who have with unique Transaction ID, if the Legal firm is the same. If its the same to return Yes, if not - NO.
**Client | Transaction ID | Legal firm**
American Express |2295876 |Orrick Herrington
American Express |2295877 |Orrick Herrington
American Express |2295878 |Orrick Herrington
Swedbank AB |2287074 |Linklaters
Swedbank AB |2287074 |Clifford Chance
Swedbank AB |2287075 |Clifford Chance
I tried Calculate with distinct count, but it wasn't possible to include if statement.