This is what the actual expression for the Points column in this table looks like in Qlik (I am using the sum function with the fields because in the full data set there are multiple different achieved sales in each quarter which need to be aggregated for this calculation):
However, I now want to create a table with the same columns as table 2 but using YTD/aggregated values (except for Allocated Points) from table 1 when calculating the Points column. So I want the table to look like this:
However, this expression is not returning the values that I am trying to achieve. After removing the additional multiplication being done with the Sales Goals, I found that the resulting values were the same as the values in table 2, which means that the set analysis is not working as I intended. Despite specifying the Quarters in the expression, the expression only calculates the values in Points column using the Quarter that is in the Quarter column.
How do I aggregate the values being used in calculating this column while keeping the column split out into a row for each quarter?