<?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 do you tag a journal entries (parent) based on specific account numbers (children) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528055#M37935</link>
    <description>I was thinking about it from a SQL perspective and am thinking I could use a self join.&lt;BR /&gt;&lt;BR /&gt;Select&lt;BR /&gt;A.*,&lt;BR /&gt;(Case When Left(A.ACCOUNT,2)='10' Then 'Treasury'&lt;BR /&gt;When B.JRNL_ENTRY Is Not Null Then 'Treasury' Else 'Other' END) As Treasury Flag&lt;BR /&gt;&lt;BR /&gt;From A&lt;BR /&gt;&lt;BR /&gt;Left Outer Join B&lt;BR /&gt;On&lt;BR /&gt;Left (B.ACCOUNT,2)='10'&lt;BR /&gt;And A.JRNL_ENTRY = B.JRNL_ENTRY&lt;BR /&gt;And A.JRNL_DESCR = B.JRNL_DESCR&lt;BR /&gt;And Left(A.ACCOUNT,2) &amp;lt;&amp;gt; '10'</description>
    <pubDate>Tue, 08 Jan 2019 22:43:23 GMT</pubDate>
    <dc:creator>stschwarz</dc:creator>
    <dc:date>2019-01-08T22:43:23Z</dc:date>
    <item>
      <title>How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1527974#M37929</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;I am running into some challenges figuring out how to tag all Journal Entries that contain a specific transaction to an account.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;See sample screen shot of data below:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/3348i6D57192F795817E4/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="JRNL Entry Screenshot.jpg" title="JRNL Entry Screenshot.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If the ACCOUNT field's left 2 digits start with 10, I would like to tag both of the lines related to this JRN ENTRY as 'FLAG'.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1527974#M37929</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-08T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1527984#M37931</link>
      <description>&lt;P&gt;Create an extra field when you load the data:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...some fields...,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If(Left([ACCOUNT,2) = '10', 1,0) as FLAG,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...some more fields...&lt;BR /&gt;FROM ...source_table... ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1527984#M37931</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-08T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528009#M37932</link>
      <description>I appreciate the response. I am probably not doing a very good job at explaining the problem. So when I would write a formula like that the record the has the '10' would return the FLAG, however, I would also want the record that does not have a '10' in the account field to return the FLAG because they are both have the same JRNL ENTRY. Not sure if I am explaining it properly.</description>
      <pubDate>Tue, 08 Jan 2019 18:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528009#M37932</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-08T18:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528021#M37933</link>
      <description>Basically both records on the screen shot should return the FLAG value because one of the two ACCOUNT's has a '10' and they are both in the same JRNL ENTRY</description>
      <pubDate>Tue, 08 Jan 2019 19:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528021#M37933</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-08T19:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528054#M37934</link>
      <description>I was thinking about it from a SQL perspective and would want to use a self join:&lt;BR /&gt;Select&lt;BR /&gt;A.*,&lt;BR /&gt;(Case When Left(A.ACCOUNT,2)='10' Then 'Treasury'&lt;BR /&gt;When B.JRNL_ENTRY Is Not Null Then 'Treasury' Else 'Other' END) As Treasury Flag&lt;BR /&gt;&lt;BR /&gt;From A&lt;BR /&gt;&lt;BR /&gt;Left Outer Join B&lt;BR /&gt;On&lt;BR /&gt;Left (B.ACCOUNT,2)='10'&lt;BR /&gt;And A.JRNL_ENTRY = B.JRNL_ENTRY&lt;BR /&gt;And A.JRNL_DESCR = B.JRNL_DESCR&lt;BR /&gt;And Left(A.ACCOUNT,2) &amp;lt;&amp;gt; '10'&lt;BR /&gt;&lt;BR /&gt;Not sure how to do that in Qlik Sense</description>
      <pubDate>Tue, 08 Jan 2019 22:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528054#M37934</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-08T22:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528055#M37935</link>
      <description>I was thinking about it from a SQL perspective and am thinking I could use a self join.&lt;BR /&gt;&lt;BR /&gt;Select&lt;BR /&gt;A.*,&lt;BR /&gt;(Case When Left(A.ACCOUNT,2)='10' Then 'Treasury'&lt;BR /&gt;When B.JRNL_ENTRY Is Not Null Then 'Treasury' Else 'Other' END) As Treasury Flag&lt;BR /&gt;&lt;BR /&gt;From A&lt;BR /&gt;&lt;BR /&gt;Left Outer Join B&lt;BR /&gt;On&lt;BR /&gt;Left (B.ACCOUNT,2)='10'&lt;BR /&gt;And A.JRNL_ENTRY = B.JRNL_ENTRY&lt;BR /&gt;And A.JRNL_DESCR = B.JRNL_DESCR&lt;BR /&gt;And Left(A.ACCOUNT,2) &amp;lt;&amp;gt; '10'</description>
      <pubDate>Tue, 08 Jan 2019 22:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528055#M37935</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-08T22:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528385#M37956</link>
      <description>For those that are interested. Here is the SQL script that resulted in the right output flag:&lt;BR /&gt;&lt;BR /&gt;SELECT&lt;BR /&gt;a.*,&lt;BR /&gt;(Case When B.[JRN_ENTRY] Is Not Null Then 'Treasury' Else 'Other' END) As Treasury_Flag&lt;BR /&gt;&lt;BR /&gt;From Table A&lt;BR /&gt;&lt;BR /&gt;LEFT OUTER JOIN&lt;BR /&gt;&lt;BR /&gt;(SELECT DISTINCT&lt;BR /&gt;CAST([JRN_ENTRY] AS VARCHAR(50)) AS JRN_ENTRY,&lt;BR /&gt;CAST([JRN_DESCR] AS VARCHAR(50)) AS JRN_DESCR&lt;BR /&gt;FROM Table&lt;BR /&gt;WHERE Left(ACCOUNT,2) in ('10','11')&lt;BR /&gt;) B&lt;BR /&gt;ON&lt;BR /&gt;CAST(a.[JRN_ENTRY] AS VARCHAR(100)) = CAST(b.[JRN_ENTRY] AS VARCHAR(100))&lt;BR /&gt;And CAST(a.[JRN_DESCR] AS VARCHAR(100)) = CAST(b.[JRN_DESCR] AS VARCHAR(100))&lt;BR /&gt;;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528385#M37956</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-09T13:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528414#M37961</link>
      <description>&lt;P&gt;Basically the same as in SQL except Qlik Sense uses field names to do the joining instead of using an ON syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Select * From A;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Left Join (Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JRNL_ENTRY&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Treasurey' as TREASURY_FLAG&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RESIDENT &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(ACCOUNT,2)='10'&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528414#M37961</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-09T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you tag a journal entries (parent) based on specific account numbers (children)</title>
      <link>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528432#M37963</link>
      <description>Thank you so much!</description>
      <pubDate>Wed, 09 Jan 2019 14:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-do-you-tag-a-journal-entries-parent-based-on-specific/m-p/1528432#M37963</guid>
      <dc:creator>stschwarz</dc:creator>
      <dc:date>2019-01-09T14:44:46Z</dc:date>
    </item>
  </channel>
</rss>

