Hi ,
I have a requirement to create a stacked column chart based on 2 measures over a 12 month rolling period
The 2 measures are revenue and expense.
For the report i have a start and end date user prompt and based on the user input start date, the previous 12 months aggregated values of the revenue and expense should be displayed in the stacked column chart.
ie, if start date is 20-OCT-2014, the sum(revenue) and SUM(expense ) should be displayed for the preceding 12 months from OCTOBER-2014.
OCT 13 | NOV 13 | DEC 13 | JAN 14 | FEB 14 | MAR 14 | APR 14 | MAY 14 | JUNE 14 | JULY 14 | AUG 14 | SEP 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
revenue | 500 | 400 | 333 | etc.. | ||||||||
EXPENSE | 100 | 30 | 440 | etc... | .... |
Please let me know the best approach to achieve the above results.
In my FACT table, i have a month year column which displays the month as above(eg:OCT 13, NOV 13)
So aggregation of measures is simple..
ie,SUM(EXPENSE) WHERE MONTH_YEAR=OCT_13 will give the aggregated expense for OCT 13.
I am wondering whats the best solution to achieve this dynamically..
Rgds,
SAMSON