Hi all -
New to QV and have spent a while searching; apologies if this has been covered elsewhere.
I have two tables in QV - one with my core Sales metric (a date key and the sales metric); and a second table with date "details" - the date key again, and the actual date, as well as another column that has the "comparable" date.
Example - Date table:
Example - Sales data:
I hope that makes sense. Given that I've communicated the data structure appropriately (unfortunately, not something I have much control over), here's where I run into difficulty.
I'd like to have a table (I guess really it's a Straight Table in QV) that has the CurrDate, along with BOTH the corresponding Current Sales (easy to do for me) and ALSO the Sales on the Comparable Date.
For example, one row of my desired straight table would be:
It's that last column that I just can't calculate. I have played around with set analysis; trying to have Sales where CurrDate=ComparableDate but I can't get the above result.
Any ideas? Is this possible in QV? Any guidance would be great.
Try using the Aggregate function in your chart expressions.
You will need two expressions with aggregate functions to give you your desired result.
Current Sales on CurrDate e.g.
Sales on ComparableDate e.g.
Let me know if this works.