Forum Discussion
Grab data from most recent row available
- 4 years ago
jwin2424 please use the following
_Balance = CALCULATE ( MAX ( 'Table'[Balance] ), FILTER ( 'Table', VAR _mxIndex = CALCULATE ( MIN ( 'Table'[Index] ), ALL ( 'Table' ) ) RETURN 'Table'[Index] = _mxIndex ) )
Hi,
According to your description and sample data, I can roughly understand your requirement, it seems that you want to get the most recent balance value based on your newly added index column, right? I think you can try this measure:
This is the test data I created based on your description:
Measure =
var _minindex=MINX(ALL('Table'),'Table'[Index])
return
CALCULATE(SUM('Table'[Balance]),FILTER(ALL('Table'),'Table'[Index]=_minindex))
And you can palce a measure into the card chart to get what you want, like this:
You can download my test pbix file below
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This worked as well. Thank you!