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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Prabhu1204
Creator
Creator

Previous month condition

Hello,

 

I Have a  Cal_yr_mo field which has values like 202002

 

I wanted to write   Qlikview SQL function to fetch  previous month data without using to_Char function..  

Is it possible

 

-Prabhu
1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

You can try with previous function in the preceding load

 

LOAD *,
Previous(Cal_yr_mo) as prev;
SQL
SELECT XXX

 

View solution in original post

1 Reply
sergio0592
Specialist III
Specialist III

Hi,

You can try with previous function in the preceding load

 

LOAD *,
Previous(Cal_yr_mo) as prev;
SQL
SELECT XXX