Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a single table that contains both charges and payments tied to an Invoice #. The date field shows the date of the ledger transaction (be it charge or payment) I would like to create a calculated column that populates each record with the date of the charge. See below for what I'm trying to accomplish. Thank you, everyone, again, in advance, for your assistance.
Solved! Go to Solution.
Hi @pcuezze ,
We can use the following DAX query:
Date of Service =
CALCULATE (
MIN ( 'Transaction Table'[Date of Trx] ),
FILTER (
ALL ( 'Transaction Table' ),
'Transaction Table'[Invoice#] = EARLIER ( 'Transaction Table'[Invoice#] )
&& 'Transaction Table'[Trx Type] = "Charge"
)
)The result will like below:
Best Regards,
Teige
Hi @pcuezze ,
We can use the following DAX query:
Date of Service =
CALCULATE (
MIN ( 'Transaction Table'[Date of Trx] ),
FILTER (
ALL ( 'Transaction Table' ),
'Transaction Table'[Invoice#] = EARLIER ( 'Transaction Table'[Invoice#] )
&& 'Transaction Table'[Trx Type] = "Charge"
)
)The result will like below:
Best Regards,
Teige
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |