Hi,
I have two queries where I Match 2 fields (Cancel & Change) these fields are a concatenation of
Query 1: RefNo, ID, Date, City, Cancel (Concatenated Field “RefNo;ID;Date)
Query 2; RefNo, ID, Date, City, Cancel (Concatenated Field “RefNo;ID;Date), more fields
Both queries bring distinct results from different tables:
Query 1: 50 results
Query 2: 25 results
Equal Concatenations 11 results
I created two detail variables from the Merged Field (Cancel & Change), the aim is to count the number of records “RefNo” where the concatenated fields are equal, so I build variable as
=COUNT(RefNo) WHERE(Cancel=Change;(Cancel;Change))
But it gives me the wrong results for some reason I get the total number of records from the query 1 “50”
Created a new variable “v_Compare”: =IF(Cancel=Change) Then 1 Else 0
Using this variable in the Filter do not change the results in the table,
however if I add the “v_Compare” variable in a new column the totals change to the correct volume (11)
What am I doing wrong here?
“Any help and All help is appreciated”
Using: SAP BusinessObjects BI Platform 4.3