Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetFieldSelections Yesterday

Hi Guys

Im building a straight table chart where I wish to only have the data when Period_dte = Yesterday

Date is a demension and I have tried a calculated demension too and I cant quite get it to work

Has anyone got any advice please ?

Thanks

A

I have tried :

GetFieldSelections(Period_dte=date(today()-1)

But its not working

Labels (1)
1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use calculated dimension as if(Period_dte=date(today()-1),Period_dte)

Its better to use set analysis instead of calculated dimension like below for the expression

     Sum({<Period_dte={'$(=date(today()-1))'>} FieldName)

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Use calculated dimension as if(Period_dte=date(today()-1),Period_dte)

Its better to use set analysis instead of calculated dimension like below for the expression

     Sum({<Period_dte={'$(=date(today()-1))'>} FieldName)

Celambarasan

Not applicable
Author

Hi Celambarasan

I tweaked your answer and in the load statement put

IF(Period_dte = Today() - 1, 'Yes',null()) as

So I could then load as a demension and tick if Null() hide , so only yesterday info showed

Thanks for your help

A