Hi,
I have the following data being returned from a Query:
Rolling quarter | Fiscal Quarter |
---|---|
-1 | 201601 |
-2 | 201504 |
-3 | 201503 |
-4 | 201502 |
-5 | 201501 |
-6 | 201404 |
-7 | 201403 |
-8 | 201402 |
-9 | 201401 |
-10 | 201304 |
Now this data can change, though the range will be consecutive.
What I want is to get Fiscal quarter where the Rolling qtr is Max of whatever rolling qtr is coming here.
So I have a variable:
var_Max_Roll_Qtr = Max(Rolling quarter)
And I have another variable that is going to pick the Fiscal Quarter based on the maximum rolling quarter, I will consider this Fiscal quarter to be my Base Quarter.
var_Current Quarter =Fiscal Quarter Where (Rolling Quarter = var_Max_Roll_Qtr)
Now I have made sure that these dimensions are not merged with any other dimension in the report.
But whenever I choose the variable var_Current Quarter, I get the error #MULTIVALUE, whereas it should return 201601.
The var_Max_Roll_qtr is giving the correct value of -1.
Am I missing something?
Regards
Pratiksha