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

Chart: How to set a data filter

Hi all,

I have a bar chart where the X axis dimension is MonthNum (months from 1 to 12) taken from table A.

On this chart I'd like to count the CUSTOMER occurrences per month as reported in a different table B. In this table the month field is named MonthOpen.

I've set the expression for the bar chart as:

Count({<MonthOpen=MonthNum>} CUSTOMER)

but I get an error.

What's the right syntax to solve this problem?

Thank you.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

or perhaps also this 

Count(if(MonthOpen=MonthNum, CUSTOMER))

View solution in original post

3 Replies
jpapador
Partner - Specialist
Partner - Specialist

try this:

Count({$<MonthOpen=P(MonthNum)>} CUSTOMER)

Alternatively you could rename the MonthOpen field in the script to MonthNum and it would create a join and you would not need to use set analysis.

maxgro
MVP
MVP

or perhaps also this 

Count(if(MonthOpen=MonthNum, CUSTOMER))

Not applicable
Author

Grazie, funziona perfettamente