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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Syntax Set analysis

Hi!

i am struggling with my first line of set analysis

Sum({<[År Vecka]={'year(today()) & week(today()-1)'},

when i hardcode the value 201426 no problem instead of year(today()) & Week(today()-1)

full statement

Sum({<[År Vecka]={'year(today()) & week(today()-1)'},

Land  = {'E-handel SE'},

DepartmentNo = {'1'}>}

Nettobelopp-InkPris)

any help would be greatly appreciated in using functions with set analysis, otherwise i could perhaps go with an if statement.

Best

Brad

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe

sum({$<[År Vecka]={$(=( year(today())&Week(Today())-1 ))} ,

Land  = {'E-handel SE'},

DepartmentNo = {'1'}>}

Nettobelopp-InkPris)

View solution in original post

3 Replies
maxgro
MVP
MVP

maybe

sum({$<[År Vecka]={$(=( year(today())&Week(Today())-1 ))} ,

Land  = {'E-handel SE'},

DepartmentNo = {'1'}>}

Nettobelopp-InkPris)

Not applicable
Author

what is the condition you need to give for [Ar Vecka]

its_anandrjs
Champion III
Champion III

Try this way may be


Sum({<[År Vecka]= { '$(=(year(today())&week(today()-1) ))' },

Land  = {'E-handel SE'},

DepartmentNo = {'1'}>}

Nettobelopp-InkPris)

Or

Sum({<[År Vecka]= { '$(=(year(today())& (=week(today()-1)) ))' },

Land  = {'E-handel SE'},

DepartmentNo = {'1'}>}

Nettobelopp-InkPris)