Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Combine two record selection criteria to a formula Post Reply Post New Topic
Author Message
DTejadaD
Newbie
Newbie


Joined: 30 Aug 2013
Location: Bolivia
Online Status: Offline
Posts: 2
Quote DTejadaD Replybullet Topic: Combine two record selection criteria to a formula
     Posted: 11 Sep 2013 at 3:59am
Hi to all,

I am struggling to make a report combining two diferents record selection criteria to a single report, and I can not find how to do it.

Report 1 (Loans)
1) Record selection: {envases.DC_CODE} in ["EV", "EX", "NR"]
   Formula Fields: {envases.MV_QTY}

Report 2 (Returns)
2) Record selection: {envases.DC_CODE} in ["DV"]
   Formula Fields: {envases.MV_QTY}

My goal is to substract the {envases.MV_QTY} form Report 1 minus Report 2 in one single report or (Loans - Returns).

I would be very thankful for the help.

Kind Regards,

Daniel T.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Sep 2013 at 5:00am
Record selection: {envases.DC_CODE} in ["EV", "EX", "NR","DV"]
create a  formula field
if {envases.DC_CODE} in ["EV", "EX", "NR"]  then {envases.MV_QTY} else {envases.MV_QTY} *(-1)
sum that.
IP IP Logged
DTejadaD
Newbie
Newbie


Joined: 30 Aug 2013
Location: Bolivia
Online Status: Offline
Posts: 2
Quote DTejadaD Replybullet Posted: 11 Sep 2013 at 11:07am
WOW Perfect! Thank you very much.
IP IP Logged
Printable version Printable version

Forum Jump
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