Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Incorrect result in Aggregate Function.

$
0
0

Hello Folks,

 

We are using aggregation function in an calculation view which is build on an analytical view using sql script which is as follows -:

 

    var_out = select count(*) as "Notif_Id","Fiscal_Year_Week_Name"
   from "_SYS_BIC"."system/AN_WARRENTY"
   group by  "Fiscal_Year_Week_Name";

 

 

which is giving result as -:

 

Capture.PNG

 

 

But when we check result in analytical view for confirmation it gives the following result -:

 

Capture2.PNG

 

These are the distinct values in analytical view,whereas since data is same for both the views we should get the same result (Refer picture 1 and picture 2 ) while running both the views but we are getting the different result.

 

For FY08W30 and FY08W01 we have Duplicate Notif_Id but in when we run the calculation view it gives FY08W25 as Count 2.

But we want result as FY08W30 = 2 and FY08W01 = 2. which we are not getting.

 

Please help where we are going wrong.

 

Thanks

 

Ashutosh


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>