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

Problem with expression in chart

Hello,

I have a problem with expression in one pie chart. I would like to count employees based on some condition, however below expression is not working.

=count({<[Report week]={$(=Max ([Report week]))}> * <[Report Fiscal Month]=[Current Month]>}[Employee counter])

I am new in QlikView and cannot find the solution so far.

thanks in advance for advice ,

Maria

1 Solution

Accepted Solutions
Not applicable
Author

If you have defined [Current Month] as a variable = month(today()), you can use it in set analysis as follows:

=count({<[Report week]={$(=Max([Report week]))},[Report Fiscal Month]={$([Current Month])}>[Employee counter])

if [Current Month} is a field name then y0u can use teh following if statement:

count(

if([Report week]=max(Report week) and [Report Fiscal Month]=[Current Month],[Employee counter])

)

View solution in original post

1 Reply
Not applicable
Author

If you have defined [Current Month] as a variable = month(today()), you can use it in set analysis as follows:

=count({<[Report week]={$(=Max([Report week]))},[Report Fiscal Month]={$([Current Month])}>[Employee counter])

if [Current Month} is a field name then y0u can use teh following if statement:

count(

if([Report week]=max(Report week) and [Report Fiscal Month]=[Current Month],[Employee counter])

)