on 2008 Apr 16 6:44 PM
Hi,
I have a date field which holds many values for a combination. Now in my report, I need to show only the last/latest date value! Please help.
Hi Madhu,
If you want to display the latest date value then add a new selection for a structure in the rows in query designer and select your date. Now, go to the properties of the selection and change the value for "Calculate single value as" to Maximum. I hope you will get the latest value for this characteristic in the result.
Regards,
Patil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Madhu,
I created one report which displays the result as shown below:
______________________________
Date______________ Net sales
______________________________
7/12/2007__________696.00 EUR
11/14/2007__________44.07 EUR
12/3/2007__________130.61 EUR
______________________________
12/3/2007___________870.68 EUR
______________________________
The result row shows the recent date and total amount.
Follow the below setting for getting the output:
1. Add the date in the rows and hide the date in the properties. Restrict this data with from 01.01.1900 and to 01.01.2999. (This selection is to display only the records which are not empty).
2. Create a Calculated keyfigure with a new formula variable with the below mentioned settings:
Processing type: Replacement path.
Characteristic: DATE.
Replaced by: Key.
3.Drag and drop your new calculated key figure in the Columns. Change the properties for "Calculate result as = "Maximum"".
4. Drag and Drop your quantity key figure into the columns. Change the properties for "Calculate Result as = "Maximum"".
The above setting will display the result as specified above.
I hope this will resolve your issue. If you have any further concerns, let me know.
Regards,
Patil.
Hi Patil, I like your solution. Very smart.
I have the similar requirement in my report. The difference is that I want only display the lastest date and associated sales, not like what you did in the results row. Basiclly, the report display only one row, the lastest sale figures and date. Is there a way to do it? Thanks!
Tim
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.