Per your question, please check out the thread below which talks about how to use virtual tables to create the necessary evaluation context for displaying measures like this in cards. I think a very similar approach will work well here.
See how it goes, and if you have any additional questions/issues with this, just give a shout.