Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: formula to add field horizontal field values Post Reply Post New Topic
Author Message
sanchezgmc06
Senior Member
Senior Member
Avatar

Joined: 21 Jan 2011
Online Status: Offline
Posts: 107
Quote sanchezgmc06 Replybullet Topic: formula to add field horizontal field values
    Posted: 25 May 2012 at 1:17pm
Hi help!
 
I have a report in which i have about 70 fields horizontaly
I need to add the fields in horizontal way
 
example                                                                             Total
0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 1 0 1 1 0 0 0 0 0 0      7
 
once i have my total i also need to count all the clients whom have a total larger than 5
 
 
how do i do this
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 29 May 2012 at 3:53am
I assume this is 70 fields in one row of the DB.
you will have to write one really long formual to add them all together ans that will be your fianl value which you can easily use in the select expert to find >5
//row_total
Table.field1 + Table.field2 + table.field3 + table.field4 .... + table.field70
 
Note that if any of these values could be NULL you will need to make sure that the formual is using defualt values for Null, otherwise the formula will return nothing on any row with any null.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.031 seconds.