Hello,
I am trying to compare the calculated prices for different rate tables in our billing system. Below are 2 examples:
Table 1
<tbody>
</tbody>
Table 2
<tbody>
</tbody>
Definitions:
Calculated prices are cumulative across different tiers. Example: if the quantity is 50, the calculated prices would be $151 (100 + 2(1) + 1(49)) for Table 1, and $205 (30 + 5(5) + 25 + 4(5) + 15 + 3(30)) for Table 2.
When exported from the billing system, the CSV flattens each rate table into a single row:
<tbody>
</tbody>
Assumptions:
Ideally, I would like to insert a Calculation column which for a given quantity would calculate the price for all rate tables. Any ideas?
Thanks!
I am trying to compare the calculated prices for different rate tables in our billing system. Below are 2 examples:
Table 1
Tier | From | To | Base | Per |
1 | 1 | 1 | $100 | $2 |
2 | 2 | 50 | 0 | $1 |
3 | 51 | 9999 | 0 | $.5 |
<tbody>
</tbody>
Table 2
Tier | From | To | Base | Per |
1 | 1 | 5 | $30 | $5 |
2 | 6 | 10 | $25 | $4 |
3 | 11 | 50 | $15 | $3 |
4 | 51 | 100 | $5 | $2 |
5 | 101 | 9999 | 0 | $1 |
<tbody>
</tbody>
Definitions:
- From, beginning quantity greater than or equal to
- To, ending quantity less than or equal to
- Base, flat price added to total
- Per, price per
Calculated prices are cumulative across different tiers. Example: if the quantity is 50, the calculated prices would be $151 (100 + 2(1) + 1(49)) for Table 1, and $205 (30 + 5(5) + 25 + 4(5) + 15 + 3(30)) for Table 2.
When exported from the billing system, the CSV flattens each rate table into a single row:
A | B | C | D | E | F | G | H | I | ... | |
1 | Table | From(1) | To(1) | Base(1) | Per(1) | From(2) | To(2) | Base(2) | Per(2) | ... |
2 | 1 | 1 | 1 | 100 | 2 | 2 | 50 | 0 | 1 | ... |
3 | 2 | 1 | 5 | 30 | 5 | 6 | 10 | 25 | 4 | ... |
<tbody>
</tbody>
Assumptions:
- Rate tables can have 1-30 tiers
- Approx 8,000 rate tables
- Tiers are identified in the column headings, i.e. From(2) is Tier 2.
Ideally, I would like to insert a Calculation column which for a given quantity would calculate the price for all rate tables. Any ideas?
Thanks!