on 12-29-2015 7:22 PM
Hello, I have a table in a Analytic view. I would like to get only the records between now() and a future date (e.g. 20151231) on a timestamp column I tried using now() in the filter but i am getting an error. How can we achieve this by using the filter in a Analytic view?
What is the format of your time stamp column ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You cannot directly use now() in Filter for Analytic View. because now() is only available in expression editor.
However, you can create an Input Parameter , in the default expression you can put now() , then use this input parameter for filtering.
But, this can be better handled in Calculation View.
Create two Calculated Column in your projection node, namely NOW and FUTURE_TS . Give the definition as show in pic . Use these two new Column in Filter Expression .
Hi Raj
Initially I thought format would be a problem in filtering. But then just tried without formatting and found now() can filter DATETIMESTAMP field from M_TIME_DIMENSION .
In fact now() and FUTURE_TS in my model has slightly different format ( no 1/1000 of seconds) , but filtering still works.
Cheers
Anindya
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.