Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmd_srf
Creator II
Creator II

Last 25 Months in a single table

Hi All,

I want to create a Table call Prior Months. The field name would be Prior_Month. Where data would be last 25 months based upon current month dynamically.

Like today is 25th Oct, so current month is 2016-Oct. And the Month would  be like bellow:

I created above one using Inline Load. But I want this dynamically.

Thanks,

Sarif

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

Load

  Date(MonthStart(Today(),-RowNo()+1), 'YYYY-MMM') as Prior_Months

AutoGenerate 25;

View solution in original post

2 Replies
nabhiram
Contributor III
Contributor III

tresesco
MVP
MVP

Try like:

Load

  Date(MonthStart(Today(),-RowNo()+1), 'YYYY-MMM') as Prior_Months

AutoGenerate 25;