Looking for a search to count number of transactio...
# administration
k
Looking for a search to count number of transactions an employee has created and compare it year over year.
s
You probably want to use
Created By
(grouped) and the
TO_DATE()
function to extract the year (grouped) from the
Created Date
. And use count of internalid. Filter your results to
Mainline = T
as well.
k
That is the one i am struggling with....the date.. i want to show 2019 and 2020....can you elaborate on
TO_DATE()
function?
You probably actually want TO_CHAR and use
'YYYY'
k
THANK YOU! I will take a look at this
s
If you want a look like one row per user, something like each column being a
CASE WHEN
should work for that, e.g.:
Copy code
CASE WHEN TO_CHAR({datecreated}, 'YYYY') = '2019' THEN 1 ELSE 0 END
And just change that year for each column and you now have one row per user
k
PERFECT, THANK YOU!