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

Re: Average In CrossTab Report

$
0
0

hello A Beepster,

 

the formula you are using will display the value for the first group if the cross-tab is at the beginning of the report. when you're using crosstabs, you have to use the crosstab specific functions in order to find the value at the current row / column index or intersection.

 

to fix this, right click on one the cells for AvgFare and choose Format Field > Common tab > Display String...insert this...

 

if GridValueAt (currentrowindex, currentcolumnindex, currentsummaryindex -2) <> 0

then

totext(GridValueAt (currentrowindex, currentcolumnindex, currentsummaryindex -1)/GridValueAt (currentrowindex, currentcolumnindex, currentsummaryindex -2))

 

this is assuming that you're using cr 2008 or higher as you didn't specify which version you're using. these functions were new for cr 2008.

 

-jamie


Viewing all articles
Browse latest Browse all 10313

Trending Articles



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