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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
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
14 Replies
Anil_Babu_Samineni
Author

Sunny Got It.

So, PFA of that image.

Here, i want to show the either Ascending / Descending order?

Is there any expression for that from Sorting?

- 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

Dimension is not Date here... I think these expression should work with a dimension which is not a date

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

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

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

Anil_Babu_Samineni
Author

Sunny,

If i take that expression will coming like below. How to show graphs either Ascending or Descending with Expression from Sorting. For reference, Please find before attachment.

Capture.PNG

I don't know why -Ve Values came here.

If i take like below. Some kind it is working

(Sum({$<[Year Order Date] = {$(=max([Year Order Date]))}>} Sales)) - (above(Sum({$<[Year Order Date] = {$(=max([Year Order Date])-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
Anil_Babu_Samineni
Author

Sunny,

If you have anything about Set Analysis can you please send me that doc's???

- 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

Look at the document attached to this link: Set Analysis: syntaxes, examples. Not a perfect document, but will help you learn a lot about set analysis.

Best,

Sunny