Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I need to show May YTD in my expression.
so, i gave the following expression
sum
({<Year={$(vYear)},Month={">$(vFirstPeriod)<$(=vMonth)"}>}sales/1000
vYear =Year(Today())
vFirstPeriod = Month(YearStart(Today()))
vMonth=Month(MonthStart(Today())-1)
which is 2014, Jan to May.
kindly correct me where i went wrong.
Thanks in advance,
sheela
Use $ expansion even on the last variable (rfemove the =):
sum({<Year={$(vYear)},Month={">$(vFirstPeriod)<$(vMonth)"}>}sales/1000)
Hi Alessandro, Still i am getttin only 0 in the column.
Dear,
Can you share the sample file.
Thanks,
Mukram
Could you try the same expression without dividing by 1000?
Hi,
Try like this
What is your month format? Is it 1,2,3, or Jan, Feb, Mar? If it is 1,2 3, then try below expression
=sum({<Year={$(vYear)},Month={'<=$(=vMonth)}>}sales/1000)
or if you have a date field then try this expression
=sum({<YearDimensionName={$(vYear)},MonthDimensionName=, DateDimensionName={'<=$(=MonthEnd(Today(), -1))'}>}sales/1000)
Replace YearDimensionName,MonthDimensionName, DateDimensionName with your actual field names.
Hope this helps you.
Regards,
Jagan.
Thanks fr your repli,
but it dint work
Regards,
Vidhya
Hi,
Can you attach sample file and expected output?
Regards,
Jagan.