Tenou
February 7th, 2007, 10:25 AM
Ok, I've been trying to work this one out for the past 2 and a half hours. I guess my proff meant it when she said that math skills were a must. Too bad I didn't believe her.
Ok, my problem: I have to find the total dollar amount of orders placed... the catch? The discount. So, I've tried
Order Total:[Selling Price]*[Quantity]-[Discount]
I double checked that Discount is a percentage; yes it is, but try Discount/100... which gives me 0.0005 instead of 0.05. So I know that on some level, it's recognized as percent. But it's still not working, still doesn't pick up Discount as a percent... I don't know why.
I created a new field where discount is shown as a fraction (so obviously DB knows it's a percentage, it just won't let it function as percentage.)
So I tried
Order Total:[Selling Price]*[Quantity]-[discountpct]
That's not working. For some reason it's adding the discount instead of subtracting to the total cost.
So, I figure if doing -[discountpct] adds the discount, then +[discountpct] should subtract it. No, it doesn't. It doesn't change anything, it's as if that's not even in there.
So then I started sticking in random functions in hopes something would work. Nothing's working.
Can someone please give me a hint how to do percentage? Please for the love of god, I don't understand... I'm an Arts student; the left side of my brain has atrophied.
Ok, my problem: I have to find the total dollar amount of orders placed... the catch? The discount. So, I've tried
Order Total:[Selling Price]*[Quantity]-[Discount]
I double checked that Discount is a percentage; yes it is, but try Discount/100... which gives me 0.0005 instead of 0.05. So I know that on some level, it's recognized as percent. But it's still not working, still doesn't pick up Discount as a percent... I don't know why.
I created a new field where discount is shown as a fraction (so obviously DB knows it's a percentage, it just won't let it function as percentage.)
So I tried
Order Total:[Selling Price]*[Quantity]-[discountpct]
That's not working. For some reason it's adding the discount instead of subtracting to the total cost.
So, I figure if doing -[discountpct] adds the discount, then +[discountpct] should subtract it. No, it doesn't. It doesn't change anything, it's as if that's not even in there.
So then I started sticking in random functions in hopes something would work. Nothing's working.
Can someone please give me a hint how to do percentage? Please for the love of god, I don't understand... I'm an Arts student; the left side of my brain has atrophied.