Forum Discussion
edgarMunoz
9 months agoFrequent Visitor
DAX Calculation - Find value based on day (relative)
Hi community, I'm seeking some help to solve a challenge I'm facing to create a measure. I have a table with the structure below. Each account (AccountNumber column) has multiple records, whi...
- 9 months ago
hi edgarMunoz ,
Not sure if i fully get you, supposing you have a reference date slicer fed with a disconnected dates table, you may try to write the measure like this:
Measure = SUMX( VALUES(balance[AccountNumber]), CALCULATE( MAXX( TOPN(1, FILTER(balance, balance[RecordDate]<=MAX(dates[Date])), balance[RecordDate]), balance[Balance] ) ) )it works like:
Please find more in the attachment.
v-echaithra
Community Support
9 months agoHi edgarMunoz ,
Thank you FreemanZ , maruthisp , ThxAlot , Irwan for your inputs.
I just wanted to check if the issue has been resolved on your end, or if you require any further assistance. Please feel free to let us know, we’re happy to help!
Thank you
Chaithra E.