Output data differs in Analytic view

Hi Everyone,
I am trying to figure out the solution for the Analytic view. I have created a calculated column based on the Input parameter.
In the Input paramter I have defined as  ('$$IP_TRANSACTIONYEAR$$'='2012',"SALES REVENUE"*50,"SALES REVENUE").
So in the output , when the Year 2012 is declared the sales revenue has to be multiplied by 50 and must view the data.
But all the rows are bring multiplied and i get the resultant data. I dont know the root cause of the error.
Can any one guide me in this approach?
Thanks and regards
Sanjay

Hi Krishna,
Have decared the code as:
IF("TRANSACTION YEAR"='$$IP_TRANSACTIONYEAR$$',"SALES REVENUE"*50,"SALES REVENUE")
Have got the output as expected.!!
Thanks and regards
Sanjay

Similar Messages

  • How to perform Descending Order function on a DATE column in Analytical View

    Hi,
    I have the below requirement
    For the article/site having a+ stock quantity from table MARD field LABST, check the last goods movement date as a receipt table MSEG field SHKZG value "H".  To get this information fetch the data from the table MSEG & MKPF.  The lead time from that date till the present date is the ageing information.  Show the output sorted on the duration as ageing information.
    Created a calculate column with the below code and it is populating data i.e. multiple records for the same item for different dates like
    daysbetween(date("BUDAT"),date("CURRENT_DATE"))
    MC25001;1001;08;DC01;;H;WL;20150317;20150317;000000000000000233;2015-04-20;34;1,003
    MC25001;1001;08;DC01;;H;WL;20150312;20150312;000000000000000233;2015-04-20;39;2,006
    MC25001;1001;08;DC01;;H;WL;20141203;20141203;000000000000000233;2015-04-20;138;3,009
    MC25001;1001;08;DC01;;H;WL;20150409;20150409;000000000000000233;2015-04-20;11;1,003
    MC25001;1001;08;DC01;;H;WL;20141201;20141201;000000000000000233;2015-04-20;140;1,003
    Now I have to sort the date (BUDAT) (highlighted in bold above) to be sorted in Descending and then take the first record and then apply the the above formula to get the aging stock. 
    Any suggestions?
    Best Regards,
    Vijaya

    Hi,
    But I don't think you need to go for scripting view. What you can do here is create one more calculation view , insert this analytical view in the projection and select date as measure and pick max value and then create one calculated column and put your logic.
    I hope i got your requirement correctly.
    BR
    Sumeet

  • Filter (variable) applied at analytical view is not reflected in Caculation view.

    Hello All,
    I am new to hana and would like to discuss one issue here.
    Model is something like this:
    Calculation  view  ---- >   has one Analytical View  --->  has one attribute view and a fact table.
    Now, in analytical view I have applied a filter using a variable on dimension attribute ( column of attribute view). When I do data preview on  analytical view I get a prompt (asking single value to put in - mandatory). However when I do a data preview for calculation view (which involves analytical view created earlier) ...I don't get a prompt this time.
    Calculation view is a 2 level only [ semantic --> projection/aggregation(analytical view) ].
    Please assist with it.
    Thanks
    Sumit

    Thanks for your reply Ravi.
    It seems like this approach is applicable for "Input Parameters" only and not for "Variable" ?
    I created a variable & an Input parameter in Analytical view, and created same variable & input parameter in calculation view...and then clicked on "Input parameter managed mapping" button under section "Variables/Input parameters" of semantics. I could see only Input parameters listed on both sides not the variables.
    1. I am curious now to understand ...when it is recommended that the data needs to be filtered out at the lowest level...however we still need to define parameters at calculation level ?
    2. The prompt based filters applied at analytical view is getting reflected in calculation view when it(calculation view) is refreshed for data preview ?
    3. Is it possible to expose analytical or attribute view directly into the business objects universe ?
    Yours, and other member's reply on it will be appreciated.
    Thanks
    Sumit

  • Getting error for Analytic Views data preview on HANA Studio

    Hello
    I have multiple Analytic Views and when trying for data preview, those all are throwing error as "Object Not active or broken" (attached below). I have activated these objects 5-6 times and got successful message but unable to data preview.
    Other persons in team and from different machine using my user id can run data preview successfully, so something problem with my PC. Already I have uninstalled - restart PC and reinstall 3 times for HANA Studio and HANA Client software but problem not solved. During re-installation, I found its getting my previous settings like system details etc. already populated. Even I installed in different folders, however problem not solved and system details automatically received on next start.
    Please guide me to solve this problem
    Below error coming while trying for data preview.
    Thanks
    Suman

    Hi Suman,
    Can you change your system workspace and also the secure storage.
    It can be done via a parameter in the shortcut of studio in the Target field after the exe write
    -data "<WorkspaceLocation>" -eclipse.keyring "<AnyLocation>"
    While usually this is a server error, it should be studio specific.
    Nevertheless, do the above settings and let me know your results.
    Regards,
    Anjali.

  • HANA Analytical View Display Data Issue

    SAP Experts,
    Need your kind help for the below issue,
    I've created an analytical view from a DSO Active Table in HANA Studio. Through IDT (Information Design Tool), when I tried to view the contents of this DSO table (AYPURDA0100) by connecting to HANA, I see the following error which is mentioned below,
    Error:
    Error while refreshing the data provider.
    Cause of Error:
    SAP AGSDBODBC DLLHDB General error;7 feature not supported: cannot execute select * on olap cube: zthd/AYPURDA0100: line 1 col 26 (at pos
    Note: The AYPURDA0100 table contents are displayed in HANA Studio. However when a view was created with NO join conditions for the same table with few selected fields including measures, the display data is not working.
    Your views are greatly appreciated. Thank You in advance

    Check out the comments from Marc and Lars in the thread below.
    http://forums.sdn.sap.com/thread.jspa?forumID=491&threadID=2138937

  • Use different column Name in Analytic View depending by logon session language

    Hi everybody.
    Is it possible to have different column names for ONE single Analytic View column depending by the Client session language?
    For instance:
    - we have one (only one)  column name let's say that is 'fatturato' (for an Italian Client session) and 'invoiced' (for an English Client session) etc.. etc..
    in other word the 'column name' changes depending by the language but the column is only 1 (one).
    Is it possible to manage this and how? In SAP Hana Studio?
    Is it possible to store in some way the different names of that column and relate them to the column itself?
    Thank you in advance
    Best regards.
    Sergio

    Hi Sumeet.
    We already did your suggestion...
    But after the action:
    " tab--> Migrate--> Add---> OK"
    what do you have to do to have a multi-language column naming?
    Let's say we have a column name = 'product' (in English).
    We'd like to have for the same column also the following name:
    - 'prodotto'  ->  for Italian
    - 'produit'  -> for French
    - 'produkt' -> for German
    .. and so on
    depending  by the Client session language (and this has to be done automatically of course).
    How this can be achieved?
    Thank you
    Sergio

  • Hi experts, how to use open sql to read data from one " maintenance view"?

    i want to use this part of data within report ,so how to use open sql statement to read data from one " maintenance view"?

    Hi
    You can't use OPEN SQl statements to fetch data from maintenance view
    You have to use only Database views
    see the different types of views and the difference
    The followings are different types of views:
    - Database View (SE11)
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set.
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - Help View ( SE54)
    Help views are used to output additional information when the online help system is called.
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view.
    - Projection View
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    - Maintenance View ( SE54 )
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Please have a look at below link. It will help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed06446011d189700000e8322d00/frameset.htm
    for more detailed info look on:
    http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abap+dictionary&
    Reward points for useful Answers
    Regards
    Anji

  • How do i filter the records in analytic view by using variable/parameter for a time range

    i have a analytic view which has a output column as date type. i want the user who use this view have the control to decided the output records based on a time range (from x to y).
    i tried to create 2 variables, 1 for start_time, 1 for end_time. Ideally, i should have a expression for filtering data like this:
    $$start_time <= date_column <= $$end_time
    However, the variable windows doesn't seem to be feasible for the expression as above.
    Does anyone has the same problem and get it solved?
    Thanks!

    just figured out by my own. So the answer is using "variable" with "range" option.
    Making a variable, then set the "selection type" to "range".
    When preview the data, the variable input window pops up with operator on default "equal", use dropdown list to swtich it to "between", then you can enter the start_time and end_time as a range filter.

  • Error in Restricted Column of Analytic View

    Hi,
    I created a Analytical view and performed join between the tables. All the data has been populated successfuly.
    I restricted for the Column PER UNIT SALES PRICE based on the attribute value MATERIAL_NUM = 25. I do get an error when i validate the current view. Errors are displayed below for your reference and the screen shot of Data Preview Analytic view is placed below the errors.
    Message :
    Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Analytic View: nn'PER UNIT SALES PRICE' is an invalid value(7)nnSQL: transaction rolled back by an internal error: column store error: <?xml version="1.0" encoding="utf-8"?><createCubeResult version="1.0"><status><message>The scenario XML is not valid</message><errorCode>2112</errorCode></status><details><errors><detail><element>cubeSchema -> cubes -> cube (_SYS_BIC:ID403381.Customerdetails/ANAL_CUSTOMER_MATERIAL/olap) -> measures -> measure (MONITOR_PERUNITSALES) -> formula</element><code>7</code><message>'PER UNIT SALES PRICE' is an invalid value</message></detail></errors></details></createCubeResult>nnCreate OLAP Scenario statement: CREATE OLAP SCENARIO '<?xml version="1.0" encoding="utf-8"?><cubeSchema version="3" operation="createHanaCube"><cube name="_SYS_BIC:ID403381.Customerdetails/ANAL_CUSTOMER_MATERIAL/olap" registerCubeForApsFlag="true" registerCubeForSqlApsFlag="false"><cubeTables><cubeTable name="ID403381:CUSTOMER" type="d-table"/><cubeTable name="ID403381:CUSTOMER_FACT" type="f-table"/><cubeTable name="ID403381:MATERIAL" type="d-table"/></cubeTables><joinConditions><joinCondition name="JOIN_CUSTOMER_FACT_CUSTOMER_1" referentialIntegrity="true" joinType="inner"><partner1 table="ID403381:CUSTOMER_FACT" column="CUSTOMER ID"/><partner2 table="ID403381:CUSTOMER" column="ID"/></joinCondition><joinCondition name="JOIN_CUSTOMER_FACT_MATERIAL_2" referentialIntegrity="true" joinType="inner"><partner1 table="ID403381:CUSTOMER_FACT" column="MATERIAL NUM"/><partner2 table="ID403381:MATERIAL" column="MATERIAL NUM"/></joinCondition></joinConditions><joinPaths><joinPath name="PATH_CUSTOMER_1"><joins><join name="JOIN_CUSTOMER_FACT_CUSTOMER_1"/></joins></joinPath><joinPath name="PATH_MATERIAL_2"><joins><join name="JOIN_CUSTOMER_FACT_MATERIAL_2"/></joins></joinPath></joinPaths><dimensionAttributes><dimensionAttribute name="SALES REP ID"><columnMappings><columnMapping name="SALES REP ID" technicalName="SALES REP ID" type="key" table="ID403381:CUSTOMER_FACT" column="SALES REP ID" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="SALES REVENUE"><columnMappings><columnMapping name="SALES REVENUE" technicalName="SALES REVENUE" type="key" table="ID403381:CUSTOMER_FACT" column="SALES REVENUE" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_CUSTOMER$ID"><columnMappings><columnMapping name="ID" technicalName="ID403381.Customerdetails/ATTR_CUSTOMER$ID" type="key" table="ID403381:CUSTOMER" column="ID" joinPath="PATH_CUSTOMER_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_CUSTOMER$NAME"><columnMappings><columnMapping name="NAME" technicalName="ID403381.Customerdetails/ATTR_CUSTOMER$NAME" type="key" table="ID403381:CUSTOMER" column="NAME" joinPath="PATH_CUSTOMER_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_CUSTOMER$AGE"><columnMappings><columnMapping name="AGE" technicalName="ID403381.Customerdetails/ATTR_CUSTOMER$AGE" type="key" table="ID403381:CUSTOMER" column="AGE" joinPath="PATH_CUSTOMER_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_CUSTOMER$ADDRESS"><columnMappings><columnMapping name="ADDRESS" technicalName="ID403381.Customerdetails/ATTR_CUSTOMER$ADDRESS" type="key" table="ID403381:CUSTOMER" column="ADDRESS" joinPath="PATH_CUSTOMER_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_CUSTOMER$SALARY"><columnMappings><columnMapping name="SALARY" technicalName="ID403381.Customerdetails/ATTR_CUSTOMER$SALARY" type="key" table="ID403381:CUSTOMER" column="SALARY" joinPath="PATH_CUSTOMER_1" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_MATERIAL$MATERIAL_NUM"><columnMappings><columnMapping name="MATERIAL_NUM" technicalName="ID403381.Customerdetails/ATTR_MATERIAL$MATERIAL_NUM" type="key" table="ID403381:MATERIAL" column="MATERIAL NUM" joinPath="PATH_MATERIAL_2" isVisible="true"/></columnMappings></dimensionAttribute><dimensionAttribute name="ID403381.Customerdetails/ATTR_MATERIAL$MATERIAL_NAME"><columnMappings><columnMapping name="MATERIAL_NAME" technicalName="ID403381.Customerdetails/ATTR_MATERIAL$MATERIAL_NAME" type="key" table="ID403381:MATERIAL" column="MATERIAL NAME" joinPath="PATH_MATERIAL_2" isVisible="true"/></columnMappings></dimensionAttribute></dimensionAttributes><measures><measure name="QUANTITY SOLD" table="ID403381:CUSTOMER_FACT" column="QUANTITY SOLD" aggregationType="sum" isVisible="true"/><measure name="PER UNIT SALES PRICE" table="ID403381:CUSTOMER_FACT" column="PER UNIT SALES PRICE" aggregationType="max" isVisible="true"/><calculatedMeasure name="MONITOR_PERUNITSALES" aggregationType="max" isVisible="true" calculateBeforeAggregation="false" datatype="fixedString" length="10" scale="0"><formula>PER UNIT SALES PRICE</formula></calculatedMeasure></measures><constraints/></cube></cubeSchema>'n
    The below displayed are the Data Preview of the Analytic view
    ANALYTICAL VIEW OUTPUT
    ID
    NAME
    AGE
    ADDRESS
    SALARY
    MATERIAL_NUM
    MATERIAL_NAME
    SALES REP ID
    SALES REVENUE
    QUANTITY SOLD
    PER UNIT SALES PRICE
    6
    Dinesh
    18
    Kerela
    2,829.34
    53
    TOLL
    267
    2660 EUR
    6
    5
    12
    Matthews
    41
    UP
    28,282.24
    25
    TRIMAS
    170
    1145 EUR
    9
    31
    10
    Thomas
    19
    Bihar
    27,282.21
    35
    CORES
    109
    1757 EUR
    11
    4
    I need guidance to proceed further!!!
    Thanks and regards
    Sanjay

    One quick question:
    The measure definition as shown as:
    <measure name="PER UNIT SALES PRICE" table="ID403381:CUSTOMER_FACT" column="PER UNIT SALES PRICE" aggregationType="max" isVisible="true"/><calculatedMeasure name="MONITOR_PERUNITSALES" aggregationType="max" isVisible="true" calculateBeforeAggregation="false" datatype="fixedString" length="10" scale="0"><formula>PER UNIT SALES PRICE</formula></calculatedMeasure></measures>
    Can you please check and confirm the data type for the Calculated measure.
    Regards,
    Ravi

  • Substring function not working in Analytical view

    Dear All,
    I am trying to use substring function in my analytical view .It says valid expression during syntax check but getting activation error.
    thanks
    Sourav

    Hi Krishna,
    This is Kiran, I am trying to restrict a (string) filed value by removing the spaces and wring to calculated column field in an Analytical view for position 6 - 10.
    Example: Field name XYZ (Values showing as: ASDFG GETVALUENW  2345) --> (data type :22 VARCHAR)
    Output Value must be : GETVALUENW (which is 10 characters, from position 6 after trimming)
    Please advice which function use and how to apply the syntax
    Your inputs are highly appreciated.
    Thanks
    Kiran.

  • Analytical View - Substring function and Other functions.

    Hello All
    I am trying to use substring and trim function for a value/string and get the field value from position 6 - 10. in analytical view.
    Example: Field name XYZ (Values showing as: ASDFG GETVALUENW  2345) --> (data type :22 VARCHAR)
    Output must be : GETVALUENW (which is 10 characters, from position 6 after trimming) which I am wring to new filed in Calculated coloumns.
    Trying the use built-in functions but syntax wise missing some thing need your inputs.
    Regards
    Kiran.

    Hi Kiran Avunuri,
    A small thought process.
    Have you tried something similar(syntax) in your view.
    BR
    Prabhith

  • Wrong output for different XMLP reports

    Hi all,
    I've found an unexpected problem in our XMLP reports.
    A user called us telling that launching a report in XMLP he viewed an output concerning a set of data different from the expected.
    We investigated looking for bugs in the query or other kind of problems, without any results.
    Finally we notice that 2 or more XMLP reports completed in the same moment (I mean that the users can launch the concurrent in different moments but the output files are created in the same moment) conflicts and they produce 2 or more output file with the same data, although the input parameters are totally different (i.e. : the user launched a detailed report about the people working in his office and he unbelievably realized that the report contained the people of another office).
    Has anybody faced this kind of issue??
    Thx, all and sorry for my bad english :-(
    Ciao.

    Hi,
    I am also facing the same issue. I am also getting "????" instead of Hebrew translation. I am trying to generate PDF file using the XMLP API. It works fine when tried to generate from MS Word using the "Preview Translation" option.
    Please let me know is there any configuration parameters that need to be set.

  • Is it possible to maintain table data in a maintenance view

    hi all,
    is it possible to maintain data in a table by using maintenance view.

    Hi,
    if you maintain texts of your objects in different languages it's better to use a maint. view:
    example
    1) ZTAB01 - CU-Data
    2) ZTAB01T - texts to CU-Data
    3) ZTAB01_V - maint.-view of 1) and 2)
    hope that helps

  • Not able to view Data Preview of Attribute View,AV and CV

    HI,
    I have created tables and then created the required attribute view, analytic view and calculation view for parent child hierarchy.
    I'm facing two problems
    1. I'm not able to see the "Data Preview" of any of the views.
    2. When i'm trying to import data from HANA from MS-EXCEL 2010 with data connection wizard, then connection is established successfully but after that instead of showing cubs its giving the following error
    Regards,
    Ch3tan

    Hi Seshadri Sreenivas R,
    I executed following queries
    Statement 'SELECT * FROM "_SYS_BI"."BIMC_ALL_CUBES"' successfully executed in 158 ms 518 µs  (server processing time: not supported by server)
    Fetched 0 row(s) in 0 ms 0 µs
    Statement 'SELECT * FROM "_SYS_BI"."BIMC_CUBES"' successfully executed in 195 ms 12 µs  (server processing time: not supported by server)
    Fetched 0 row(s) in 0 ms 0 µs
    I got 0 rows .
    I redeployed and reactivated successfully, then clicking on data preview i'm getting the same error
    Waiting for your suggestion.
    Regards
    Ch3tan

  • How do I make a VI that contols a 6534 card take less time to load 1Mbyte and output data ?

    Hello-
    I'm developing a pattern generation burst mode type VI that reads byte characters from a text file, manipulates the bytes that it reads and then outputs the data from a 6534 card. The REQ1 pin is pulled high which makes the card continually output data until the internal buffer is empty. An internal clock is used. The problem is that the size of the file that is read by the VI can be relatively large, in the 1MByte range. After the VI manipulation, the output array is 16 times larger than the input string. So, when the VI reads a 1MByte text file, the output array contains 16 million entries (each array entry is 3 bits by the way). It takes about 20 seco
    nds to run and output data from the 6534 even when reading files that are 200kbyte or so. I'm outputting the data at 5Mbps. I'm not sure where all the delay is coming from. Using the 'Profile VI" function under the 'Tools' menu shows a snapshot of time that really doesn't help me since it only shows that the time is spent in my VI. Is this just the result of loading large files ? Or, is there a way to preload the 1MByte file into the 32MB of RAM on the 6534 card before the VI is actually run. What I mean is that I do have the option in my system to have a time when all text files will somehow be loaded into the 6534 memory, during some initialization period, and then the VI would be run with the text file already loaded. This of course assumes that the delay is loading the file from the harddrive, but since the harddrive transfer speed is fast, I have no idea where to speed things up. Any ideas ? Thanks !

    Your question actually belongs to the Measurement Devices >> Digital IO section since it concerns operating the 653x family of digital boards. You will see other related questions and answers there. In the future, please direct your digital questions to that forum.
    If you are trying to profile your VI, you can break it into different pieces. For instance, you can make a subVI out of the file data manipulation.
    Now, are you doing pattern generation or burst mode handshaking output? From your description of the signal connections, it looks like burst mode. You can double-check in the 653x User Manual at the http://www.ni.com/manuals pages. Still, it looks like you could accomplish your task with pattern generation. There are example VIs for both operations that
    I suggest you start with. They are located in the LabVIEW >> Examples >> Daq >> Digital >> 653x.llb directory.
    It also sounds like you are doing a single buffered operation, where you have a set amount of data that you want to output, and once done, the VI will stop. You are preloading the data to the buffer at DIO Write.vi before the 6534 actually outputs the data with DIO Start.vi when you program like the examples.
    Thus, start with the appropriate example and then add the File I/O to it. You can even test with a smaller file to see the effects. You will also find useful information concerning the 6534 in the KnowledgeBase, particularly KnowledgeBase 298CGF9M "How Many Samples of Data Can I Store in the Onboard Memory of the NI 6534?". You can find this online by going to the http://www.ni.com/support and choosing KnowledgeBase from the Technical Resources pull-down menu. Then, type in keywords to search for, such as "6534".
    Regards,
    Geneva L.
    Applications Engineering
    Nati
    onal Instruments
    http://www.ni.com/ask

Maybe you are looking for