https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/Data-and-Analytics-qa.xml SAP Community - Data and Analytics 2024-05-20T17:00:16.817310+00:00 python-feedgen Data and Analytics Q&A in SAP Community https://community.sap.com/t5/technology-q-a/linked-analysis-not-working/qaq-p/13600327 Linked Analysis not working 2024-02-09T10:33:07.114000+01:00 rdum https://community.sap.com/t5/user/viewprofilepage/user-id/45817 <P>Hi! I have a situation where in Story report I have a page with Numeric Point Chart and near a Table ; I tried to link them but nothing is happening. They have same database and I also tried with and without ,,Filter on data point selection". Also no error <span class="lia-unicode-emoji" title=":neutral_face:">😐</span></P> 2024-02-09T10:33:07.114000+01:00 https://community.sap.com/t5/technology-q-a/how-to-build-a-simple-intend-based-navigation-on-a-custom-cds-analytical/qaq-p/13610559 How to build a simple intend based Navigation on a custom CDS Analytical Query to a Fiori App 2024-02-19T19:55:41.090000+01:00 Martin_4 https://community.sap.com/t5/user/viewprofilepage/user-id/172054 <P>Hi,</P><P>got a custom very simple ACDOCA analytical Query, <EM>ZZ1_ACDOCA,</EM>&nbsp; with document number<BR />and want&nbsp; to navigate from the query result with the document number<BR />to the App "Manage Journal Entries"&nbsp; - Thats it.</P><P>&nbsp;</P><P>I am desperate about the many semantic object- intentd blogs - none hits the issue&nbsp; or is complete.<BR />How is this done ?<BR />How to set up the navigation and the Semantic Object, Step by Step ?</P><P>Other live example: Query:C_PurOrdAvgDelivTime - Purchase Order Average Delivery Time<BR />Navigation:&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Martin_4_1-1708368699408.png" style="width: 418px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/67861iECD8C9C62052BC92/image-dimensions/418x231?v=v2" width="418" height="231" role="button" title="Martin_4_1-1708368699408.png" alt="Martin_4_1-1708368699408.png" /></span></P><P>How is this where done ?</P><P>Thank You !</P><P>Best !<BR />Martin</P><P><EM>======================================================<BR /></EM><EM>@AbapCatalog.sqlViewName : 'ZZ1V_ACDOCA'</EM><BR /><EM>@EndUserText.label:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'ACDOCA Simple Query'</EM><BR /><EM>define view ZZ1_ACDOCA as select from ZCACDOCA</EM><BR /><EM>{</EM><BR /><EM>wsl,</EM><BR /><EM>belnr</EM><BR /><EM>}</EM><BR /><EM><SPAN>@AbapCatalog.sqlViewName: 'ZACDOCA'<BR /></SPAN>@EndUserText.label: 'ACDOCA Simple Cube'</EM><BR /><EM><a href="https://community.sap.com/t5/user/viewprofilepage/user-id/15206">@analytics</a>.dataCategory: #CUBE</EM><BR /><EM>define view ZCACDOCA </EM><BR /><EM>as select from acdoca as _ACDOCA</EM><BR /><EM>{</EM><BR /><EM>key belnr ,</EM><BR /><EM>@DefaultAggregation: #SUM</EM><BR /><EM>wsl </EM><BR /><EM>}</EM></P> 2024-02-19T19:55:41.090000+01:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/sap-b1-on-hana-dirty-read-service-layer-analytical-view/qaq-p/13610697 SAP B1 on Hana - Dirty Read - Service Layer Analytical view 2024-02-19T23:43:38.526000+01:00 GRD https://community.sap.com/t5/user/viewprofilepage/user-id/45387 <P>Hi guys, we have the following scenario:</P><P>- We create a Analytical view and expose it on service layer.</P><P>- The view exposed is used by a third party app to read the jornals entries.</P><P>We detect than the view exposes non commited journal lines . It means than, if you consume the endpoint during a database transaction (posting a large jornal for example), some journals can are present unbalanced (some lines are not showen).</P><P>We test this scenario over an UDT, and we found the same behavior.</P><P>Could someone tell me how to avoid dirty reading in a view (or analytical view) HANA 2.0?</P><P>Regards,</P><P>&nbsp;</P><P>Gustavo</P><P>&nbsp;</P><P>&nbsp;</P> 2024-02-19T23:43:38.526000+01:00 https://community.sap.com/t5/technology-q-a/how-to-find-new-products-sold-every-month/qaq-p/13610902 How to find new products sold every month? 2024-02-20T06:53:41.205000+01:00 hadar_k https://community.sap.com/t5/user/viewprofilepage/user-id/163347 <P>Hi, I would line to create a table that counts the number of new products sold in every month.</P><P>assuming I have the following dimensions:</P><P>Products</P><P>Stores</P><P>Months</P><P>with a Sales Measure.</P><P>how would I go about designing the data in order to achieve a table with count of new products sold by Store/Agent?</P> 2024-02-20T06:53:41.205000+01:00 https://community.sap.com/t5/supply-chain-management-q-a/billing-document-number-incorrectly-in-custom-analytical-query-s4hana/qaq-p/13613528 Billing document number incorrectly in custom analytical query (S4HANA public cloud) 2024-02-20T17:17:07.329000+01:00 floydaus https://community.sap.com/t5/user/viewprofilepage/user-id/715602 <P>Hello all,</P><P>I have created a custom analytical query to display a lot of sales order related information (sales document, outbound delivery, billing document, production order, inbound delivery etc.).</P><P>Everything works as expected, however, the billing document number is displayed in the incorrect row, if a sales order item is rejected.&nbsp;</P><P>In the example below, item 10 has been rejected in the sales order. I checked, and it is not included in the outbound delivery document and not included in the billing document.</P><P>In the query, no outbound delivery document is displayed in the row of SO item 10, this is correct. However, the billing document is displayed in the row of SO item 10, but not in the rows of SO item 5 and SO item 15, and this is incorrect. Moroever, the billing document item stated is 5, which is on the incorrect row. The billing document number should be displayed in the same rows as the outbound delivery document number.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Incorrect Billing doc. Item.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/68425iADFE041E4C859BAF/image-size/large?v=v2&amp;px=999" role="button" title="Incorrect Billing doc. Item.png" alt="Incorrect Billing doc. Item.png" /></span></P><P>I have used CDS&nbsp;I_SalesOrderItemCube as primary source and linked CDS&nbsp;I_BillingDocumentItem with the following fields as Join Condition:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Join condition billing and SO.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/68428iD8B523933EF0393E/image-size/large?v=v2&amp;px=999" role="button" title="Join condition billing and SO.png" alt="Join condition billing and SO.png" /></span></P><P>Does anyone know the reason and how I can solve this?</P><P>Kind regards,</P><P>Floyd</P> 2024-02-20T17:17:07.329000+01:00 https://community.sap.com/t5/technology-q-a/fit-the-table-into-a-single-page-in-the-pdf-export-sac/qaq-p/13617385 Fit the table into a single page in the pdf export SAC 2024-02-23T16:58:45.948000+01:00 nicolina1 https://community.sap.com/t5/user/viewprofilepage/user-id/887992 <P>Hi everyone,<BR />I created a table with Optimized Design Experience with 15 columns. When I export the table to PDF, it divides the columns into 2 pages. How is it possible to fit the table into a single page, without it being divided into 2 pages? Thank you.</P><P>Best regards</P> 2024-02-23T16:58:45.948000+01:00 https://community.sap.com/t5/supply-chain-management-q-a/incorrect-quantities-in-custom-analytical-query/qaq-p/13621164 Incorrect Quantities in custom analytical query 2024-02-27T17:52:33.662000+01:00 floydaus https://community.sap.com/t5/user/viewprofilepage/user-id/715602 <P>Hello,</P><P>I have created a query that displays a lot of SD information (sales order, outbound delivery, billing document etc.). However, the query does report the incorrect sales order quantities and outbound delivery quantities. See screenshot below.&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Incorrect Sales Order Qty censored.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/72045i81F8843E376803EA/image-size/large?v=v2&amp;px=999" role="button" title="Incorrect Sales Order Qty censored.png" alt="Incorrect Sales Order Qty censored.png" /></span></P><P>I used the following fields/elements in the query:&nbsp;<SPAN>I_SalesOrderItemCube.OrderQuantity and&nbsp;_I_OutboundDeliveryItem.ActualDeliveryQuantity.&nbsp;</SPAN></P><P><SPAN>What is going on here? Can someone offer any help and/or solution?</SPAN></P><P>Kind regards,</P><P>&nbsp;</P><P>Floyd</P><P>&nbsp;</P> 2024-02-27T17:52:33.662000+01:00 https://community.sap.com/t5/human-capital-management-q-a/story-report-issue/qaq-p/13636742 Story report issue 2024-03-13T12:23:19.047000+01:00 Míša https://community.sap.com/t5/user/viewprofilepage/user-id/177682 <P>Hi all,</P><P>we meet an issue at existing Story reports for few days:&nbsp;</P><P>We can run story report, but in each component (table) we cant´t see data but only an error</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Výstřižek.JPG" style="width: 919px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/79876i18FEC84F7733603B/image-size/large?v=v2&amp;px=999" role="button" title="Výstřižek.JPG" alt="Výstřižek.JPG" /></span>"<SPAN>An error occurred while fetching the list of members."</SPAN></P><P><SPAN>Do you know what can be a root of this issue a and how to solve it?</SPAN></P><P><SPAN>Thanks, Míša&nbsp;</SPAN></P> 2024-03-13T12:23:19.047000+01:00 https://community.sap.com/t5/technology-q-a/native-hana-information-views-on-source-system-s4-hana/qaq-p/13660999 Native HANA Information Views on Source system S4/HANA. 2024-04-05T20:41:14.880000+02:00 pushpam22 https://community.sap.com/t5/user/viewprofilepage/user-id/850102 <P>Hello,</P><P>As per SAP recommendation for S/4 HANA as a Business Suite, for Operational and Analytics reporting, CDS Views is the way to go. CDS views will then be consumed by Fiori apps and Embedded analytics.&nbsp;</P><P>Since we have BW/4HANA in place and all the operational reporting is done there through Native HANA Calculation views, is it feasible to use these models by export import in Source system data base? what are pros and cons of creating HANA Graphical CALC views (information Views) directly on Source system?</P><P>What are differences in terms of performance and ease of consuming ABAP CDS views Vs HANA Information Views?&nbsp;</P><P>&nbsp;</P> 2024-04-05T20:41:14.880000+02:00 https://community.sap.com/t5/technology-q-a/sac-add-row-total-to-dimension-subtotal/qaq-p/13667479 SAC - Add Row total to Dimension Subtotal? 2024-04-11T22:57:27.419000+02:00 eacevedo https://community.sap.com/t5/user/viewprofilepage/user-id/156031 <P>I am building a live report for Accounts Receivable.&nbsp;<BR />The report is based on a live BW model. So i am aware of various limitations this entails.&nbsp;<BR /><BR />With the show totals function I am able to get totals for each client #&nbsp;#based on different aging buckets we have created on SAP backend. The "Aging Buckets" are actually members of a dimension where the measures get aggregated on. (this dimension is located on the columns.&nbsp;</P><P>So the "amount" will be aggregated based on that dimensions "Aging" where the members are the different buckets "current" , "1-30 days" , etc.&nbsp;<BR /><BR />I want to add total for the subtotal row for each customer without adding total for each and every row. This is happening when I activate "show totals" .&nbsp;<BR /><BR />Using formulas isn't a viable solution since the formula will stay linked to a cell. This being a live model, the data will change if filtered on. so the number of rows and columns may change.&nbsp;</P><P>Creating an Aggregation calculation isn't viable either as this becomes a new measure and will duplicate the "Aging" dimensions members and end up looking like 2 tables.&nbsp;</P><P><BR />Summarized: I want total across the highlighted subtotal row for each customer without having totals for each row.&nbsp;<BR /><BR /><BR /><BR /></P> 2024-04-11T22:57:27.419000+02:00 https://community.sap.com/t5/human-capital-management-q-a/duplicate-rows-appear-in-the-story-report/qaq-p/13670346 Duplicate rows appear in the story report. 2024-04-15T07:15:34.849000+02:00 jingyeong https://community.sap.com/t5/user/viewprofilepage/user-id/173679 <P>Hi community,&nbsp;</P><P><SPAN>Recently, I have been making a LMS Story Report at the request of the HR manager.</SPAN></P><P><SPAN>I imported "SF_LMS_Class_Management_v1.0" from content store, and I noticed&nbsp;the table on the Class Details page strange.&nbsp;</SPAN></P><P><SPAN>There are many rows in the table, but there are <STRONG>many duplicate rows</STRONG>. What's wrong with this table? How can I make the same row visible only once?</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingyeong_0-1713157934986.png" style="width: 819px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/96344i056787B48C8555AF/image-dimensions/819x244?v=v2" width="819" height="244" role="button" title="jingyeong_0-1713157934986.png" alt="jingyeong_0-1713157934986.png" /></span></P><P><SPAN>If you know a solution, please explain it to me.</SPAN></P> 2024-04-15T07:15:34.849000+02:00 https://community.sap.com/t5/human-capital-management-q-a/the-data-sometimes-comes-out-weird-in-the-story-report/qaq-p/13670368 The data sometimes comes out weird in the Story Report. 2024-04-15T07:31:03.705000+02:00 jingyeong https://community.sap.com/t5/user/viewprofilepage/user-id/173679 <P>Hi community,</P><P><SPAN>Recently, I have been making a LMS Story Report at the request of the HR manager.</SPAN></P><P><SPAN>I imported "SF_LMS_Class_Management_v1.0" from content store, and I sometimes find that the data looks weird.</SPAN></P><P><SPAN>As you can see in the attached picture below, the name of the lecture is shown as title. Item.~~~.<BR /></SPAN><SPAN>And when I press the title, it goes to the Class Detail page, but the data does not appear on that page either.<BR /></SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingyeong_0-1713158730195.png" style="width: 575px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/96353iABEFC0184D3C6E3E/image-dimensions/575x291?v=v2" width="575" height="291" role="button" title="jingyeong_0-1713158730195.png" alt="jingyeong_0-1713158730195.png" /></span></P><P><SPAN>What's wrong with this chart? How can I get the name of the lecture to be exposed normally?&nbsp;</SPAN></P><P>&nbsp;</P> 2024-04-15T07:31:03.705000+02:00 https://community.sap.com/t5/human-capital-management-q-a/what-is-the-difference-between-quot-max-registration-quot-and-quot-maximum/qaq-p/13671589 What is the difference between "max registration" and "maximum class registration in story report? 2024-04-16T05:54:29.942000+02:00 jingyeong https://community.sap.com/t5/user/viewprofilepage/user-id/173679 <P>Hi community,</P><P><SPAN>Recently, I have been making a LMS Story Report at the request of the HR manager.</SPAN></P><P><SPAN>I imported "SF_LMS_Class_Management_v1.0" from content store, and I found that <STRONG>"class capacity" column</STRONG> in "Registration &amp; Capacity" page is wierd.</SPAN></P><P>&nbsp;</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingyeong_1-1713239194595.png" style="width: 730px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/96881i6818341DBC53C91B/image-dimensions/730x206?v=v2" width="730" height="206" role="button" title="jingyeong_1-1713239194595.png" alt="jingyeong_1-1713239194595.png" /></span></P><P>So I checked the calculation of "Class Capacity" and the basic settings ar as shown in the screenshot below.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingyeong_2-1713239324053.png" style="width: 555px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/96882iFAF89A9AF83D0C79/image-dimensions/555x103?v=v2" width="555" height="103" role="button" title="jingyeong_2-1713239324053.png" alt="jingyeong_2-1713239324053.png" /></span></P><P><SPAN>There is a value&nbsp;"Maximum Class registration" in the formula, so I added it to the table to make it easier to compare.</SPAN></P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingyeong_3-1713239456292.png" style="width: 594px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/96883iF5507F904C9A5348/image-dimensions/594x138?v=v2" width="594" height="138" role="button" title="jingyeong_3-1713239456292.png" alt="jingyeong_3-1713239456292.png" /></span></P><P><SPAN>&nbsp;But I'm not sure <STRONG>what the difference is between "Maximum Class Registration" and "Max Registration".</STRONG></SPAN></P><P><SPAN>Can you explain to me what is the difference between the two values?</SPAN></P><P>&nbsp;</P><P>&nbsp;</P> 2024-04-16T05:54:29.942000+02:00 https://community.sap.com/t5/technology-q-a/ad-hoc-analysis-on-bw-querys-in-sap-analytics-cloud-on-ios-mobile-devices/qaq-p/13673100 ad-hoc analysis on BW Querys in SAP Analytics Cloud on iOS mobile devices 2024-04-17T10:10:29.499000+02:00 uno22517 https://community.sap.com/t5/user/viewprofilepage/user-id/607236 <P>We have SAC on live data connections to our BW/4 Business Warehouse, and we use the SAP mobile app on devices to access SAC stories and applications.<BR /><BR />Is there any way to perform an ad-hoc analysis on BW Queries on iOS mobile devices also, say using the data analyzer?</P> 2024-04-17T10:10:29.499000+02:00 https://community.sap.com/t5/technology-q-a/sac-story-t-getsections-is-not-a-function-error/qaq-p/13675121 SAC Story - t.getSections is not a function error 2024-04-18T19:16:20.218000+02:00 KP01 https://community.sap.com/t5/user/viewprofilepage/user-id/1418221 <P>Hello,&nbsp;</P><P>I am getting <STRONG>" t.getSections is not a function error"&nbsp;</STRONG>while saving&nbsp; SAC story. Any idea what this error is related to?&nbsp;</P><P>Thank you,&nbsp;</P><P>KP</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KP01_0-1713460486686.png" style="width: 400px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/98406i05A5CE75F478EB41/image-size/medium?v=v2&amp;px=400" role="button" title="KP01_0-1713460486686.png" alt="KP01_0-1713460486686.png" /></span></P><P>&nbsp;</P> 2024-04-18T19:16:20.218000+02:00 https://community.sap.com/t5/technology-q-a/distribute-median-calculated-on-year-to-each-month/qaq-p/13694690 Distribute median calculated on year to each month 2024-05-08T08:30:25.469000+02:00 hoernst https://community.sap.com/t5/user/viewprofilepage/user-id/711428 <P>Hi all<BR /><BR />I have calculated values on a monthly basis and want to report them on a monthly basis.<BR />I would like to calculate one median of those values for the complete reporting time range and show this value on each month. So i get a fixed line with the median value.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-08 Median.png" style="width: 491px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/107251i4167EF56D12AC65A/image-size/large?v=v2&amp;px=999" role="button" title="2024-05-08 Median.png" alt="2024-05-08 Median.png" /></span></P><P><BR />Is this possible with an exception aggregation? I can calculate the median, but then it's calculated for each month seperately and not for the whole time series.<BR /><BR />Thank you in advance for your help!<BR />Stefan</P> 2024-05-08T08:30:25.469000+02:00 https://community.sap.com/t5/technology-q-a/sac-data-action-are-if-statements-like-a-select-on-the-data-and-then-the-if/qaq-p/13694907 SAC Data Action - are IF statements like a select on the data and then the if block is executed? 2024-05-08T10:48:37.761000+02:00 axel_ https://community.sap.com/t5/user/viewprofilepage/user-id/550945 <P>Hello Planning Gurus,</P><P>I got a general question on how the data is processed in data actions. Coming from BW my thinking was that a data action loops thru the data and executes on every record the data action code sequentially (like a BW start routine would do).</P><P>However, recently code of one data action acted weired (see long text bellow) and I wonder if I was thinking wrong all the time and there is no overall loop but the code is simply executed sequentially and is resulting in selection based loops.&nbsp;</P><P>So your memberset makes the first select. If you have an if statement for a particular month this is then selected from the memberset result and the if statement block is executed on that selected data (now in a loop) and written back if there is any data() command.</P><P>Next if statement is again selecting data from the memberset result (could overlapp with previous if statement) and executed...</P><P>Is this how an data action works?&nbsp;</P><P>Thanks and best regards<BR />Axel</P><P>Data Action Problem that triggered the question in regards to processing<BR />---------------------------------------</P><P>I got a data action that is calculating the difference Q1 to Q1 previous year using variablemembers for a monthly planning model.<BR /><BR /></P><DIV>MEMBERSET [d/Measures] = ("I_GROWTH")</DIV><DIV>MEMBERSET [d/Monat] = BASEMEMBER([d/Monat].[h/YM],%YEAR_TO_CALCULATE%&nbsp; )</DIV><DIV>&nbsp;</DIV><DIV>AGGREGATE_DIMENSIONS = ....</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>AGGREGATE_WRITETO .... = "#"</DIV><DIV>&nbsp;</DIV><DIV>VARIABLEMEMBER #QTR_VARIANCE_Q1 OF [d/Measures]</DIV><DIV>VARIABLEMEMBER #QTR_Q1 OF [d/Monat]<BR />VARIABLEMEMBER #QTR_VARIANCE_Q2 OF [d/Measures]<BR />VARIABLEMEMBER #QTR_Q2 OF [d/Monat]<BR />VARIABLEMEMBER #QTR_VARIANCE_Q3 OF [d/Measures]<BR />VARIABLEMEMBER #QTR_Q3 OF [d/Monat]</DIV><DIV>VARIABLEMEMBER #QTR_VARIANCE_Q4 OF [d/Measures]</DIV><DIV>VARIABLEMEMBER #QTR_Q4 OF [d/Monat]</DIV><DIV>&nbsp;</DIV><DIV>DELETE([d/Measures]="I_GROWTH")</DIV><DIV>&nbsp;</DIV><DIV>IF [d/Monat].[p/QUARTERDESC]="Q1" THEN</DIV><DIV>&nbsp; &nbsp;DATA([d/Measures]=#QTR_VARIANCE_Q1,[d/Monat]=#QTR_Q1)=RESULTLOOKUP([d/Measures]="REV")+&nbsp; &nbsp; &nbsp; &nbsp;(RESULTLOOKUP([d/Version]=%REF_VERSION_Q1Q2%,[d/Measures]="REV",[d/Monat]=PREVIOUS(12))*-1)</DIV><DIV>ENDIF</DIV><DIV>// Write growth bonus to last month of qtr</DIV><DIV>IF [d/Monat].[p/MONTHDESC]="Mar" THEN</DIV><DIV><SPAN>&nbsp; &nbsp; IF (RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q1,[d/Monat]=#QTR_Q1)) &gt;= 1000 THEN</SPAN></DIV><DIV><SPAN>&nbsp; &nbsp; DATA()=RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q1,[d/Monat]=#QTR_Q1)*3.00</SPAN></DIV><DIV><SPAN>ENDIF</SPAN></DIV><DIV>&nbsp;</DIV><DIV>ENDIF<BR /><BR />This is working fine. Requirement changed now that growth for Q4 should be compared only Nov and Dec (not the full qrt) so I adjusted the code to check for month</DIV><DIV><BR />IF [d/Monat].[p/MONTHDESC]="Nov" THEN<BR />DATA([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)=RESULTLOOKUP([d/Measures]="REV")+(RESULTLOOKUP([d/Version]=%REF_VERSION_Q3Q4%,[d/Measures]="REV",[d/Monat]=PREVIOUS(12))*-1)<BR />ENDIF<BR />IF [d/Monat].[p/MONTHDESC]="Dec" THEN<BR />&nbsp;DATA([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)=RESULTLOOKUP([d/Measures]="REV")+ (RESULTLOOKUP([d/Version]=%REF_VERSION_Q3Q4%,[d/Measures]="REV",[d/Monat]=PREVIOUS(12))*-1)<BR /><BR />&nbsp;IF (RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)) &gt;= 700 THEN<BR />&nbsp;DATA()=RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)*3.00<BR />ENDIF<BR />ENDIF</DIV><DIV>&nbsp;</DIV><DIV>Problem: the if statement for November seems to be executed after Dec. Hence the QTR_VARIANCE variable holds only difference Dec to Dec and therfore the growth bonus is calculated to low. (at least that is my only explanation). The Nov statement is definitly executed I checked that by writing some data to Nov month.</DIV><DIV>&nbsp;</DIV><DIV>When I changed code to&nbsp;<BR />IF [d/Monat].[p/MONTHDESC]="Nov" OR [d/Monat].[p/MONTHDESC]="Dec" THEN<BR />DATA([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)=RESULTLOOKUP([d/Measures]="REV")+(RESULTLOOKUP([d/Version]=%REF_VERSION_Q3Q4%,[d/Measures]="PAX",[d/Monat]=PREVIOUS(12))*-1)<BR /><BR />ENDIF<BR />IF [d/Monat].[p/MONTHDESC]="Dec" THEN<BR />&nbsp;IF (RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)) &gt;= 700 THEN<BR />&nbsp;DATA()=RESULTLOOKUP([d/Measures]=#QTR_VARIANCE_Q4,[d/Monat]=#QTR_Q4)*3.00<BR />&nbsp;ENDIF<BR />ENDIF</DIV><DIV>It was working as expected.</DIV> 2024-05-08T10:48:37.761000+02:00 https://community.sap.com/t5/human-capital-management-q-a/configuring-date-ranges-in-stories-reports/qaq-p/13697524 Configuring Date Ranges in Stories Reports 2024-05-10T12:50:06.798000+02:00 lorraineant https://community.sap.com/t5/user/viewprofilepage/user-id/140366 <P>Hi there,</P><P>I've created a set of standard reports in stories and want to set the date range as YTD.&nbsp; When i set the range on the Job Information Table i get errors and no data is returned.&nbsp; However, if I add a Date input control and filter on Effective Start Date 1 Jan 2024 and select "include range up to current period" it seems to work.&nbsp; Not sure if this is rendering the correct data though.</P><P>Why can I not set the Date Range on the Job Information Table?</P><P>I would need to YTD date set for Headcount, Terminations, Hires and Promotions.</P> 2024-05-10T12:50:06.798000+02:00 https://community.sap.com/t5/technology-q-a/dynamic-trend-calculation-for-kpi-in-analytical-cds-view/qaq-p/13703248 Dynamic Trend Calculation for KPI in Analytical CDS View 2024-05-16T10:31:37.036000+02:00 tobias_grimm_ksg https://community.sap.com/t5/user/viewprofilepage/user-id/875503 <P>I use an Analytical CDS View (Query) to get the Average Delivery Delay of Sales Order Items as an KPI in my SAPUI5 application.&nbsp;The value is calculated in the CDS view:</P><pre class="lia-code-sample language-abap"><code>@AnalyticsDetails.query.decimals: 3 @AnalyticsDetails.query.formula: 'NDIV0( $projection.TotDelivToReqdDelivDelayInDays / $projection.NumberOfIncomingSlsOrderItems )' cast(1 as avg_deliv_to_reqd_deliv_delay) as AvgDelivToReqdDelivDelayInDays</code></pre><P>I created a DataPoint for this field:&nbsp;</P><pre class="lia-code-sample language-markup"><code>&lt;Annotation Term="UI.DataPoint" Qualifier="DataPointDurchschnittLieferverzug"&gt; &lt;Record Type="UI.DataPointType"&gt; &lt;PropertyValue Property="Title" String="someTitle" /&gt; &lt;PropertyValue Property="Description" String="someDesc" /&gt; &lt;PropertyValue Property="Value" Path="AvgDelivToCmtdDelivDelayInDays" /&gt; ... &lt;PropertyValue Property="TrendCalculation"&gt; &lt;Record Type="UI.TrendCalculationType"&gt; &lt;PropertyValue Property="ReferenceValue" Path="ReferenceField" /&gt; &lt;PropertyValue Property="UpDifference" Decimal="3" /&gt; &lt;PropertyValue Property="StrongUpDifference" Decimal="10" /&gt; &lt;PropertyValue Property="DownDifference" Decimal="-3" /&gt; &lt;PropertyValue Property="StrongDownDifference" Decimal="-10" /&gt; &lt;/Record&gt; &lt;/PropertyValue&gt; &lt;/Record&gt; &lt;/Annotation&gt;</code></pre><P>I would like to show a trend indicator for my KPI. Lets say, I want to use the average value of the past 7 days as a reference and get a trend (up/down) from that. I know its possible to get a reference value from another field or set a static value for the ReferenceValue property.</P><P>My question is, is it possible to calculate the reference value in the query view based on a time span?&nbsp;<BR />All tutorials regarding trend calculation of KPIs I found online always assume you have a reference value already present as a field in your view. But in this case, the KPI value that I need a reference for is calculated in the same view...</P><P>Would it be possible to get the reference value from a different view instead of a field of the same entity?&nbsp;</P> 2024-05-16T10:31:37.036000+02:00 https://community.sap.com/t5/technology-q-a/whats-the-mac-shortcut-key-equivalent-to-ctrl-in-windows-to-comment-out/qaq-p/13703547 Whats the Mac Shortcut key equivalent to CTRL+# in Windows (to comment out multiple lines)? 2024-05-16T14:02:03.030000+02:00 howsy https://community.sap.com/t5/user/viewprofilepage/user-id/219060 <P>Dear all,</P><P>as already mentioned in the headline, I am looking for the Mac equivalent of "CTRL+#" to (un-)comment multiple lines in the SAC Coding.&nbsp;</P><P>Thanks in advance,<BR />Regards,<BR />Chris</P> 2024-05-16T14:02:03.030000+02:00