<?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 tdbinput query to tmap in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209580#M1137</link>
    <description>&lt;P&gt;I am using a tdbinput with mySQL. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkvUAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134180i7464A7BFF2AC57B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkvUAAR.png" alt="0695b00000WvkvUAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the query spot I have the following:&lt;/P&gt;&lt;P&gt;"SELECT aa.tType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.iDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.previousIDate&lt;/P&gt;&lt;P&gt;FROM account as aa left join&lt;/P&gt;&lt;P&gt; (select pId, iNumber, iDate, LAG(iDate, 1) OVER (PARTITION BY pId ORDER BY iDate) as previousIDate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;from sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;where substr(iNumber,1,2)='IN') as i on aa.pId=i.pId&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and aa.tDate&amp;gt;i.previousIDate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and aa.tDate&amp;lt;=i.iDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;and aa.tId != i.iNumber&lt;/P&gt;&lt;P&gt;order by aa.pId, aa.tDate, i.iNumber"&lt;/P&gt;&lt;P&gt;This all works fine and returns results. But when I hook this up to a tmap to then do some more manipulation the tmap doesn't show anything as the input table. Normally the tmap will show the input table. I am not sure how to get the tmap to work or if there is another suggestion on how to map data that can be merge with other data. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkzHAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149287i7BE86093F2A736C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkzHAAR.png" alt="0695b00000WvkzHAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkzlAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149048i0E37EB5ECC07680B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkzlAAB.png" alt="0695b00000WvkzlAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:29:38 GMT</pubDate>
    <dc:creator>AdamS632</dc:creator>
    <dc:date>2024-11-15T22:29:38Z</dc:date>
    <item>
      <title>tdbinput query to tmap</title>
      <link>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209580#M1137</link>
      <description>&lt;P&gt;I am using a tdbinput with mySQL. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkvUAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134180i7464A7BFF2AC57B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkvUAAR.png" alt="0695b00000WvkvUAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the query spot I have the following:&lt;/P&gt;&lt;P&gt;"SELECT aa.tType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.iDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;i.previousIDate&lt;/P&gt;&lt;P&gt;FROM account as aa left join&lt;/P&gt;&lt;P&gt; (select pId, iNumber, iDate, LAG(iDate, 1) OVER (PARTITION BY pId ORDER BY iDate) as previousIDate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;from sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;where substr(iNumber,1,2)='IN') as i on aa.pId=i.pId&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and aa.tDate&amp;gt;i.previousIDate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;and aa.tDate&amp;lt;=i.iDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;and aa.tId != i.iNumber&lt;/P&gt;&lt;P&gt;order by aa.pId, aa.tDate, i.iNumber"&lt;/P&gt;&lt;P&gt;This all works fine and returns results. But when I hook this up to a tmap to then do some more manipulation the tmap doesn't show anything as the input table. Normally the tmap will show the input table. I am not sure how to get the tmap to work or if there is another suggestion on how to map data that can be merge with other data. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkzHAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149287i7BE86093F2A736C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkzHAAR.png" alt="0695b00000WvkzHAAR.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WvkzlAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149048i0E37EB5ECC07680B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WvkzlAAB.png" alt="0695b00000WvkzlAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209580#M1137</guid>
      <dc:creator>AdamS632</dc:creator>
      <dc:date>2024-11-15T22:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: tdbinput query to tmap</title>
      <link>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209581#M1138</link>
      <description>&lt;P&gt;figured it out, just needed to manually map the values into the row7 part of the tmap. Normally they auto generate from a regular tdbinput. Once I mapped them all the data was available. &lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 13:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209581#M1138</guid>
      <dc:creator>AdamS632</dc:creator>
      <dc:date>2022-10-07T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: tdbinput query to tmap</title>
      <link>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209582#M1139</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Great it is fixed and thanks for sharing your solution with us on Community.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 09:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tdbinput-query-to-tmap/m-p/2209582#M1139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-09T09:42:37Z</dc:date>
    </item>
  </channel>
</rss>

