Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
| Types | Amount | Date |
|---|---|---|
| A | 20 | 10/2/2012 |
| B | 25 | 10/2/2012 |
| A | 50 | 10/3/2012 |
| B | 40 | 10/3/2012 |
| A | 30 | 10/4/2012 |
| B | 60 | 10/4/2012 |
A table with Date as dimension and an expression like sum({<Types='{A}'>}Amount)-sum({<Types='{B}'>}Amount) would give you a table with the difference between A and B per date.
For a load script example see attached qvw.
That depends on what you need to do. If you need that comparison very often (in lots of charts) it would make sense to create the difference between A and B per date in the load script. Otherwise set expression will do fine.
Can you provide solution for both if possible?
A table with Date as dimension and an expression like sum({<Types='{A}'>}Amount)-sum({<Types='{B}'>}Amount) would give you a table with the difference between A and B per date.
For a load script example see attached qvw.
the set analysis is good, but I'd like to know how many days the amount of Type A is greater than Type B.
never mind, I misread what you said... sorry and thanks!