Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to count going 1 day back :
count({<date_lgn_timestamp= {date_lgn_timestamp}-1 >} lgn_timestamp)
How I can use this ?
Thanks
Hi Pasquale, maybe with:
count({<date_lgn_timestamp= {'$(=timestamp(date_lgn_timestamp-1))'} >} lgn_timestamp)
But still can fail, timestamp format returned in $(=) should be the same as the are stored in the date_lgn_timestamp field.
Hi Ruben thanks for the answer,
but doesn' t work fine..
Please find attached a picture hope that could helps
Thanks
Hi Pasquale, it won't work if there is a dimension with date, set analysis is calculated before the table, so the same date it's applied to all rows, also it will need a TOTAL qualifier to ignore date dimension.
If you want to retrieve the value of the row below you can use Below() function:
Below(count(date_lgn_timestamp))
Note that gaps between dates can return unwanted results, check if it can work with your data.
Hi Ruben, thank was really helpful,
now the problem is that for each column I have to trace 1 day back.. for the first column Below(count(date_lgn_timestamp)) could be fine... but what happen now for the second and 3 column?
Thanks for your help
The 2nd parameter of below can be used to jump more than one row:
2nd column: Below(count(date_lgn_timestamp), 2)
3rd column: Below(count(date_lgn_timestamp), 3)
Hi,
Pls try this
count({<date_lgn_timestamp= {">=$(=Date(Max(date_lgn_timestamp) - 1))<=$(=Date(Max(date_lgn_timestamp) - 1))"} >} lgn_timestamp)
Hope this helps,
Justin.
Hi Justin,
I cannot see the whole expression
Hi,
I have attached a file in txt
Regards,
Justin.