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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
MikeJones
Creator
Creator

Count weekeday issues

Hi I am trying to count the number of Jobids that occur on Monday using

=count(<{weekday([PlannedDate.autoCalendar.Date])={'Mon'}>},[JobID-Jobid])

Qlik tells me that ')' expected, however, I have tried numerous additions and I can't get it to work.

 

Labels (3)
1 Solution

Accepted Solutions
QFabian
MVP
MVP

Hi @MikeJones , please consider 2 things, 

1,. create a new field DateWeekDay, for not to use function for the field in the expression.

2.- check the sintax, '<{'  to '>}'  and the cooma is not necesary before the counted field '[JobID-Jobid]'

count(
{<
[PlannedDate.autoCalendar.DateWeekDayNEWFIELD] = {'Mon'}
>}
[JobID-Jobid])

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

2 Replies
QFabian
MVP
MVP

Hi @MikeJones , please consider 2 things, 

1,. create a new field DateWeekDay, for not to use function for the field in the expression.

2.- check the sintax, '<{'  to '>}'  and the cooma is not necesary before the counted field '[JobID-Jobid]'

count(
{<
[PlannedDate.autoCalendar.DateWeekDayNEWFIELD] = {'Mon'}
>}
[JobID-Jobid])

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
MarcoWedel

you can check your set expression syntax using this description:

https://help.qlik.com/en-US/sense/November2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAn...