Hi everyone,
I'm looking for a little help writing a report. I have a database that looks at inventory and for every change to a product, there is a new line (ie prices change). Therefore there can be multiple lines for the same product. However, all I care about is the first time that product is listed in the database. I have the report grouped by product and I'm trying to figure out how to only display the original price of the product (ie the first time the product was listed in the database) per product and then sum up the prices.
I've found that I can use the "minimum" part of the summary to get the first line per product (I get the minimum ID). However, I'm having trouble getting a summary of each of those minimum product's prices. Does anyone have any ideas? Here's an example:
Product 1 Id: 1 Price:$50
Product 1 Id: 2 Price:$100
Product 2 Id: 3 Price $75
Product 2 Id: 4 Price $30
I can get this:
Product 1 Id: 1 Price:$50
Product 2 Id:3 Price: $75
But can't figure out how to sum up product 1 and product 2.
I'm looking for a little help writing a report. I have a database that looks at inventory and for every change to a product, there is a new line (ie prices change). Therefore there can be multiple lines for the same product. However, all I care about is the first time that product is listed in the database. I have the report grouped by product and I'm trying to figure out how to only display the original price of the product (ie the first time the product was listed in the database) per product and then sum up the prices.
I've found that I can use the "minimum" part of the summary to get the first line per product (I get the minimum ID). However, I'm having trouble getting a summary of each of those minimum product's prices. Does anyone have any ideas? Here's an example:
Product 1 Id: 1 Price:$50
Product 1 Id: 2 Price:$100
Product 2 Id: 3 Price $75
Product 2 Id: 4 Price $30
I can get this:
Product 1 Id: 1 Price:$50
Product 2 Id:3 Price: $75
But can't figure out how to sum up product 1 and product 2.