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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

problem with sum

hi,

i build in the script feild that show each day number that i use for calculted.

 

if(match(WeekDay([date]),'sat'),num(0.15),
if(match(WeekDay([date]),'fri'),num(0.60),
if(match(WeekDay([date]),'sun','mon','tue','wed','thu'),num(1)))) as [action day]

when i want to use this feild - "action day" for  sum, i'm geting not the right answer.

mybe this feild is not numeric ?

thanks'

yarin.

,

4 Replies
sivarajs
Specialist II
Specialist II

Try this

if(wildmatch(WeekDay([date]),'sat'),num(0.15),
if(wildmatch(WeekDay([date]),'fri'),num(0.60),
if(wildmatch(WeekDay([date]),'sun','mon','tue','wed','thu'),num(1)))) as [action day]

Anonymous
Not applicable
Author

hi thanks',

but it's still doesn't work.

what can be the problem ?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Weekday returns an integer, not a string. You can use the pick function:

pick(weekday(date)+1,1,1,1,1,0.6,0.15,1) as [action day]


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

hi,

it's desn't workink.

see attuched.