Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Max month of quarter in hana CView

$
0
0

Hi There,

 

Am not sure on what you meant, but if it is the max month it means the last month of the quarter, then you can get like this right?

 

if(in(rightstr("0CALQUARTER", 1), '1') = 1, leftstr("0CALQUARTER",4)+'03', if(in(rightstr("0CALQUARTER", 1), '2') = 1, leftstr("0CALQUARTER",4)+'06', if(in(rightstr("0CALQUARTER", 1), '3') = 1, leftstr("0CALQUARTER",4)+'09', if(in(rightstr("0CALQUARTER", 1), '4') = 1, leftstr("0CALQUARTER",4)+'12',''))))

 

Regards,

Krishna Tangudu


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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