Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a table like this

HTML
slip_no    Productname     Price
  1         Addidas        1500
  2         Bata           1000
  3         Bata           1000
  4         Reebook        1200
  5         Reebook        1200



I need to show this table in crystal report like this

HTML
Product Name   total Price
Addidas          1500
Bata             2000
Reebook          2400 


I want to show product name with no duplicate value and add price column in group for example all addidas product price will add all bata price will add and show.

I use groupnamefield for productname and its work but not for price ...
sorry for my bad english Hope you understand
Help me plz.
thanks in advance
Posted
Updated 31-Aug-13 0:01am
v2

1 solution

set formula filed sum({Product name(Groupid),Price))
 
Share this answer
 
Comments
varuncodee 31-Aug-13 6:25am    
when i try this formula i get error ..it says "a number field or currency field is required here"
even Price field is number field.
manikjeyam 31-Aug-13 6:31am    
1.Check this first Price filed is a integer file or varchar filed
2.If this correct mean
check ur formula filed
sum({ur groupid},pricecolun)

varuncodee 31-Aug-13 6:53am    
thank you soo much for d reply :)
i use this formula
sum(GroupName ({SellProduct.P1Name}),{SellProduct.Price})

my price field is integer .. but when i got error "a number field or currency field is required here" The "GroupName ({SellProduct.P1Name})" field got highlighted and this "GroupName ({SellProduct.P1Name})" field is string ..
manikjeyam 31-Aug-13 6:56am    
Ok you save Produt id replace proct name Product id I mean
Example
Producid product Name
1 addidas
you group with product id only not product name
varuncodee 31-Aug-13 7:33am    
sorry but how can i use productid as group because i use productname as group so value will not repeat ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900