Hi,
I have this table ... this is a part of millions of records.
I have functions that show if STAT is 1 or 0, if type is E, if type is CA. This example shows that the same work 24188686 has one E and two CA. If I filter columns I can see either E or CA from the same work.
I would like to have some formula in the column COMBINE that would check in the first row : if type CA = 0 then check if there are CA's with the same WORKREF as E and if true return value 1.
The same approach for rows where E =0 to check if there are E's with the same WORKREF as CA and return value 1.
The idea is that then I can sum these four columns and filter column TOTAL to show all values =3.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]WORKREF[/TD]
[TD]STAT[/TD]
[TD]TYPE[/TD]
[TD]IF STATE =1[/TD]
[TD]IF TYPE = E[/TD]
[TD]IF TYPE = CA[/TD]
[TD]COMBINE[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]E[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]CA[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]CA[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]445566[/TD]
[TD]0[/TD]
[TD]CA[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hope that make sense.
Any suggestions would be much appreciated!!!
Thanks,
A
I have this table ... this is a part of millions of records.
I have functions that show if STAT is 1 or 0, if type is E, if type is CA. This example shows that the same work 24188686 has one E and two CA. If I filter columns I can see either E or CA from the same work.
I would like to have some formula in the column COMBINE that would check in the first row : if type CA = 0 then check if there are CA's with the same WORKREF as E and if true return value 1.
The same approach for rows where E =0 to check if there are E's with the same WORKREF as CA and return value 1.
The idea is that then I can sum these four columns and filter column TOTAL to show all values =3.
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]WORKREF[/TD]
[TD]STAT[/TD]
[TD]TYPE[/TD]
[TD]IF STATE =1[/TD]
[TD]IF TYPE = E[/TD]
[TD]IF TYPE = CA[/TD]
[TD]COMBINE[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]E[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]CA[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]24188686[/TD]
[TD]1[/TD]
[TD]CA[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]445566[/TD]
[TD]0[/TD]
[TD]CA[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hope that make sense.
Any suggestions would be much appreciated!!!
Thanks,
A