Hi All,
Could you please help me on below mentioned scenario:
Query1: BEx query and it has below data:
Dim1 | Qty1 |
P1 | 10 |
P2 | 20 |
P3 | 30 |
P4 | 15 |
P5 | 25 |
P6 | 35 |
Q1 | 60 |
Q2 | 75 |
Query2: Excel sheet and it has below data:
Dim2 | Qty2 |
P1 | 5 |
P2 | 15 |
P3 | 25 |
P4 | 30 |
P5 | 40 |
P6 | 50 |
Expected Result is:
Dim | Qty1 | vQty2 |
Q1 | 60 | 45 |
Q2 | 75 | 120 |
I have merged queries on common objects Dim1 and Dim2. Also created variable vQty2
=if(Dim1=Q1;sum(Qty2) where (Dim2 inlist ("P1";"P2";"P3"));if(Dim1=Q2;sum(Qty2) where (Dim2 inlist ("P4";"P5";"P6"))))
It is displaying correct results only.
Dim1 | Qty1 | vQty2 |
P1 | 10 | |
P2 | 20 | |
P3 | 30 | |
P4 | 15 | |
P5 | 25 | |
P6 | 35 | |
Q1 | 60 | 45 |
Q2 | 75 | 120 |
But when I create filter (Dim1) on table to restrict quarters Q1,Q2 (as I need only Q1 and Q2) then variable (vQty2) is displaying blank.
could you please help me to achieve below expected results:
Dim | Qty1 | vQty2 |
Q1 | 60 | 45 |
Q2 | 75 | 120 |
Thank you,