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: 
Not applicable

auto generate

hi i am new to qlikview

i have min value as 2011 and max as 2018 ,i want to generate all the years between min and max ,

can any body help me.

Thank you

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Let vMin = 2011;

Let vMax = 2018;

LOAD $(vMin)+recno()-1 as Year

autogenerate $(vMax)-$(vMin)+1;

View solution in original post

3 Replies
its_anandrjs
Champion III
Champion III

Write a code like

Let vMin = num(makedate(2011));

Let vMax = num(makedate(2018));

Load Year($(vMin)+RowNo() -1) as Year

AutoGenerate 1

While ($(vMin)+RowNo() -1) < ($(vMax));

swuehl
MVP
MVP

Let vMin = 2011;

Let vMax = 2018;

LOAD $(vMin)+recno()-1 as Year

autogenerate $(vMax)-$(vMin)+1;

its_anandrjs
Champion III
Champion III

Oh are you check my solution is it wrong.