Forum Discussion
shashiPaul1570
3 years agoFrequent Visitor
DAX related
Hi Community, I am trying to calculate the previously paid indeminity for my claims no. where claim type is 2 and transaction date is less than the selected date. tryPreviously Paid Indeminity =...
- 3 years ago
NaveenGandhi
Memorable Member
3 years agoHello shashiPaul1570
Try the below DAX.
Previous =
VAR CurrentDate = max('Previous Indemnity'[Transaction Date])
RETURN
CALCULATE (
SUM ( 'previous indemnity'[Amount] ),
FILTER (
ALL ( 'previous indemnity' ),
'previous indemnity'[Transaction Date] = CALCULATE ( MAX ( 'previous indemnity'[Transaction Date] ), 'previous indemnity'[Transaction Date] < CurrentDate )
)
)
Let me know if you have any questions or issues.
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
shashiPaul1570
3 years agoFrequent Visitor
Hi Naveen,
It is not giving me the right result when I am using this measure in a table.
- NaveenGandhi3 years ago
Memorable Member