Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combine Alternate States in one chart

Hi,

I would like to create a bar chart that displays the result of two different alternates state selections. I would like to have one bar for each group.

How do I do this? When looking at properties for the chart object, I can select only one group on the general page but if I do this I can only see one of the selections.

We did this as a exercise on the QV Development training but I can´t remember how....

Regards,

Mikael

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

An Alternate State can be specified in Set Analysis, e.g.:
sum({[Group 1]} Sales)

-Phil

View solution in original post

6 Replies
Anonymous
Not applicable
Author

An Alternate State can be specified in Set Analysis, e.g.:
sum({[Group 1]} Sales)

-Phil

Not applicable
Author

Aahh, that´s the trick. Thanks for the rapid response.

/Mikael

Not applicable
Author

Hey Phil,

I to have some doubts, will you kindly look at them and through some light on it. I will be very greatful to you for the same.

Regards

Sagar Gupta

Anonymous
Not applicable
Author

How do you do if you want to have the alternate state, like in the answer - for example sum({[Group 1]} Sales) - and then also filter by say, country = Africa ? (country belongs to the Group 1 state also)

phcaptjim
Creator
Creator

How would you write an expression that wanted to do something like this:

sum({[Group 1],[Group 2],[Group 3]} Sales)

The following expression works but it requires the ID to be in all three alternate states:

Max({Cohort1}{Cohort2}{Cohort3}PatientID)

This will return the patient ID for those that exist in all three alternate states (Cohort1,Cohort2,Cohort3).

Is it possible to write an expression that returns PatientID for those that appear in ANY state instead of EVERY state?

Thanks!

heitzmarcel
Contributor II
Contributor II

Just had the same Questions you had and your input helped me a lot. Thanks.

Knowing this is 3 years old, but still if someone looks for the same solution:

Aggr(Only({Cohort1/Cohort2/Cohort3}PatientID),PatientID)

/ needs to be replaced by * when there is no selection in the following state.

This Expression will return you a List of all PatientIDs selected in one of the 3 States.

Best Regards,

Marcel