Forum Discussion

BYENER's avatar
BYENER
Helper V
6 years ago
Solved

Lookup columns and return a date value

Hi All,

 

I want to show in a matrix visual the count of [date] from table B per day [date] table C per [step] table B. Table C has a table join with table A. At the moment the matrix count all rows in table B, but I only want a count of the rows where the [SN] date in table A is the same as the date in the matrix. See below an example in Excel. 

  • Create a column like this in B. If date exits mean it is in A

     

    maxx(filter(table A, table A[SNO] = Table B[SNO]),table A[date])

5 Replies

  • I tried to solve it with using a calculated column - lookupvalue(tableA[date],tableA[SN],tableB[SN]) - but I got a #error - A table of multiple values was supplied where a single value was expected.

    • amitchandak's avatar
      amitchandak
      Super User

      Try

      lookupvalue(tableA[date],tableA[SN],firstnonblank(tableB[SN],true()))