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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

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.