Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i have a month list box
month:
[
jan
feb
mar
.
.
.
.
.
oct
nov
dec
];
i made a bar chart with dimension as month and expressions as sum(sales).
my req is i dont want see the sales for current month and previous month.
for example we are IN SEP so i dont want see sales for month of sep,aug(current month and previous month)
if we moved to OCT then i dont want see sales for month of OCT and SEP ?
Try like:
Sum({<Month={"<$(=Max(Month)-1)"}>} sales)
it will ignore last month only what about current month pradip..
you want to see up to current month
Sum({<Month={"<$(=Month(today()))"}sales)
if you want to see only current and previous month
sum({<Month={">=$(=month(today()-1)<=$(=month(today()))"}sales)
Did you try with that expression?
no yar ,not yet
ok i will try tell u
i want exclude current month and previous month ,rest of the month i want to see
then
sum({<Month={"<$(=month(today()-1))">}sales)
should work