Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help filtering an expression

I'm trying to build a bar chart where I have car_model as the dimension and sum of sales by month as the measure.  I only want the chart to show the sum of sales where car_color = "Black"

For the car_model expression, my attempt at filtering to have only black cars included is below.  The syntax appears to be correct, but Qlik says it's an "Invalid Dimension". 

=count({$<[car_color]="Black">} Distinct car_model)

I understand that dimensions shouldn't have aggregate functions, so I tried taking out "count" and it still doesn't work.  I also tried taking out distinct, but that didn't make a difference either.

Thank you for the help!

1 Solution

Accepted Solutions
sunny_talwar

Try this

Dimension

Car_model

Expression

Sum({<[car_color] = {'Black'}>}Sales)

View solution in original post

2 Replies
sunny_talwar

Try this

Dimension

Car_model

Expression

Sum({<[car_color] = {'Black'}>}Sales)

Anonymous
Not applicable
Author

Sunny,

That did it!  Thank you so much!!