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

How to create Dynamic Calculation Views?

$
0
0

Hi Experts,

 

I am working on a use case where i need to create dynamic views on the run.

 

Scenario : User selects data for age>65 and applies filter on the same data whose visited the doctor >5 times this month.

 

In this case we have two views age>65 and then >5 times visit.

 

similarly i have more than 1000+ filtering scenarios.

 

First question:

 

1. What is the best approach to deal with this situation?

 

2. I found that there is a calculation view approach that can be used since CACHE mechanism is also required in this :

    

EXEC 'CREATE CALCULATION SCENARIO "SchemaName"."View_Name" USING ''<?xml version="1.0" encoding="utf-8" ?>

                            <cubeSchema version="3" operation="createCalculationScenario" defaultSchema="SAP_HPH">

                              <calculationScenario name="Hello_World">

                                <dataSources>

                                    <sqlViewDataSource name="INPUT" view="ViewName">

                                    <attributes>

                                        <attribute name="Filename" datatype="string" sqlType="NVARCHAR" />

                                        <attribute name="DOCUMENTNAME" datatype="string" sqlType="NVARCHAR" />

                                      </attributes>

                                        ....

 

Where can i find documentation to create such kind of views? <cubeSchema > <dataSources> <sqlViewDataSource > Where can i find the definition for all these XML components?



Thanks,

Abhishek.


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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