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: 
Not applicable

Help with syntax please :-)

HI All,

I have 2 dimensions - Week & Year in a pivot table

I am then trying to create an expression that counts the number of weeks in a month

i.e. It would show

2011 Week 1 - 4 (weeks in month)

2011 Week 2 - 4

2011 Week 3 - 4

2011 Week 4 - 4

2011 Week 5 - 5 (weeks in this month)

but cant get the correct combo of sum / total etc. right for the expression.

Any help would be appreciated please

Thanks

Bob

Labels (1)
2 Replies
Not applicable
Author

count( [Week])

If you want to creat a Month filter then you can use if or set analysis:

count( {<[Month] = {'whatyouwant'} >} [Week])

or

count( if ([Month] = 'whatyouwant', [Week]))

Not applicable
Author

HI Jeres,

Thanks but that doesn't really work as it is counting a 3rd parameter. I literally just want to count the number of weeks in the month 😞

Any more thoughts please ?

Thanks

Bob