on 10-10-2012 4:36 PM
Hi,
i have DSO table from BW on HANA, and i want to create an Analytical View in HANA Studio. A simple representation of the table is:
CALDAY | FILIAL | FILIAL CLUSTER | REGION |
---|---|---|---|
20110701 | 0001 | 1 | 0000010 |
20110702 | 0001 | 2 | 0000800 |
20110702 | 0002 | 1 | 0000010 |
20110703 | 0003 | 3 | 0000020 |
The table has about 1.400.000 rows.
i want to calculate the measures:
M1 = Amount of Filial per Filial Cluster ( example: M1= 2, if cluster=1, M1=1 if cluster=2...)
M2= Amount of Filial per Region (example: M2= 2, if rerion=0000010...)
The columns are defined as VARCHAR
I tried to calculate the measure, but there is no Aggregation type COUNT (sum works only with INT type)
Does anybody have any idea ?
Or should i create a calculation view with sql script instead?
Regards,
Vjola
Hi Vjola,
In Calc view there is an option to create Counters. You can define the Counter Key Figure with "Count Distinct" aggregation type and select the attribute by which you want to take the count.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vjola,
Is this just a simple analytic view without any joins on attribute views / tables. The Invalid view shows that the view is not active. You mentioned that there was no issue with validation and activation of the Analytic view and even there is no grey icon next to the view in Content.
Can you please try to select some data from the Analytic view using SQL statement like
SELECT "RT_LOCATIO" from "_SYS_BIC"."ehg-test/FCLUSTER_POS_JOIN" group by "RT_LOCATIO";
Please check and correct the syntax to use the proper column names.
Regards,
Ravi
Hi,
it comes an error :
insufficient privilege: Not authorized: line 1 col 35 (at pos 34)
which privilege do a need?? is there any specific privilege to read BW tables ?
I can see he table content with SELECT * from "SAPBW3"."/BIC/AAAAD_CLT00" but in a view didn't work.
i have already given to my user lot of privileges. SYSTEM user has also no privilege for this statement.
Regards,
Vjola
Hi Vjola,
Can you please check if the _SYS_REPO user has privs to access the schema. Please refer to the following threads on data access issues.
http://scn.sap.com/thread/3153367
http://scn.sap.com/thread/3202647
Hope this helps.
Regards,
Ravi
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.