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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Challenge to Experts

12 Replies
tresesco
MVP
MVP

See the attached sample.

Not applicable
Author

Tresco it do not work for Oct month

Not applicable
Author

Any expert have any trick to resolve this.

tresesco
MVP
MVP

See attached. Try to get the logic. You would be able to get it for all scenarios

Not applicable
Author

What logic are you talking?

tresesco
MVP
MVP

I expected you to notice some additional scripting. Not an issue, let me explain: If there is no data associated against a field value (like your Months - MARCH, Oct) your stack accumulation would not work. Hence, I added two additional rows in the script:

,,MARCH,Sold

,,Oct, Not Sold

because these combinations were not there before. Then you have to uncheck 'Supress Zero Values' in the presentation tab to make the stack accumulation work properly. Hope it helps you comprehend.

Not applicable
Author

Tresco ,

your logic is fine . But what about when there will be plenty of data and plenty of values to the dimension.

tresesco
MVP
MVP

If you can't find a way of populating all combinations(you can think of another table with them), I am afraid that the bar chart with stack accumulation would not work.

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Sometimes appending rows with a WHERE NOT EXISTS statement is the way to go, when you need something for all combinations.