on 05-29-2014 10:11 AM
Hello,
I am creating analytic view in sap hana. The problem i am facing is while creating calculated column in analytic view. I want to create two calculated columns in one analytic view (not sure if it's possible). I am able to create one calculated column but when creating the second one it's taking the expression syntax of first column and joins it with the second column. For example:
First calculated column has the following expression: "table_column_name" = 'value1'
Second calculated column has the following expression: "table_column_name" = 'value2'
Both the columns are aggregate and are of measure type.
But when executing the analytic view it's taking the condition for the second calculated column as:
"table_column_name" = 'value1' and "table_column_name" = 'value2'
Is there any other-way to add more than one calculated column.?
Any suggestions?
Thanks,
Unnati
Hi There,
You can have any number of calculated columns.
Can you share the snapshots of your definitions.
Regards,
Krishna Tangudu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
Please find attached the screenshots:
http://screencast.com/t/OEkli5eC
http://screencast.com/t/BKlpex3il
Both the links have individual calculated columns but the value of the condition column is different.
DEVICE column has 2 different values i.e mobile/desktop
i want to get two columns with the total of mobile and desktop .
Didnt get what you are trying to do.
You kept Device = 'Mobile'
So if Device = 'Mobile' then what do you want to do ?
So you should keep some formula like this:
IF( "Device" = 'Mobile',TRUE_CONDITION,FALSE_CONDITION) or
IF( "Device" = 'Mobile',TRUE_CONDITION,IF( "Device" = 'Mobile',TRUE_CONDITION,FALSE_CONDITION))
Regards,
Krishna tangudu
Hi,
Can you please provide any example code for using two analytic views in calculation view to display data from both the analytic views.
I have created 2 analytic views with two different conditions as i stated above. They are returning the result correctly. Now i want to fetch the details from both the analytic views in one calculation view.
Hi Krishna,
I can't find "Multidimensions Reporting" in "Semantics". Refer the screencast for the same.
http://screencast.com/t/5NrwCkDFM
Also is it necessary to have count?
Please refer the screencast for the result my analytic views are giving:
http://screencast.com/t/D3E2t8JMIhx
I want the final result in this form as in screencast:
http://screencast.com/t/FmYaookGCDLD
Thanks
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.