We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,394 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Crystal Reports

hi guys,

i have a crystal report the display all transactions done, even the ones that are deleted, and there is a flg to know which ones are deleted.

i need to make a formula to calculate the sum of cash, the problem is that i dont know how to add a where condition not to add the deleted transactions to the totals.

i wrote this in the formula editor

Sum ({Transactions.Trans_Cash})

but this adds also the deleted ones. how can i ignore them. Transactions.Trans_delete_flg

thank you for the help

2
Contributors
1
Reply
11 Hours
Discussion Span
9 Months Ago
Last Updated
2
Views
Commando123
Newbie Poster
23 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

you can make a view like this

select i.invoiceNo , (i.amount) as Amount
from invoices i 
where i.IsDeleted = 0 
union all
select i.invoiceNo , 0 as Amount
from invoices i
where i.IsDeleted = 1

and use this view in your report . this and then just add summary at the end of report of column Amount.

Regards

M.Waqas Aslam
Master Poster
748 posts since Aug 2011
Reputation Points: 50
Solved Threads: 122
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0601 seconds using 2.64MB