Forum Discussion

shuhn1229's avatar
shuhn1229
Resolver I
3 years ago
Solved

Matrix Visual with Changing Names

Hi all,

 

I've been trying to think through a solution to this all afternoon and am drawing blanks. I have a table like the below:

 

NameDateID
Book11/1/20231
Book12/1/20231
Result13/1/20231
Book22/1/20232
Result23/1/20232
Book33/1/20233

 

I am trying to build a matrix visual where I can visualize the latest value (max date) in name per row, showing a count if that ID appeared in a given month . The problem is when I create a matrix of name by row, if the name changes I get two or more rows per ID. If I create a matrix of ID by Date is all works perfectly, but ID is meaningless for me, I really need to be able to show the row name as the max value per date, with a record of each of the dates in aggregated by ID.

 

I've tried doing some summary tables but can't quite get this to look right. Am I overthinking it?

 

Thanks!

  • Hi,

    This calculated column formula works

    Column = LOOKUPVALUE(Data[Name],Data[Date],CALCULATE(MAX(Data[Date]),FILTER(Data,Data[ID]=EARLIER(Data[ID]))),Data[ID],Data[ID])

    Hope this helps.

5 Replies