This is the Webi Output I am trying to achieve
Percentage of Spend | Cumulative Spend | Minutes before shop closed |
10% | 150,000 | 300 |
20% | 170,000 | 310 |
30% | 190,000 | 260 |
40% | 210,000 | 250 |
50% | 230,000 | 230 |
60% | 250,000 | 210 |
70% | 270,000 | 190 |
80% | 290,000 | 170 |
90% | 310,000 | 150 |
100% | 330,000 | 130 |
The two tables below are the closest I have been able to get to this requirement (transaction ID dimension hidden on the far left column) (ignore cumulative spend and minutes before shop closed values).
I use the runningsum(transaction spend) to work out the cumulative spend and then I divide cumulative spend by overall total spend value in report to get the percentage of spend for each row (transaction id dimension hidden in far left column) - (all these calculations are done in webi)
Percentage of Spend | Transaction Spend | Cumulative Spend | Minutes before shop closed |
3.87% | 231.1 | 231.1 | 544 |
4.97% | 65.8 | 296.9 | 404 |
6.21% | 74.6 | 371.5 | 402 |
8.38% | 129.45 | 500.95 | 310 |
12.32% | 235.75 | 736.7 | 290 |
20.15% | 467.7 | 1,204.40 | 330 |
21.44% | 77.25 | 1,281.65 | 294 |
23.97% | 151.45 | 1,433.10 | 285 |
25.51% | 92.28 | 1,525.38 | 275 |
26.44% | 55.58 | 1,580.96 | 271 |
27.69% | 74.3 | 1,655.26 | 270 |
28.52% | 49.98 | 1,705.24 | 265 |
30.52% | 119.35 | 1,824.59 | 259 |
33.06% | 152.15 | 1,976.74 | 165 |
33.92% | 51 | 2,027.74 | 146 |
35.00% | 64.65 | 2,092.39 | 133 |
35.84% | 50.35 | 2,142.74 | 132 |
36.24% | 24 | 2,166.74 | 126 |
Now I need to select only the rows that have the required percentages I want to report on and then hide all the other rows to give me the output in the first table above after which I need to create a line chart based on the cumulative spend and Minutes before shop closed columns (which by now should only display the 10 rows above)
Transaction Id | Percentage of Spend | Transaction Spend | Cumulative Spend | Minutes before shop closed | |
aa1 | 3.9 | ||||
aa2 | 5 | ||||
aa3 | 6.2 | ||||
aa4 | 8.4 | 10% | 129.45 | 500.95 | 384 |
aa5 | 12.3 | ||||
aa6 | 20.1 | 20% | 467.7 | 1,204.40 | 330 |
aa7 | 21.4 | ||||
aa8 | 24 | ||||
aa9 | 25.5 | ||||
aa10 | 26.4 | ||||
aa11 | 27.7 | ||||
aa12 | 28.5 | ||||
aa13 | 30.5 | 30% | 119.35 | 1,824.59 | 204 |
aa14 | 33.1 | ||||
aa15 | 33.9 | ||||
aa16 | 35 | ||||
aa17 | 35.8 | ||||
aa18 | 36.2 | ||||
aa19 | 37.2 | ||||
aa20 | 38.1 | ||||
aa21 | 39.1 | 40% | 60.72 | 2,339.86 | 88 |
aa22 | 40.4 | 40% | 77.55 | 2,417.41 | 81 |
I got stuck and told the client that the only way to achieve the first block will be to create a new bw cube, perform the calculations and use end routine to only select the values where percentage equals 10%,20% etc. But client want to do this by introducing a universe (I am currently reporting on bex query) rather than them having to change anything in BW.
Any Ideas on how I can still achieve this in Webi will be much appreciated.