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

Current Year Problem

Hi,

I have data like 2009 - 2012

I want to display only 2012 Data using Set Analysis

For Reference, PFA

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
1 Solution

Accepted Solutions
sunny_talwar

Are you may be looking for something like this...

Capture.PNG

View solution in original post

14 Replies
sunny_talwar

May be this Anil:

Sum({$<[Year Order Date] = {$(=Max([Year Order Date]))}>} Sales)

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Sum({$<[Year Order Date] = {"$(=max([Year Order Date]))"}>} Sales)

Try like this.

Screenshot_1.jpg

Anil_Babu_Samineni
Author

Yes, So after that i want to show Last year.

And how to get the data for Max Year Vs Max Year-1

Meantime, I want to show that Difference in Line

Please help me...

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
sunny_talwar

What do you mean a line? How would you want to see a line here?

Capture.PNG

Anil_Babu_Samineni
Author

Yes,

So here i want to know change of 2012 & 2011 ( I want to show that difference in line Chart) with these two graphs..

- Anil

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
sunny_talwar

But difference between two numbers is a single number... How do you expect to see a line?

Anil_Babu_Samineni
Author

So, I Apologize that.

I want to know difference Value. How do i get that in Chart, Please?

- Anil

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
sunny_talwar

Are you may be looking for something like this...

Capture.PNG

Anil_Babu_Samineni
Author

Yes, It's similar to that.

Here

Sum(Sales) -- Sum({$<[Year Order Date] = {$(=max([Year Order Date]))}>} Sales)

Above(Sum(Sales)) -- Sum({$<[Year Order Date] = {$(=max([Year Order Date])-1)}>} Sales)

Final Expecting is -- Sum({$<[Year Order Date] = {$(=max([Year Order Date])-1)}>} Sales) - Sum({$<[Year Order Date] = {$(=max([Year Order Date]))}>} 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