Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Return only one value Post Reply Post New Topic
Author Message
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Topic: Return only one value
    Posted: 30 Jan 2018 at 7:40am
Hello,

I'm building a report on pricing for our products.

We have price breaks, which is screwing me up.

I only want the price that matches (or less than) the qty break.

the first qty field is {PTORDER_REL.REL_QUAN}

the qty break field is {ARINVT_BREAKS.QUAN}

the price that is attached to the qty break field is {ARINVT_BREAKS.QPRICE}


So let's say the qty breaks ({ARINVT_BREAKS.QUAN}) are:
qty 100 --> $1
qty 1000 --> $0.75
qty 5000 --> $0.50


If my PTORDER QUAN is 2500, I want the price field to only return $0.75 (vs listing all three prices causing duplicates) because it's more than 1000 but still less than 5000.

I hope my question makes sense. if not, I will answer any questions arise from this.

But I really need help
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 31 Jan 2018 at 6:53am
you could try and add it to a join condition
IP IP Logged
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Posted: 02 Feb 2018 at 9:41am
How do I do that?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 Feb 2018 at 2:28am
can you write a command or store procedure as your data source?
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.000 seconds.