You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Delete row if match is found with previous row

edited Jun 22, 2017 12:29PM in Reporting & Analytics for B2C Service 5 comments

Content

Hi,

I have a report that brings back incidents and various bits of information. The Incident Reference number will be repeated but I've sorted it in a way where latest is first.

So if I have the first column something like

#101 | Resolved
#101 | Updated
#101 | New

The code below is what I thought would help. However when I run it, I still get the 3rd row showing. Any ideas?

Code Snippet

             global $curr_ref;

if ($rows[0][0]->val == $curr_ref)
{
unset($rows[0]);
}

$curr_ref = $rows[0][0]->val;

 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!