This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 traveller's purchases. the credit adjustments were due to errors in transactions for which travellers got refunded.
im currently only able to match a portion of them because i cant find a suitable formula that will parse through each record, read the employee id, and keep that traveller's previous transactions in context when trying to match the corresponding credit adjustment.
the link to my data set is here: https://drive.google.com/file/d/1Q8e1l34jx8MifjuLP73Z8xjasFg5Pgo1/view?usp=sharing
so far i created 3 additional columns in power bi:
credit adjustment column =
Solved! Go to Solution.
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" )
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" )
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 25 | |
| 22 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 25 | |
| 20 | |
| 20 |