Brand | ModelName | ModelNumber | SalesPrice | Logic | Expected_output |
A | ABC | 123 | 25 | A'Price/A'Price | 1 |
B | ABC | 123 | 30 | A'Price/B'Price | 1.2 |
C | ABC | 123 | 25.4 | A'Price/C'Price | 1.016 |
D | ABC | 123 | 23 | A'Price/D'Price | 0.92 |
E | ABC | 123 | 26 | A'Price/E'Price | 1.04 |
A | DEF | 456 | 50 | A'Price/A'Price | 1 |
B | DEF | 456 | 48 | A'Price/B'Price | 0.96 |
C | DEF | 456 | 55 | A'Price/C'Price | 1.1 |
D | DEF | 456 | 53 | A'Price/D'Price | 1.06 |
E | DEF | 456 | 45 | A'Price/E'Price | 0.9 |
I have this sample data with me i have to calculate ratio as "A'Price/Different brand price" for that particular modelnumber as mentioned in above data.i have also shown expected output above..please help me on it..