on 2016 Jun 23 3:12 PM
Hi,
One of the user running WebI report created on Universe which is on HANA CV and during one of the testing process , we found out that number of rows between CRM query(SQL Query) (Which is source) is less when compared with HANA view.
I did checked the Staged table in HANA and it is also giving me matching results when compared with the source but not Analytical view or Calc view.
Just a filer was applied at ETL side on table but nothing at view side.
Little confused and lost why the result set has the discrepancy.
Any thoughts or advices are appreciated.
Thanks,
Jothi
Hi,
As per my understanding, The Issue is,
Staging Table has less no of rows and
The Analytic / Calc view which is created on top of this staging table has more no of rows.
In Analytic / Calc view,
Have you joined this Staging Table to any other Table.
If Other Table has duplicate entries, Then your final view output would have more rows.
Example:
Staging Table has 3 rows.
Staging Table | |
ID | VALUE |
1 | 100 |
2 | 200 |
3 | 300 |
Table_B has 3 rows and The Values (ID=1) are getting duplicated.
TABLE_B | |
ID | DESC |
1 | A |
1 | A1 |
2 | B |
3 | C |
In Calc View, Staging Table joined with TABLE_B by ID Column via Left Outer Join.
Then the Final Calc View Output will have 4 rows but Staging Table has 3 rows only.
CALC_VIEW_OP | ||
ID | DESC | VALUE |
1 | A | 100 |
1 | A1 | 100 |
2 | B | 200 |
3 | C | 300 |
Regards,
Muthuram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the reply,
Staging table is giving me right amount of records when compared with Analytical and Calculation view.
Ex: For one location:
There is a filter on one of the staging table and we can assume that might be the reason for the row discrepancy but not sure why the records are different in Analytical and Calculation views.
Btw, the joins are all referential.
Please share your thoughts.
Thanks,
Jothi
Hi Muthuram,
Yes, there is referential join but dont see any distinct records condition on the join?.
I tried creating a new universe using those staging table using left outer joins and tested with real data in prod.
Do you suggest to revisit those joins on Analytical view?.
Please advice
Thanks,
Jothi
Hi ,
Referential join acts as inner join if we take fields from both join tables which might lesser your result records.
if no field taken from right table then it will get all records from left table.
Do one thing copy view and change to left outer join and check the count. or take only left table fields in slq console and count them.
I hope it helps you
Thanks,
Ramesh
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.