Good afternoon, I am attempting to create a query that will compute the total $ amount based on the number of pages that were printed. I am including pictures to simplify the understanding of what I am attempting to accomplish as my tables are more complex and will just add to the confusion. I think I am using the wrong expression in the wrong place or am missing something else?
My table consists of price, Tier Low and Tier High.
First query calculates the number of documents grouped by the number of pages printed.
Second query pricing matrix based on the number of pages printed and product type.
So far so good. My problem, When put them together and try and calculate based on the number of pages printed in the product type, it only choses the first row of pricing and is not accurate.
I have used the between expression:
Not sure what I am missing. Any insight would be useful. Thank you