Do not input private or sensitive data. View
Qlik Privacy & Cookie Policy.
Skip to main content
Unlock a world of possibilities!
Login
now and discover the exclusive benefits awaiting you.
Expand
Move to Qlik Cloud
Forums
Support
Discover
Blogs
Events
Qlik.com
Qlik Help
Resources
Qlik.com
|
Qlik Help
|
Resources
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Ask a Question
Help
Sign In / Register
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour!
Register Now
Qlik Community
:
All Forums
:
QlikView App Dev
:
Get Last Year values based on user date selection
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All community
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
paul_scotchford
Specialist
2013-08-08
09:43 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Get Last Year values based on user date selection
Hi All
This may have already been answered elsewhere but my searches seem to not pick up a suitable answer and
pleae forgive my newness to QV and Set Analysis.
I want to show Sales This Year (2013) and Last Year (2012)
Now, when the user selects 1 Aug 2013 I want to show on the chart 1 Aug 2013 and 1 Aug 2012 then (This Works fine )
user selects Aug 2013 I want to show on the chart Aug 2013 and Aug 2012 then (This works too )
user selects 2013 I want to show on the chart 2013 and 2012 ( Shows All 2013 but persists Aug 2012)
I have tried various combinations of my set analysis but just cant get the correct Aggregation part , the user
sees current year , but the Aug 2012 persists.
Here's a sample of my set analysis ( not original I sourced it from another blog post here )
Many thanks in advance for any feedback.
{$<MonthID = {$(=Max(MonthID) - 12)},
Date = {"<=$(=Date(MakeDate(Max(Year) - 1, Max([Month (#)]), Day(Max(SaleDate))),'YYYY-MM-DD'))"},
Year = {$(=Max(Year)-1)},
Quarter = ,
Period = ,
[Period (#)] = ,
Month = >}
Tags:
date
qlikview_creating_analytics
sales
set_analysis
Ditto - same here!
All forum topics
Previous Topic
Next Topic
0 Replies
Post Reply
Tags
new_to_qlikview
new to qlikview
qlikview_scripting
qlikview_layout_visuali…
qlikview_creating_analy…
qlikview
script
chart
expression
date
load
table
set_analysis
expressions
macro
analysis
scripting
pivot
set
dimension
View All ≫
Community Browser
All Forums
GeoAnalytics
QlikView Administration
QlikView App Dev
QlikView Connectivity
QlikView Integrations
Qlik NPrinting