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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
raajaswin
Creator III
Creator III

Different Layouts depending on Year

Hi All,

Consider the data

YearDimData
2000A45
2000A4
2000B456
2001A54
2001C54
2001B22
2001A10
2002B10
2002B90
2002A66

My output should be,

YearDimsum
2000A49
2000B456

YearDimsum
2001A64
2001B22
2001C54

Year Dimsum
2002A66
2002B100

I need separate chart for each year. for suppose data for year 2003 gets added to the layout a new chart for 2003 should get generated. In OBIEE we have something called section,if we give Year dimension in section, based on that layouts will be generated . any IDEA in Qlikview?

7 Replies
stabben23
Partner - Master
Partner - Master

Hi use set analysys in Your Expression

sum{<Year={'2000'}>}Data), this will gives you only 2000 year values.

do the same in all Charts.

raajaswin
Creator III
Creator III
Author

My problem is not in filtering years!.   I can manually create three layouts for three years. But when data gets added for next upcoming  year, I need seperate chart for it

stabben23
Partner - Master
Partner - Master

Ok, Create variables which holds Your year, like

LET vYear = year(today()); //This year

LET vPreviousYear = year(today())-1; //Previous Year

Then inside Expression use variable sum{<Year={$(vYear)}>}Data),

or use it without variables like:

sum({<Year={$(=max(Year))} Data) so when a New year is added it will use max year.

if i'm totally lost here, explain it more detailed.

raajaswin
Creator III
Creator III
Author

No, i think you are not getting me.

However we create variable , or use max of year. we need to manually create the number of charts we want .

If I have 2001,2002,2003,2004 I need 4 charts. If data gets added for 2005, i need a new chart to be generated as a 5th one.

raajaswin
Creator III
Creator III
Author

Is it possible in qlikview?

stabben23
Partner - Master
Partner - Master

Hi, ok, you can not "autocreate" them, but you can prepare them and use show conditional so it will show up when year will be 2005. it Will be hided as long as you dont have 2005 (2017 in my case)

visiblechart.GIF

raajaswin
Creator III
Creator III
Author

well, Just posted this to know is there any way to automate based on dimension!.

Refer Section in OBIEE. Thats what exactly I want.

Thank u.