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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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

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