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

Re: Having trouble referencing row number in computed field

$
0
0

Ack! Sorry, Paul. I should have looked a bit harder at what you were doing. Just spent a minute or two playing with this. How about:

 

In the group header band create a computed field that contains

   

     time(string(min(starttime for group 1),"hh:mm"))

 

and call it "minstart". Create another one called "maxend" that contains

 

     time(string(max(endtime for group 1),"hh:mm"))

 

then the "Duration" computed field becomes

 

     string(int(secondsafter(minstart,maxend)/3600)) +":"+

     string(int(mod(secondsafter(minstart,maxend),3600)/60),"00")

 

. Drag the min and max out of view and it looks OK (PB 11.5.1 btw).

 

You could probably do it all in one expression but it would be way ugly and life's too short

 

HTH, Paul


Viewing all articles
Browse latest Browse all 10665

Trending Articles



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