04-12-2013 06:15 AM
course class user score post forum quiz assign main group
In this example if we see the third and fourth column has all zeros. i want to know which row has all zeros and which has atleast one value.
Any help please
04-12-2013 07:15 AM
Here is a simple flagging in a dataset. If you just want a dataset of the ids you could just keep those variables.
flag = 1 + sum(score, post, forum, quiz, assign, main, group);
if flag = 1 then output;
If you want to just produce a report you could use sql;
select course, class, user
(1 + score + post + forum + quiz + assign + main + group ) as flag
where calculated flag = 1
Just some thoughts, hope it helps!
04-12-2013 07:30 AM
FOUND_VALUE_FLAG=sum(of SCORE--GROUP) ne 0;
provided the values can only be positive.
Otherwise something like
FOUND_VALUE_FLAG=lengthn(compress(cats(of SCORE--GROUP),'0.')) ne 0;
will take care of any real number.