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: 
sutoniusahadong
Contributor
Contributor

GetFieldSelection error

Dear All,

Can any body help for this error ..

=Count({$<[Valid To]={'$('>&GetFieldSelections(periode)&'-01-01)'}, [Valid From]={'${<'&GetFieldSelections(periode)&'-02-01')}>}DISTINCT [Emp No])

 

Tq

Toni

Labels (1)
2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

What are you trying to do and what is the error? GetFieldSelections is probably not the best way to do it.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sutoniusahadong
Contributor
Contributor
Author

Tq for your repply,

I want create table fulfillment, and the value will appear trigger from periode (current year, year -1, year -2, and year-3)

i do this to solved :

1. Create variable JAN until DEC   : =date(GetFieldSelections(periode)&'-02-01','YYYY-MM-DD')

2.  expresion for JANUARI  is =Count(DISTINCT {<[Valid  To]= {">=$(JAN)"}, [Valid  From]={"<=$(FEB)"}>} [Emp No])

 

Tq

Toni