on 05-04-2011 2:14 PM
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.
Create a Flag object =If Date = Max(<date> In Body) In Report Then 1 else 0
In your cell : = <Customer Name> Where ( Flag = 1 )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.