<?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: How to rewrite subfield statement without creating duplicate rows ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534471#M108377</link>
    <description>&lt;P&gt;Not sure what it is you're doing here, but it sounds like you want something like:&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;Load * From YourMainTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FilterTable:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;CALL_NUMBER, TYPE_OF_SALE&lt;/P&gt;&lt;P&gt;0, 'NEW SALES'&lt;/P&gt;&lt;P&gt;0, 'ALL SALES'&lt;/P&gt;&lt;P&gt;1, 'ALL SALES'&lt;/P&gt;&lt;P&gt;2, 'ALL SALES']; // Etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that you can just use AutoGenerate() if you want to create a large number of call numbers rather than loading them inline.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Oct 2025 13:51:11 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2025-10-27T13:51:11Z</dc:date>
    <item>
      <title>How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534468#M108376</link>
      <description>&lt;P&gt;&amp;nbsp;Here is my statement - this ge&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SUBFIELD ( IF (TRIM( CALL_NUMBER ='0' , 'NEW SALES|ALL SALES' , 'ALL SALES' , '|'). AS 'FINAL SALES'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If 'NEW SALES' is selected must show 0&lt;/P&gt;
&lt;P&gt;If 'ALL SALES' is selected also must show 0 and 1,2,3,4 .....&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 13:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534468#M108376</guid>
      <dc:creator>LaData</dc:creator>
      <dc:date>2025-10-27T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534471#M108377</link>
      <description>&lt;P&gt;Not sure what it is you're doing here, but it sounds like you want something like:&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;Load * From YourMainTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FilterTable:&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;CALL_NUMBER, TYPE_OF_SALE&lt;/P&gt;&lt;P&gt;0, 'NEW SALES'&lt;/P&gt;&lt;P&gt;0, 'ALL SALES'&lt;/P&gt;&lt;P&gt;1, 'ALL SALES'&lt;/P&gt;&lt;P&gt;2, 'ALL SALES']; // Etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that you can just use AutoGenerate() if you want to create a large number of call numbers rather than loading them inline.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 13:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534471#M108377</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-10-27T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534477#M108378</link>
      <description>&lt;P&gt;Why not following the suggestion from Vegar?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Answers/Create-a-flag-or-dimension-with-2-IF-conditions-Must-show-0/m-p/2534385#M485" target="_blank"&gt;Create a flag or dimension with 2 IF conditions. M... - Qlik Community - 2534385&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534477#M108378</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-10-27T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534479#M108379</link>
      <description>&lt;P&gt;INLINE LOAD creates 1 or 2 additional rows - also my data is loaded from SQL select and reloaded daily on a trigger&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534479#M108379</guid>
      <dc:creator>LaData</dc:creator>
      <dc:date>2025-10-27T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534496#M108384</link>
      <description>&lt;P&gt;This Inline does not create any rows in the original table. It simply creates a second table that can be used to filter the first.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 20:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534496#M108384</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-10-27T20:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to rewrite subfield statement without creating duplicate rows ?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534521#M108392</link>
      <description>&lt;P&gt;As earlier suggested, keeping the new dimension table associated,&amp;nbsp; and not joined, with your main table will not increase the number of lines in your data model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total SUM(SALES_AMOUNY) without any selections will remain correct and identical to the value you get if selecting 'ALL SALES'.&lt;/P&gt;&lt;P&gt;The SUM(SALES_AMOUNT) will be correct&amp;nbsp; when filtering on 'NEW SALES'.&lt;/P&gt;&lt;P&gt;When adding [FINAL SALES] to a table then the values for each row will be correct and the total will be correct (unless you change the totalling to&amp;nbsp;&lt;EM&gt;sum of rows.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Unless you have a specific use case for your request, I honestly think it would be a better approach to skip the 'ALL SALES' value. Let your field be either 'NEW SALES' or 'REPEAT SALES',&amp;nbsp; and instead teach the users that they get ALL SALES by filtering on none or both of these values. That is how I would have set this up in most scenarios.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 06:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-rewrite-subfield-statement-without-creating-duplicate/m-p/2534521#M108392</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-10-28T06:12:08Z</dc:date>
    </item>
  </channel>
</rss>

