I need to create a connections between several tables.
Most of them contains data about consumed quantities of products for different users. And one is Price table. But I cannot link the relationships as the price table does not hold unique values. It's because there are different products and the price is dependant on the amount!
Resource ID Minimum Value EUR
Can you please help me with the best and easy way? Should I remove all the duplicates from Price table, call it Clean Price Table and create Relationships between Cleaned Price table, Full price table ? Then I will be able to link the countries with Cleaned Price table too. But how do I set that IF a customer has had used product e0d5dad9-c5ce-433d-bea3-2b4c699c3d5e with value higher than 99900 and lower than 499900 - the price is returned 0.003801596 and it is returned FOR Country (linked with Clean Price), but takes value from Full Price Table.
Solved! Go to Solution.
Hi @anni ,
I still have a little confused about your senario.
Do you want to create the relationship for your tables?
If it is, please share your data sample and your desired output so that I could have a test on it.
I created one more table with unique data in it.
But I still cannot make the data "loop".
For example I have some product (computer programme f.e.) and it has not been used 24/7 but only 8 hrs. And the payment is only for these 8 hours.
And there is a pricing list that depends on amount of product consumed, f.e. it the product is consumed 0-5 then price is 0.003. If product is consumed 5-10, then price is 0.004. And it is in the table marked as Minimal value.
What I need is to see the pricing client gets, if he has used certain amount of product.
https://www.dropbox.com/s/ifalsxwpqtn967i/sample.xlsx?dl=0 in this sample you can see that I have different products, but I cannot link the price to them, as there are different amounts of use.
And I write a formula IF bigger than 0, "price", IF bigger 5, "price".. I think I will have to rewrite code in case when new prices / minimal values will come in! IS it possible to create some kind of indexing and then set the price?
Will wait for your help. Best, Ani