Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to compare current month and previous month in bar chart.what the expression need to write please help me.
Thanking you,
Hi Anji,
Do you mean you would want to see a graph that showed sales for example, for January to December?
Thanks
you will get number of stuff if you start search on Google
Create 2 expressions
1) Sum({<MonthFieldName = {'$(=Max(MonthFieldName))'}>}Sales)
2) Sum({<MonthFieldName = {'$(=AddMonths(Max(MonthFieldName),-1))'}>}Sales)
check this document
HI
Expecting like this right
No Mathew this year data only
A single expression like this the. Let's use the example that you are looking at sales.
Sum({$<yourDate={'>=$(=MonthStart(AddMonths(Max('yourDate'),-1)))'}>}Sales)
That should do the trick. Only requires one measure and will show you the latest month's sales, with the previous month's sales.