How to shift an item in line items

edited October 2024 in Modeling

Hey, is it possible to get a value from column 1 to column 2, from column 2 to column 3 etc for Base Revenue. I would like to calculate base revenue for columns 2,3,4 etc. based on 1 column, but I don't know how to get the value from the previous column.
The target formula would look like this:
IF VALUE(NAME(ITEM('Number of Stores'))) = 1 THEN
21885929
ELSE
Previous Column (Base Revenue) * 0.9
Where lookin for formula is Previous Column which return value for previous column base revenue line item

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Best Answer

  • Hey @KacperSzafranski13, Functions like OFFSET, Previous or Lag won't work in this case as they are time based functions so they work with time as a dimension.

    For this case, I can suggest you to create another lineitem which will item of lists in next position like 2 will have value as 1, 3 will have value as 2 and so on.

    Note that the "Item" -Line item is numbered formatted one.
    After then you can simply lookup the value based on this new line item.

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In