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

Count Set Analysis - Using User, Period and Multiple Field values

Hello,

I am working through a tough one that I can't figure out. I have an example dataset attached. I am looking to 1st look into the Color/Vehicle field if Red exists then either Car, Bike or Board then the value would be 1.  I can get that part, but where I am having an issue is keeping the Month dynamic, so if I select any month range that does not include Jan I would get a zero value count or just a value of 1 for just Jan.

Thanks for your help,

Bill

UserMonthColor/Vehicle
PaulJanRed
MaryJanRed
SteveJanBlue
JanJanPurple
BillJanGreen
JohnJanRed
MaryJanYellow
PaulJanBike
MaryJanCar
SteveJanCar
JanJanCar
BillJanBike
JohnJanBoard
MaryJanSurf
PaulJanCar
MaryJanBoard
SteveJanBike
JanJanBike
BillJanBike
JohnJanBike
MaryJanBoard
PaulFebRed
MaryFebRed
SteveFebBlue
JanFebPurple
BillFebGreen
JohnFebRed
MaryFebYellow
PaulFebBike
MaryFebCar
SteveFebCar
JanFebCar
BillFebBike
JohnFebBoard
MaryFebSurf
PaulFebCar
MaryFebBoard
SteveFebBike
JanFebBike
BillFebBike
JohnFebBike
MaryFebBoard
1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

I am not sure I fully understand what you are asking for, but how about the following;

avg({<[Color/Vehicle]={'Red'}>}1)*avg({<[Color/Vehicle]={'Car','Bike','Board'}>}1)

So;

20201102_2.png

Cheers,

Chris.