Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
i am trying to show current month vs previous month in bar chart
what i did is
sum({<FiscalPeriod={$(=max(FiscalPeriod)),$(=max(FiscalPeriod)-1)}>}Customer)
it shows maximum month and previous month
how can i show current vs previous month any help?
Try this,
if you are looking for Current and previous month,
sum({<FiscalPeriod={$(=max(Num(Month(Date(Today()))))),$(=max(Num(Month(Date(Today()))))-1)}>}Customer)
Try this:
sum({<FiscalPeriod={"<=$(=max(FiscalPeriod)) >=$(=max(FiscalPeriod)-1)"}>}Customer)
hi
it showing the same
what are the values in your FiscalPeriod..
Can u post a sample data
I think , you can get the current month and then compare.
like something below:
sum({<FiscalPeriod={"<=$(=Month(date(today()))) >=$(=Month(date(today()))-1)"}>}Customer)
if format is different ,change the format of month accordingly.
Regards,
Raksha
months
1 2 3 4 5 6 7 8 9 10 11 12
Can you post sample qvw
Try like
Sum({<FiscalPeriod={">=$(=MonthStart(AddMonths(Max(FiscalPeriod),-1))) <=$(=Max(FiscalPeriod))"} >} Customer)
it shows every month
here