Skip to Content
author's profile photo
Former Member

changing dimension

Hi,

I have a report in which I have a customer name which has got changed from last month. If I want to display in a cell this customer name for latest date how do I do that? How to write the formula for this?

Basically this cell should display customer name for latest date available in data provider.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 02:15 PM

    Create a Flag object =If Date = Max(<date> In Body) In Report Then 1 else 0

    In your cell : = <Customer Name> Where ( Flag = 1 )

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      THere is no LOV because this variable is an aggregate. Also the Where clause wont work in your example as it should be

      =Measure Where (Dimension = unique value)

      As I dont know what kind of objects you have (Dimensions, Measures / Date, Character , Number etc) its difficult to tell you which route to take.

      Another option is to create a table with just the Date object.

      Add a column with = If <Date>=(Max(<Invoice Date> In Body) In Report) Then <Sales Person>

      This will give you the result you after. Place this in the footer of the table, go to format table and fold it. THis now only shows you the footer with your required result. You can hide the Date column or format it so its invisable.