zab Posted September 4, 2009 Posted September 4, 2009 Hello Folks My brain is melting on this hot friday and I can't find the right way to make this calculation. I have many many products that look like that: id --Name -- Price $ -- Extra 001-- wall 2x4 -- 0.30 002 -- partition -- 0.50 (...) 097 -- wall 2x6 -- 0.45 -- .15 What I want is to find the PRICE difference between id 097 and ID 001 and put in in the extra field. Price Id 097 - price Id 001 = .15 How can I do this? I tried with filterValues, and Get(field) .... : I will have many other to do so I guess I'm gonna start with a Case function. The goal is to offer two plans, with one kind of value (wall) and offer a better option and show only the difference of price to pay. Of course this will be later multiplied by a quantity (per inches), Put in a portal etc. Thank you.
Brent Durland Posted September 10, 2009 Posted September 10, 2009 So, you have a set of records, and you want to show the price difference between the last one and the first one? If that's the case, you can use GetNthRecord for that. Use something like this: Price - GetNthRecord ( Price ; 1 ) This would always compare the current record to the first one, so if the price for the first record is 10 and the price for the last record is 15, this field in the last record would be 5.
Recommended Posts
This topic is 5612 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now