Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis help

Hi,

I have a requirement to show a bar chart for year wise sum of amounts. For this I have created a bar chart with 'Year' as dimension and 'Sum(Value') as expression. This is working fine.

But my requirement is, in each bar where it is showing data for that year I want to show data for >= that year. Means bar for 2010 should show sum of all values where year >= 2010 instead of year = 2010. The same should happen for 2011 bar and etc..

COuld you please help me with an set analysis expression to achieve this.

Sample qvw attached with this post.

Regards,

Murali

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Check the attached file hope this suits better for your requirement.

Regards,

Jagan.

View solution in original post

11 Replies
stephencredmond
Luminary Alumni
Luminary Alumni

Hi Murali,

Use the Above function:

sum(Value) + above(sum(Value))

Regards,

Stephen

Not applicable
Author

Tried that it didn't help.

It is basically showing 100 for 2010. Which is wrong.

lironbaram
Partner - Master III
Partner - Master III

try

this example

Not applicable
Author

Thanks a lot for the response but still it is not as per my requirement.

The bar for 2010 should show 1000 and for 2011 it should show 900 etc...

Anonymous
Not applicable
Author

Hi

    Hope the attached qv file will ve help to solve your problem

Regards

Ashok

lironbaram
Partner - Master III
Partner - Master III

check this one

Not applicable
Author

All,

The suggested solution didn't help me to solve my problem.

May be that I haven't described my problem correctly to this group.

Now attached is the updated QVW with the issue I am facing.

Any help?

Regards,

Murali

jagan
Luminary Alumni
Luminary Alumni

Hi Murali,

Please check attached file.  Hope this helps you.

This is an alternate approach, if you need only two years this would be helpful.  If you need extra others add some more expressions.

Regards,

Jagan.

Not applicable
Author

I have already given this alternative solution, but business wants a stack graph. One bar for each year stacked for grip and non grip.

Any other solution?