<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Multiple numeric chart widgets that consume the same data model &amp;quot;Questions on the Best Practices&amp;quot; in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722715#M4774522</link>
    <description>&lt;P&gt;1) Using the same data model is the technical prerequisite for "Query Merge capability", which will under the hood try to optimize the queries sent to the system. There is one older blog describing this: &lt;A href="https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/" target="test_blank"&gt;https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Is the manual approach of 1) e.g. in case this is not working for you. In this case you could use a hidden table or chart and read the different value points from it using script APIs like getData and display the value e.g. with nicely formatted text fields.&lt;/P&gt;&lt;P&gt;In both cases it is about minimizing the queries sent from your application.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 12:43:35 GMT</pubDate>
    <dc:creator>Bob0001</dc:creator>
    <dc:date>2023-03-27T12:43:35Z</dc:date>
    <item>
      <title>Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaq-p/12722713</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Abstract Best Practices:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;If you’ve &lt;STRONG&gt;multiple numeric chart widgets&lt;/STRONG&gt; that consume the &lt;STRONG&gt;same data model&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;1.)&lt;/STRONG&gt; consider enabling the Query Merge capability (In the toolbar, select File &amp;gt; Edit Analytic Application &amp;gt; Query Settings, then enable Enable Query Merge) &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;2.)&lt;/STRONG&gt; or using the getData() script API method to display key figure values. This improves performance by avoiding multiple requests to the backend. &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;my Questions:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;#1.)&lt;/STRONG&gt; why it helps if i use the same datamodel?&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;#2.) &lt;/STRONG&gt;what is the exactly meaning of it?&lt;/P&gt;
  &lt;P&gt;br Oliver&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 07:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaq-p/12722713</guid>
      <dc:creator>oliver_raths</dc:creator>
      <dc:date>2023-03-27T07:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722714#M4774521</link>
      <description>&lt;P&gt;1. &lt;BR /&gt;When using a live connection, every single widget will trigger its own query to the source system - hence the massive hit if you have loads of widgets. Doesn't matter if they all use the same model.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 11:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722714#M4774521</guid>
      <dc:creator>JBARLOW</dc:creator>
      <dc:date>2023-03-27T11:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722715#M4774522</link>
      <description>&lt;P&gt;1) Using the same data model is the technical prerequisite for "Query Merge capability", which will under the hood try to optimize the queries sent to the system. There is one older blog describing this: &lt;A href="https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/" target="test_blank"&gt;https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Is the manual approach of 1) e.g. in case this is not working for you. In this case you could use a hidden table or chart and read the different value points from it using script APIs like getData and display the value e.g. with nicely formatted text fields.&lt;/P&gt;&lt;P&gt;In both cases it is about minimizing the queries sent from your application.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722715#M4774522</guid>
      <dc:creator>Bob0001</dc:creator>
      <dc:date>2023-03-27T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722716#M4774523</link>
      <description>&lt;P&gt;Hello James,&lt;/P&gt;&lt;P&gt;this means,  even if i use the &lt;STRONG&gt;same SAC Model&lt;/STRONG&gt; to show KPI's in different charts:&lt;/P&gt;&lt;P&gt;- "&lt;STRONG&gt;Query merge"&lt;/STRONG&gt; makes sense, because &lt;STRONG&gt;each chart&lt;/STRONG&gt; initiates a separate BW backend call? (each BW call = 1 Query)&lt;/P&gt;&lt;P&gt;   - are there still all these &lt;STRONG&gt;restrictions&lt;/STRONG&gt;? (see &lt;A href="https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/"&gt;Smart Queries for SAP Analytics Cloud with BW Live Connection | SAP Blogs&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;- each of these charts use the &lt;STRONG&gt;same datasource (the SAC model: means SAB BW query)&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154793-query-merge.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 05:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722716#M4774523</guid>
      <dc:creator>oliver_raths</dc:creator>
      <dc:date>2023-03-28T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722717#M4774524</link>
      <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;thx for your answer:&lt;/P&gt;&lt;P&gt;it means, even if i use the &lt;STRONG&gt;same SAC Model&lt;/STRONG&gt; to show KPI's in different charts:&lt;/P&gt;&lt;P&gt;- "&lt;STRONG&gt;Query merge"&lt;/STRONG&gt; makes sense, because &lt;STRONG&gt;each chart&lt;/STRONG&gt; initiates a separate BW backend call? (each BW call = 1 Query)&lt;/P&gt;&lt;P&gt;- are there still all these &lt;STRONG&gt;restrictions&lt;/STRONG&gt;? (see &lt;A rel="nofollow" href="https://blogs.sap.com/2019/11/13/smart-queries-for-sap-analytics-cloud-with-bw-live-connection/"&gt;Smart Queries for SAP Analytics Cloud with BW Live Connection | SAP Blogs&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;- each of these charts use the &lt;STRONG&gt;same datasource (the SAC model = SAP BW query)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154795-query-merge.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following &lt;STRONG&gt;szenario&lt;/STRONG&gt; saves time, bcs there'S only 1 backend call , instead of 4 BE calls?&lt;/P&gt;&lt;P&gt;  - show 4 Numeric point charts (char_1, chart_2, chart_4, chart_5)&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2154794-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 05:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722717#M4774524</guid>
      <dc:creator>oliver_raths</dc:creator>
      <dc:date>2023-03-28T05:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple numeric chart widgets that consume the same data model "Questions on the Best Practices"</title>
      <link>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722718#M4774525</link>
      <description>&lt;P&gt;I would put it the other way round: because these charts use the same data model (BW query in the back) the query merge feature can be used to minimize number of requests (I wouldn't say one backend call per query, but for getting the general idea this is ok).&lt;/P&gt;&lt;P&gt;You can check the documentation for the latest restrictions, but from what I could see it is still the same.&lt;/P&gt;&lt;P&gt;Also 1) and 2) are different approaches for achieving something similar. You might start with 1). When you are affected by the mentioned restrictions you may go for 2), but there you cannot use standard charts. You would use a hidden table/chart with all data points, read the required ones from scripting and set them e.g. as text on some widgets e.g.:&lt;/P&gt; 
&lt;PRE&gt;&lt;CODE&gt;// read the required data cells

var kf1 = hidden_table.getDataSource().getData(selection_for_kf_1);

var kf2 = hidden_table.getDataSource().getData(selection_for_kf_2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;// display the value (check that you really got a cell before)
text_1.applyText(kf1.formattedValue);
text_2.applyText(kf2.formattedValue);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Mar 2023 13:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/multiple-numeric-chart-widgets-that-consume-the-same-data-model-quot/qaa-p/12722718#M4774525</guid>
      <dc:creator>Bob0001</dc:creator>
      <dc:date>2023-03-28T13:55:26Z</dc:date>
    </item>
  </channel>
</rss>

