Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Selecting amounts

Selecting amounts

Selecting amounts

I have records as below

claimline  claimid   benededuct    maxoutaccrual   Lifetimeaccrual    date
1          81813        100           25             225              24-08-08
2          81813         0            25             325              27-08-08
3          81813R1      -100          -25            -325             02-09-08

Here records with claimid where R1 is present are reveresal claims

i need to determine the last claim line by finding the most-recent claim date and the highest claim line number .  If lifetimeaccrual is zero or negative, need to work back to the next-highest claim line number.  If all lines on the claim have zero or negative lifetimeaccrual amounts, again work back to the next-most-recent claim date and start again with the highest-numbered claim line.

we can select max(claimline) and select Lifetime but if amt is -ve or zero what is the function where we can get back to next highest claimline and date????

Thanks in advance


RE: Selecting amounts

I don't know how you can do this in PowerCenter. It's not designed to back up.

"I think we're all Bozos on this bus!" - Firesign Theatre jester

RE: Selecting amounts

Don't know if it will suit your needs, but the rank transformation is the one that will provide you with (multiple) hierarchies in your data. In your case you may need to use a multi-pass approach. Check out the documentation on this transformation. I have worked miracles with it in the past!

Ties Blom

RE: Selecting amounts

i have filtered maxout and Lifetime amounts in Exp record by record by applying condition
maxout!=0 and maxout!=-maxout
and similar conditions to Lifetime

Now passed to Agg t/r
where i need to check max date and max claimline and select maxout at that point where date and claimline is max value.

In agg if i apply a condition like IIF(date=max(date)and claimline =max(claimline),maxout,0)

But result of this is coming as value "1.00" but value there is "10234.84"


RE: Selecting amounts

I think you need to look up how a condition works in a aggregate expression. Your syntax looks way-off

Ties Blom

RE: Selecting amounts

Atlast i have resolved the issue

I have filtered all the zero and negative values in exp,and selected Last(amount)

Thanks for support

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close