Forum Discussion
MickyG
5 years agoFrequent Visitor
Create a Measure to retrieve most recent value on a matrix
I am creating a visual matrix w/ the columns stated below. The first 3 columns are being calculated by counting the data records we have, however the "County Cases per 100k" is being uploaded from pu...
selimovd
Most Valuable Professional
5 years agoHey MickyG ,
it's a little bit hard to tell without knowing the data model. I don't really see a need for a lookup.
Can you check if the following approach works:
County Cases Average per 100k =
CALCULATE(
SUM( 'County COVID Data'[cases_avg_per_100k] ),
'County COVID Data'[Date] = MAX( 'Campus Case Master'[Date] )
)
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
MickyG
5 years agoFrequent Visitor
The "Campus Case Master' and 'County COVID Data' are both linked by the HelperColumn. I've tried using the date as a link as well and get the same results. Also, I tried the formula you sent. The error I recieve is "A function MAX has been used in a True/False expression that is used as a table filter expression. This is not allowed."