I want to put this data into a cross-tab format within the Excel spreadsheet, so that I can use row selectors to make the chart dynamic. So the data would look like this:
Q1 Q2
01 100 200
02 500 70
Can anyone describe how to do this with QaaWS easily?
QaaWs unfortunately outputs only as a vertical table, this is very frustrating when many of what customers want to see we need in crosstab format to display properly with Xcelsius. An easy solution is to use a combination of a crosstab and vlookup in excel.
Please see attached spreadsheet!
In excel map where your raw data is coming in, I’m assuming you will have three columns…Yr,Qtr,Sales. Then in the column left of Yr, concatenate Yr&Qtr. Now you will have a unique lookup value in your raw data.
Next create a crosstab and hardcode your Yr and Qtr values exactly how they will look in the output of your query…you can even code for extra years since vlookup will return only the correct values to your crosstab.
For the vlookup formula simply concatenate the first row(Yr) and first column(Qtr) of your crosstab for your lookup_value in the first cell, this will lookup that unique value that you make in the raw data table. Make sure to include the raw data concatenation column in your table_array. CrossTabExample.xls (15.0 KB)