Querying on Discounts by Price Type

Published
If you’re an Altru user who needs to go beyond the standard report on discounts being used, I may be able to help. When running your discount report, you may want to break it down a little further and find out how many times a discount is being used for each price type in a given period of time.

Below, I have outlined the steps needed to build a query on discounts by price type.

1. First go to Analysis > Information Library. Click Add an ad-hoc query and select Sales order as the source view.

2. Delete the Lookup ID from the Results fields to display:

discount13. Select Sales Orders on the left side and move the Transaction date field from the middle column to the Include records where: This is where you will enter your date or date range.discount24. Expand Sales Order Item, then select Sales Order Item Discount. Move the Discount name field from the middle column to the Include record where: section. This is where you will select the discount(s) that you would like to analyze.

discount35. Move the Discount name field from the middle column to the Results fields to display: section and click the abc with pencil icon to give this field a friendly display name like “Discount Name.”

discount46. Move the Number of discounts field from the middle column to the Results fields to display: section.
discount57. Select the newly added Number of discounts field in the lower right, then click the icon above and select SUM. Also click the abc icon to give this field a friendly display name like “Number of Discounts.”discount68. The last step is to select Sales Order Item from the leftmost column, then from the middle column, move the Description field to the lower right. You could also give this field a friendly display name as well, such as “Discounted Price Type.”
discount79. Now go to the Preview results tab and take a look.
discount8

Below is an example of what the final query looks like.
discount9

Leave a Comment

Check back soon!

Share: