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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can default views be 2 different years

Our current dashboard is shown weekly with 2015 data.  Before the January's results are loaded, can it show December 2014 monthly results when monthly is selected?

1 Solution

Accepted Solutions
linusblomberg
Creator II
Creator II

You have to provide a lot more information if you want a detailed response. Is it in a chart, in that case what kind. It sound like there are several object that need to change?

You need to change your dimensions into expressions with if statements.

There are several ways to do this but a simple way be something like this:

create a variable in the loadscript with the max(date) of your data. lets call it vMaxDataDate

Dimension:

if(vMaxDataDate<yearstart(today()), Month, Week).

Hope I understood your problem correctly.

View solution in original post

4 Replies
linusblomberg
Creator II
Creator II

You have to provide a lot more information if you want a detailed response. Is it in a chart, in that case what kind. It sound like there are several object that need to change?

You need to change your dimensions into expressions with if statements.

There are several ways to do this but a simple way be something like this:

create a variable in the loadscript with the max(date) of your data. lets call it vMaxDataDate

Dimension:

if(vMaxDataDate<yearstart(today()), Month, Week).

Hope I understood your problem correctly.

Not applicable
Author

Default view is weekly for my dashboard.  In January 2015 if a user selected monthly, it would be blank.  I would like it to go to December 2014 until monthly results for January 2015 were loaded.  Can I create a loadscript to show previous (December 2014) year's month ending data even though the default view for the bar charts is showing 2015 weekly data?

linusblomberg
Creator II
Creator II

So is the problem that on january 2 you will not have any for january? that the data might come on say january 23 or even later? I'm not sure I understand the issue well enough but I'm sure I can help you out once I do.

How do you obatin the default view? is anything selected when you show weekly for jan 2015? if so do you use a trigger for that?

otherwise do you use set analysis to make it show jan 2015?

I think your issue will be solved with a few variables and set analysis.

For your bar charts you can use a variable that contains either week or month depending on your rules for this.

linusblomberg
Creator II
Creator II

Do this take on of your objects, like a bar chart and tell us the properties. use copy paste

Dimension:

Expression:

Selections (date):