Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a data set that looks like this:
ID | Exterior_Colour | Interior_Colour
1 | Blue | Grey
2 | Blue | Yellow
3 | Yellow | Yellow
4 | Green | Grey
Etc.
I need to generate a table that looks like this (where the dimension belongs to an independently defined list of "special colours":
Colour | Count of Exterior | Count of Interior
Green | 1 | 0
Grey | 0 | 2
Red | 0 | 0
Yellow | 1 | 2
I thought I could load the list of "special colours" as a separate (unlinked) table, and use it as a dimension in a straight table, but I can't seem to conjure up an expression that recognizes the row value it should correspond to. In Excel this would be the most straightforward thing...Sum(if(Range=Colour_Cell, 1,0)) [Shift+Enter], but in QV this only only seems to work on linked tables.
Is there a way? Will I need to modify the data at the script level?
Thanks,
Joanna.
Thanks. That definitely works. Is it conclusive then, that there is no way to achieve this end via post-load means?