I am basically trying to get the number of days between the latest date from the reference table and the current date. I thought MAX was supposed to get me the latest date through the last id match but I only get the first one.
This is my formula:
CONCATENATE(HOUR (Today() - MAX(SELECT(Contact_txn[Date], [id] = [ContactRec])))/24, " Days Ago")
The concatenation of all these text values (
โฆ(HOUR(
โฆ(TODAY() - MAX(
โฆThe list of values of column โDateโ
โฆfrom rows of table โCONTACT_TXNโ
โฆwhere this condition is true: ((The value of column โidโ) is equal to (The value of column โContactRecโ)))) / 24
โฆ" Days Ago"
I am not sure what I am missing. Any help would be appreciated.
Solved! Go to Solution.
Try this instead:
SELECT(Contact_txn[Date], [_THISROW].[id] = [ContactRec])
What is this supposed to be doing?
SELECT(Contact_txn[Date], [id] = [ContactRec])
I believe it is supposed to grab the date(From Table B) on the row that has the id value(From Table A) matching ContactRec value (Ref on Table B)
Try this instead:
SELECT(Contact_txn[Date], [_THISROW].[id] = [ContactRec])
Worked like a charm, thank you!
User | Count |
---|---|
41 | |
28 | |
28 | |
23 | |
13 |