Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help post for Combo Chart

Hi, i'm facing some problem in my qlikview Combo chart design.

In my design, x-axes will be show week number and y-axes Sales Value.

X-axes is ok, but Y-axes show two value, one value i mean Bar is ok but Line not show anything.

1. Bar: Current year total value like sum(Sales) .

2. Line: Last Year Total Sales. so expression definition i'm using this expression: if(Year=2016,sum(sales))

but no result. So may i asked you my expression is right ?

Could you please help them ??

Capture.PNG

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be these?

For Bar chart & Line chart expressions are

1) Sum({<Year = {'$(=Max(Year))'}>}Sales)

2) 1) Sum({<Year = {'$(=AddYears(Max(Year),-1))'}>}Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Try

if(Year=2016,sum(sales),)

or

sum({<Year={'2016'}>}Sales)

Anil_Babu_Samineni

May be these?

For Bar chart & Line chart expressions are

1) Sum({<Year = {'$(=Max(Year))'}>}Sales)

2) 1) Sum({<Year = {'$(=AddYears(Max(Year),-1))'}>}Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Big thanks to all of you ...

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).

If not, please make clear what part of this topic you still need help with .

May you live in interesting times!