Retreiving the last amount billed to a customer (dynamically in the Query)

Hi,
I want to retrieve the last amount billed to a customer.
For example :
r/3 data :
Customer____Billing date__Amount
1___________04/04/2006____5000
1___________05/05/2006____1200
2___________03/04/2006____400
The result i would like to get in the report :
Customer___Amount
1__________1200
2___________400
I tried many ways including Key figures agreg. Exception.
Do you have any suggestion ?
best regards,
ludo
Message was edited by: Ludovic Julen
Message was edited by: Ludovic Julen

Hi,
The date of the data loading has no impact on the selection of the last value. In december, you can load the historical data of 2005, 2004 and 2003. The data will be stamped on 2005, 2004 or 2003 (dates of reference from the documents).
So, in your case, the query would give you the first load as a result of the last value. But you are using 0CALDAY in your example. Of course, you would not be able to use 0CALMONTH in such scenario, because you do not bill only once a month.
Now, please notice that the last value is based as well on the execution of the query. Is your query analyzing all december? Imagine that your query is filtered from 01.12.2006 to 14.12.2006, then you get only the second load.
This is a double setting.
Regards
Laurent

Similar Messages

Maybe you are looking for

  • Error while using wsimport

    I am trying to use the wsimport command the following way and get the following error wsimport -Xauthfile authFile.txt "http://myMachine/reportserver/reportExecution2005.asmx?wsdl" [ERROR] Server returned HTTP response code: 401 for URL: http://myMac

  • Keynote defaulting to PowerPoint

    When I try to open a Keynote file, the files always open in PowerPoint even though the default is set to Keynote. How can I make it open each file in the correct program? I've tried to reset the default using the info panel, but it didn't work and th

  • WIFI Problem

    Please help! My wifi just stopped working on my imac. I am getting the message that the wifi has a self- assigned ip address (169.) and will not connect to the internet! Please help..My wifi is working fine with my iphone, ipad and other devices. It

  • Camera coming up as other devices!?

    To anyone! I just bought a Creative Live!Cam Optia. It says u just have to plug it in and it works! No drivers needed!! Well mine doesnt work and it is cominp up on my device manager as other devices with a big yellow question mark and when I go into

  • I have Mac book 15, screen display is hazy, but works fine of external monitor. How Can I correct it??

    I have Mac book 15. MAC OS X Version 10.5.8 is installed with Windows XP dual boot function. My screen display got hazy and blurred, sometimes it is ok, but only in win xp. I have tried it with external LCD, its worked fine, but second screen is stre