Hi Experts,
We are facing issue data issues in graphical calculation view.Duplicate records are omitted in the projection node.
We are using one calculation view into another one. CalculationView (CV1) has the detailed data which we are aggregating in CalculationView(CV2).
CV1 view gives the output as 3 records for a particular filter, but when projected in CV2(projecting only few columns) we get only 2 distinct records. The other identical record is omitted which is resulting in wrong aggregation of data.
When debugged the CV1, we observed the issue is while using inner joins in CV1. Below is sample of the join:
Table A :
| ColA1 | ColA2 | ColA3 | ColA4 | ColA5 | Measure1 | Measure2 |
| A11 | A12 | A13 | A14 | A15 | 10 | 20 |
| A31 | A32 | A33 | A34 | A35 | 20 | 30 |
Table B: (Output of another Calculation view which is used in the join)
| ColB1 | ColB2 | ColB3 | ColB4 | ColB5 |
| A11 | B12 | B13 | B14 | B15 |
| A11 | B12 | B13 | B14 | B25 |
| A31 | B32 | B33 | B34 | B35 |
We have used inner join between ColA1 and ColB11 with cardinality as blank.(Even tried with cardinality n:m)
The output of the join node is:
| ColA1 | ColA2 | ColA3 | ColA4 | ColA5 | ColB2 | ColB3 | ColB4 | ColB5 | Measure1 | Measure2 |
| A11 | A12 | A13 | A14 | A15 | B12 | B13 | B14 | B15 | 10 | 20 |
| A11 | A12 | A13 | A14 | A25 | B12 | B13 | B14 | B25 | 10 | 20 |
| A31 | A32 | A33 | A34 | A35 | B32 | B33 | B34 | B35 | 20 | 30 |
But if i select few columns (executed SQL script in SQL console at the particular node), we notice only distinct records:
| ColA1 | ColA2 | ColA5 | ColB2 | ColB3 | ColB4 | Measure1 | Measure2 |
| A11 | A12 | A15 | B12 | B13 | B14 | 10 | 20 |
| A31 | A32 | A35 | B32 | B33 | B34 | 20 | 30 |
Whereas we expect all the records, even duplicate ones. The output of this node is sent to higher nodes of the calculation view and many other business logic is applied.
Are we missing anything here?
Any help is greatly appreciated.
Thanks in advance.
Regards,
Priyanka