Joined: 07 Dec 2010
Online Status: Offline
Posts: 4
Topic: zentechinc Posted: 15 Mar 2011 at 12:57pm
Okay, so i am trying to compare two different fields related by a customer number but differentiated by another field. The layout looks something like this:
Ideally, i would like the report to return only those values where consumption (consump) is identified as being High Flow (HF) AND where the high flow consumption is greater than the Low Flow Consumption (LF). In short, it should only return customer number 0000004.
Is there any way to do this?
I have a selection query that works great for listing anything with HF and LF since mxu_id can contain quite a few other things.
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 16 Mar 2011 at 3:33am
well, I would try grouping by cust_no, and sort by mxu_id. Then I would suppress the group/details if the count for the group was 1, or if Next(consump) > consump.
Joined: 07 Dec 2010
Online Status: Offline
Posts: 4
Posted: 16 Mar 2011 at 6:11am
Good advice. Im not in the office today but i will implement it tomorrow.
The problem with the Next Consump > consump is that the High Flow does not always come after Low Flow so i cannot rely on that to consistently output my desired data.
Joined: 07 Dec 2010
Online Status: Offline
Posts: 4
Posted: 18 Mar 2011 at 9:21am
...
DBlank, I love you.
Nah, JK. This is the first time ive had a chance to look at the issue in the past few days but DBlank's post looks promising. Thank you.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum