Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Logic required for custom report

$
0
0

Hi all,

i get struck in a scenario while developing a report, my scenario is this. I have six variables for date, quantity, km index , Avg  and Text

The situation has been summarized as

 

Doc No          Date              Quantity                    KM Index               Avg.                                                                 Text

20002       01.04.2014          14.880                           2130               (2270-2130/ 14.880) = 9.40                                   ---------

20002       05.04.2014          12.400                           2270               (2410-2270/12.440) = 11.25                                   --------

20002       10.04.2014          13.500                           2410               (2567-2410/ 13.550) = 11.58                                   --------

20002       15.04.2014          12.440                           2567                (2665-2567/12.440) =  7.87                                   --------- 

20002        20.04.2014          13.700                           2665              No Higher Index to be calculated                 Still Running

 

Now if any user wants to see the average calculated in this scenario from 01.04.2014 To 25.04.2014, the average to be calculated as shown above, and if no higher index found for km index, a text should be shown as above, now i am showing these values based on document number, and in the given range of date there may be many document number possible for which i have to show these type of output.

So, please tell me how could i write my code , because what i have written through which i am not getting like shown above.


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>