Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab calculated member issue 1

Status
Not open for further replies.

pomster

Technical User
Jan 15, 2003
88
AU
Why did this happen to my crosstab??
ScreenHunter_118_Apr._01_09.57_b5mxxb.jpg


I created the report last week with the two calculated members to the right.

I would have expected March figures to be after February.

The formula for 6 months Avg is:

average([
GridValueAt(currentrowindex, currentcolumnindex-1, currentsummaryindex),
GridValueAt(currentrowindex, currentcolumnindex-2, currentsummaryindex),
GridValueAt(currentrowindex, currentcolumnindex-3, currentsummaryindex),
GridValueAt(currentrowindex, currentcolumnindex-4, currentsummaryindex),
GridValueAt(currentrowindex, currentcolumnindex-5, currentsummaryindex),
GridValueAt(currentrowindex, currentcolumnindex-6, currentsummaryindex)
])



regards,


David

CRXIR2 with CRXIR2 server and SQL 2005
CR2008 with CR2008V1 Server and SQL 2005
 
In the CrossTab Calculated Members expert dialog box there is an option to Insert Evaluation Before or After.

If Before is selected that may explain why it appears with the last month on the end.




Gordon BOCP
Crystalize
 
Thanks Gordon, you pointed me in the right direction.
The insertion formula was looking at a discrete date. Changing it to maximum(date) rectified the issue.

regards,


David

CRXIR2 with CRXIR2 server and SQL 2005
CR2008 with CR2008V1 Server and SQL 2005
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top