Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

Month Parameter in YYYY-MM format

$
0
0


Hi

I need help.

i need to create month parameter in yyyy-mm format.

I created month and year as a 2 separate parameters. & in the formula i mention for month as

 

month: if length(replace(totext(month({Database.Datefield})),".00","")) = 1 then

"0" & replace(totext(month({Database.Datefield})),".00","")

else if length(replace(totext(month({Database.Datefield})),".00","")) = 2 then

replace(totext(month({Database.Datefield})),".00","")

 

Year:Replace(Replace(Totext(Year({Database.Datefield})),",",""),".00","")

 

report parameter: &  " Month: " & {@Year}& "-" & {@Month}

 

And in the selection formula :

(month({Database.Datefield}))= ({?Month})

and

(Year({Database.Datefield})) = ({?Year}). it giving me error.

i don't know, where i went wrong can u help me.

my req is when they selected monthparameter all the products purchased in that month should show

 

thanks in advance


Viewing all articles
Browse latest Browse all 8150

Trending Articles



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