Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Recent 3 months from Date Object

$
0
0

Hi,

 

I need to create a object to bring recent 3 of data from a date object.

 

 

Actual Data

Report_Year_Month
201212
201301
201302
201303
201304
201305
201306
201307

 

 

 

Expecting

Recent 3 Months
201305
201306
201307

 

 

 

I tried to get hte expected by floowing way of no use.

 

Recent 3 Month==> add_months(to_date(Report_Year_Month ,'YYYYMM'),-1)

 

What i am getting is "201305"

 

 

Please give some sugessions to get recent 3 months.

 

Environment BO XI R3

 

Thanks.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>