The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
79 | |
71 | |
48 | |
39 |
User | Count |
---|---|
136 | |
108 | |
70 | |
64 | |
57 |