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

Obtaining the following set for a selection

Hi,

I am loading into Qlikview a table with this format:

InvoiceDateMonthClient NameCategory
222301.01.2014JanuaryHarryHome
222410.01.2014JanuaryHarrySchool
222520.01.2014JanuaryPaulHome
222630.01.2014JanuaryJohnAcessories
222704.02.2014FebruaryPaulTechnology
222810.02.2014FebruaryPaulSchool
222920.02.2014FebruaryChristieHome
223021.02.2014FebruaryMichaelTechnology
223103.03.2014MarchHarryPlants

My requirement is:

When I select a Month and a Category I need to represent in a bar chart the set of all the following Invoice Categorys for each client in order to know what they've done in the period after the selected category.

Example:

If I select month January and the category Home I am viewing this data.

222301.01.2014JanuaryHarryHome
222520.01.2014JanuaryPaulHome

2.PNG

In my chart I want to represent the following Invoice Categorys for each client:

222410.01.2014JanuaryHarrySchool
222704.02.2014FebruaryPaulTechnology
222810.02.2014FebruaryPaulSchool
223103.03.2014MarchHarryPlants

The desired bar chart is this:

Capture.PNG

How can I achieve this?

Thanks in advance.

Kind Regards,

Luís

5 Replies
Not applicable
Author

Anyone to help?

mrooney
Contributor III
Contributor III

Hi

This is the expression you want:

=COUNT({$<Category =-{$(=Concat(Text(chr(34))&GetFieldSelections(Category,Chr(34)&','&chr(34),',')&Text(chr(34))))}>}Invoice)

Notice: Be aware there is a minus sign  after de equal.

Hope this help.

ecolomer
Master II
Master II

Here you have my proposal

Not applicable
Author

Hi Enrique

your solution does not meet our requirements

do you have another proposal?

thanks

Not applicable
Author

Hi Miguel,

your solution does not meet our requirements

do you have another proposal?

thanks