The opposite of Previous?? (for calculating a difference)

Hi all,

I’m working on a report in Desktop Intelligence 12 and I need help.

I’ve found the function Previous(), but actually I need the opposite: Next. Is there such a function?

The reason I need this is the following:
In a crosstab, I’ve got columns with the most recent dates (irregular frequency), made with a ranking. For each date, there are amouts underneath it per vertical dimension. I’m not interested in the actual amounts, but in the increase on the previous amount. So my measure should be: Difference=-

The thing is that Previous amount=Previous() refers to the wrong direction.

Can anyone help me, please?


MarkBO (BOB member since 2010-02-16)

Welcome to B:bob:B!

It might be WebI only and it might be my imagination but I’m sure there is something like this now. It may be an optional argument to Previous or it maybe a differently named function (I don’t think it was next). Have a look in the category of functions to which Previous belongs to see if there is anything with an appropriate description…and check out the full syntax for Previous, in case there is an optional argument.


Nick Daniels :uk: (BOB member since 2002-08-15)

Thanks for your help.

I can’t find anything about an optional argument not in the hint while entering the function, nor in the help. I tried entering a , and a value after the >. This resulted in an error: too many parameters.

In the help, I can not find a category where Previous belongs to, other than “Functions”. So I can’t search anywhere but in the entire list and there I’ve tried every naming I could think of.


MarkBO (BOB member since 2010-02-16)

Oh, in WebI the functions are listed alphabetically but also categorised - I think Previous may belong to a Miscellaneous category…its either the painful process of working through each one or hopefully someone will shout up with the answer.


Nick Daniels :uk: (BOB member since 2002-08-15)

Hi,
How about RelativeValue function in Webi (XI 3.1) which Returns previous or subsequent values of an expression calculated using a set of dimensions.
SYNTX:=RelativeValue(expr;slicing_dimensions;offset)
Eg:RelativeValue([Revenue];([Year]);1) returns the next value.

Thanks


forgotUN (BOB member since 2006-12-13)

Thats it. I have a nasty feeling it may not be there in Deski though…


Nick Daniels :uk: (BOB member since 2002-08-15)

I’m sorry for saying this, but indeed, there is no RelativeValue in Deski.


MarkBO (BOB member since 2010-02-16)

Curses. If you have access to the universe, you may be able to leverage database functions to do this. The example I always give is Oracle’s lead and lag functions.

Or, if you alter the order the reports, doesn’t your need for ‘Next’ suddenly become a need for Previous…I guess that just isn’t a goer?


Nick Daniels :uk: (BOB member since 2002-08-15)

I read this yesterday and knew there was some way to do this, althoug was not sure, with regards to Deski.
Its always a problem when you are switching versions, tools, you forget what can do what… :roll_eyes: .


Mak 1 :uk: (BOB member since 2005-01-06)

That’s not really a big deal: I don’t care too much about the order, but I don’t think that’s possible with the way I created my list of 8 most recent dates: it’s a top 8 ranking, which is automaticly displayed as most recent left and older right. Applying a sort removes this ranking.


MarkBO (BOB member since 2010-02-16)

Thanks for all your help.

I’ve managed to just create a new variable with Previous() to move te dates along with the data. The real data are still in the table, but I hid them bij making them white. :slight_smile:


MarkBO (BOB member since 2010-02-16)

If you’re using Deski, why not hide them in the pivot?
Right click, choose format table.
Go to the pivot tab.
Choose the object click hide.

OK.

Rinse and repeat as reequired.
:+1: