Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Formula not calculating properly
Oldest Post First
Newest Post First
Author
Message
th3strikes
Newbie
Joined: 27 Mar 2017
Location: United States
Online Status: Offline
Posts: 1
Topic: Formula not calculating properly
Posted: 06 Jan 2023 at 6:55am
If this formula = 2
if({V_LMINVTRY_MANUFACTURED.CUSTOMER} Like '*Customer*') and(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY} then
((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3
else if(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY}
then((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3
else 2
Inserting +2 = 4
if({V_LMINVTRY_MANUFACTURED.CUSTOMER} Like '*Customer*') and(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY} then
((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3+2
else if(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY}
then((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3
else 2
Why does inserting *2 = 3 when it should be 4?
if({V_LMINVTRY_MANUFACTURED.CUSTOMER} Like '*Customer*') and(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY} then
((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3*2
else if(((3600/{STANDARD.CYCLETM})*{PARTNO.STDCAV})*3) >={V_LMINVTRY_MANUFACTURED.QUANTITY}
then((3600/{STANDARD.CYCLETM} *{PARTNO.STDCAV})/({V_LMINVTRY_MANUFACTURED.QUANTITY}))*3
else 2
IP Logged
hilfy
Admin Group
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 01 Feb 2023 at 9:49am
Why not use *6 instead of *3*2?
Proviti, Data & Analytics Practice
www.protiviti.com/US-en/data-management-advanced-analytics
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.033 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.