on 04-12-2013 7:26 AM
hi all,
i am having 2 types of data variables P1,P2,P3...P12 for history data and P1,P2,P3...P12 for future data. i need to display a table such that if current period is april(acc to system date) then table will show P1,P2,P3 for history data and P4,P5...P12 for future data in same table. and it got change ,accordingly , every month.
please help
thanks
You can always use the function =Month(Current Date) in WebI to extract the current month and then use the WHERE function to compare it with the Month Object in your report to populate Historic or Future data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mohit,
Assuming, If P1.. P12 for history and Q1... Q12 are for future, then for your requirement,
Place P1... P12 and Q1 ---Q2 as individual columns,i.e, 1 object as one block with relative positioning like below
P1 will not have any relative position, P2 will have a relative position of say 0.02 cm from the right edge of P1, P3 will have a relative position of 0.2 from the right edge of P2 and so on.
Create a variable say [var] with =Month(CurrenDate())
No right click each block > Hide > Hide When
P1 --- =[var] <=1
P2--- = [var]<=2
.
.
.
P12--- =[var]<=12
Similarly for Qs
Q1--- =[var]>1
Q2--- =[var]>2
.
.
.
Q12--- =[var]>12
Hope this will dynamically hide the blocks and give a display as per your requirement.
Thanks,
Madhumitha
I don't understand how you are having the future and history values in the same variables P1-P12?
Other than the variables Do you have the Measures [History] and [Future] and any Month Dimension [Month] in your WebI? then you can create the folloiwng formula.
VAR1 =Month(Current Date)
VAR2 =IF([MONTH]<[VAR1];[HISTORY] ForEach [MONTH];[FUTURE] ForEach [Month])
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.