<?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>topic Re: Enrich data after Grouping in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/1820606#M67269</link>
    <description>&lt;P&gt;Hi, I'm not sure to understand... if that enriched data has only vaue for each group you can do a join or a mapping to add new fields.&lt;/P&gt;&lt;P&gt;If each group can have different values you will need an additional table with detailed data and realted them with a composite key using the grouped values to relate rows.&lt;/P&gt;&lt;P&gt;If you do a concatenate you are adding new rows, so new rows doesn't have old fields and old rows doesn't have new fields.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 07:16:36 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-07-08T07:16:36Z</dc:date>
    <item>
      <title>Enrich data after Grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/1820447#M67257</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;I have the following issue. I have a large table in which I have data for calculation.&lt;/P&gt;&lt;P&gt;In one step, I limit relevant data sets with a Where condition and group them. I use the grouping with only a few fields from the original table.&lt;/P&gt;&lt;P&gt;With this data, I determine some flags and KPIs and concatenate them back to the original table.&lt;/P&gt;&lt;P&gt;Now the problem: because of the grouping at the beginning, I can't pull all the data into the load, so I'm now missing almost 75% of the contents of the fields that I didn't use.&lt;/P&gt;&lt;P&gt;Do you have any ideas on how I can fill these in?&lt;/P&gt;&lt;P&gt;Thanks and greetings&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 15:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/1820447#M67257</guid>
      <dc:creator>Danijel</dc:creator>
      <dc:date>2021-07-07T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enrich data after Grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/1820606#M67269</link>
      <description>&lt;P&gt;Hi, I'm not sure to understand... if that enriched data has only vaue for each group you can do a join or a mapping to add new fields.&lt;/P&gt;&lt;P&gt;If each group can have different values you will need an additional table with detailed data and realted them with a composite key using the grouped values to relate rows.&lt;/P&gt;&lt;P&gt;If you do a concatenate you are adding new rows, so new rows doesn't have old fields and old rows doesn't have new fields.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 07:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/1820606#M67269</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-07-08T07:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enrich data after Grouping</title>
      <link>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/2065729#M87413</link>
      <description>&lt;DIV class="text-xs flex items-center justify-center gap-1 invisible absolute left-0 top-2 -ml-4 -translate-x-full group-hover:visible !invisible"&gt;If I understand your situation correctly, you have a large table with data for calculation, and you have used a WHERE condition to limit the relevant data sets and group them. You have then used this grouped data to determine some flags and KPIs, and you have concatenated them back to the original table. However, because of the grouping at the beginning, you are now missing almost 75% of the contents of the fields that you didn't use.&lt;/DIV&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap break-words"&gt;
&lt;DIV class="result-streaming markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Two potential solutions to this issue are to use&amp;nbsp;&lt;A href="https://www.globaldatabase.com/data-enrichment" target="_self"&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;b2b data enrichment tools&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:334465,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;10&amp;quot;:2,&amp;quot;12&amp;quot;:0,&amp;quot;14&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0},&amp;quot;15&amp;quot;:&amp;quot;Arial&amp;quot;,&amp;quot;19&amp;quot;:0,&amp;quot;21&amp;quot;:0}"&gt;b2b data enrichment tools&lt;/SPAN&gt;&lt;/A&gt; or a JOIN operation to rejoin the grouped data with the original table, using a common key or set of keys. This will allow you to bring in all the missing fields that you need.&lt;/P&gt;
&lt;P&gt;For example, let's say that you grouped your data by a field called "customer_id", and you only used the fields "customer_id", "product_id", and "order_date" in your grouping. You can then join this grouped data back to the original table using the "customer_id" field as the common key, and bring in all the missing fields that you need.&lt;/P&gt;
&lt;P&gt;Here is an example SQL query that you can use:&lt;/P&gt;
&lt;P&gt;SELECT *&lt;BR /&gt;FROM original_table&lt;BR /&gt;JOIN (&lt;BR /&gt;SELECT customer_id, MAX(order_date) as max_order_date, COUNT(*) as order_count&lt;BR /&gt;FROM original_table&lt;BR /&gt;WHERE &amp;lt;your WHERE condition here&amp;gt;&lt;BR /&gt;GROUP BY customer_id&lt;BR /&gt;) grouped_data&lt;BR /&gt;ON original_table.customer_id = grouped_data.customer_id&lt;BR /&gt;AND original_table.order_date = grouped_data.max_order_date&lt;/P&gt;
&lt;P&gt;In this example, we are joining the original table with the grouped data using the "customer_id" field as the common key. We are also using the "MAX" and "COUNT" aggregation functions to determine some flags and KPIs in the grouped data.&lt;/P&gt;
&lt;P&gt;By using a JOIN operation like this, you should be able to bring in all the missing fields that you need from the original table.&lt;/P&gt;
&lt;P&gt;I hope this helps! Let me know if you have any further questions.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Apr 2023 11:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Enrich-data-after-Grouping/m-p/2065729#M87413</guid>
      <dc:creator>Forlorn</dc:creator>
      <dc:date>2023-04-28T11:11:48Z</dc:date>
    </item>
  </channel>
</rss>

