Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Topic: Suppressing data Posted: 01 Feb 2017 at 8:27am
I have a scenario where I have to suppress the entire row based on a condition. I'm not sure how to write that but posting it here for some assistance.
Here is the data and want to bring only those records if the reversal happened on the same Date. For Example
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 03 Feb 2017 at 6:03am
maybe this...
NOT
(
table.policy = next(table.policy) and
table.AgentID = next(table.AgentID) and
table.Reversalcode = next(table.Reversalcode) and
(table.Amt + next(table.Amt)=0
)
or
(
table.policy = Previous(table.policy) and
table.AgentID = Previous(table.AgentID) and
table.Reversalcode = Previous(table.Reversalcode) and
(table.Amt + Previous(table.Amt)=0
)
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 03 Feb 2017 at 9:45am
based on your description I would say you need the date included as it is a key requirement.
Basically all you are doing is comparing the current row value to the next row value and trying to create the full scope of conditions in that comparison for when you should show or hide the entire row.
I suggested using both Next () and Previous() comparisons because you always want to show the 'pair' of rows.
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