Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Max month of quarter in hana CView

$
0
0

Hi,

 

This script is bringing only first month of the quarter

Is there any way we can bring max month of quarter by modifying this

 

if(in(rightstr("0CALQUARTER", 1), '1') = 1, leftstr("0CALQUARTER",4)+'01', if(in(rightstr("0CALQUARTER", 1), '2') = 1, leftstr("0CALQUARTER",4)+'04', if(in(rightstr("0CALQUARTER", 1), '3') = 1, leftstr("0CALQUARTER",4)+'07', if(in(rightstr("0CALQUARTER", 1), '4') = 1, leftstr("0CALQUARTER",4)+'10',''))))

 

Quarter data would be in following manner 20141/20142/20143/20144

Month data would be in following manner 201401/201402/201403/201404 etc


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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