<?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: Applymap not correctly mapping, DateBridge in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1673887#M51073</link>
    <description>&lt;P&gt;Sorry for the late answer, but you were right Aapurva.&lt;/P&gt;&lt;P&gt;Changing&amp;nbsp;&lt;STRONG&gt;NUMER_KONTRAHENTA&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp;&lt;STRONG&gt;PELNY_NR_FAKTURY &lt;/STRONG&gt;was necessary, but in order to solve the issue I also had to play with the data, so that the PELNY_NR_FAKTURY, DATA_TRANSAKCJI and DATA_REJESTRACJI would be all present in one table.&lt;/P&gt;&lt;P&gt;So after all, I did not use Applymap here, but I used it to transfer data between my tables:&lt;BR /&gt;&lt;STRONG&gt;[mapping_temp]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load NUMER_KONTRAHENTA, DATA_REJESTRACJI Resident KONTRAHENCI_DANE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Drop field DATA_REJESTRACJI from KONTRAHENCI_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And then in the &lt;EM&gt;Load&lt;/EM&gt; of table &lt;STRONG&gt;SPRZEDAZ_DANE&lt;/STRONG&gt;:&lt;BR /&gt;&lt;STRONG&gt;ApplyMap('mapping_temp', NUMER_KONTRAHENTA, Null()) AS DATA_REJESTRACJI,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;The updated code looks as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_REJESTRACJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load distinct PELNY_NR_FAKTURY, DATA_REJESTRACJI Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_TRANSAKCJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load distinct PELNY_NR_FAKTURY, DATA_TRANSAKCJI Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DateBridge]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;//NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(DATA_REJESTRACJI, 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Rejestracja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE; &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;//NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(DATA_TRANSAKCJI, 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Transakcja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 13:52:38 GMT</pubDate>
    <dc:creator>WH_Aqua</dc:creator>
    <dc:date>2020-02-10T13:52:38Z</dc:date>
    <item>
      <title>Applymap not correctly mapping, DateBridge</title>
      <link>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670786#M50700</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I wanted to ask the community for help in my issue with the Applymap() function. I am using it in a DateBridge creation for the Canonical Date. I've tried to use examples from the web and the community and I think I am following them correctly, but it still does not map as it should.&lt;/P&gt;&lt;P&gt;The main post I am using as an example is this: &lt;A title="Canonical Date" href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_self"&gt;Canonical Date&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anybody point me in the right direction?&lt;/P&gt;&lt;P&gt;EDIT: I added sample data for the tables used in analysis.&lt;/P&gt;&lt;P&gt;The data model is available on the screen attached and the code is as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_REJESTRACJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load NUMER_KONTRAHENTA, DATA_REJESTRACJI Resident KONTRAHENCI_DANE; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_TRANSAKCJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load PELNY_NR_FAKTURY, DATA_TRANSAKCJI Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DateBridge]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY, //NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(Applymap('DATA_REJESTRACJI_map', NUMER_KONTRAHENTA,Null()), 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Rejestracja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY, //NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(DATA_TRANSAKCJI, 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Transakcja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670786#M50700</guid>
      <dc:creator>WH_Aqua</dc:creator>
      <dc:date>2024-11-16T03:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap not correctly mapping, DateBridge</title>
      <link>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670818#M50705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I noticed, the ID field used in the Applymap table (&lt;STRONG&gt;DateBridge&lt;/STRONG&gt;) is&amp;nbsp;&lt;STRONG&gt;NUMER_KONTRAHENTA&lt;/STRONG&gt; which is not present in the table but in Mapping table&amp;nbsp;&lt;STRONG&gt;DATA_REJESTRACJI_map.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;According to the Applymap functionality, the id which is used in the Applymap table should be the ID available in the same table. So, in your case, changing&amp;nbsp;&lt;STRONG&gt;NUMER_KONTRAHENTA&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp;&lt;STRONG&gt;PELNY_NR_FAKTURY &lt;/STRONG&gt;should work.&lt;/P&gt;&lt;P&gt;[DateBridge]:&lt;BR /&gt;Load&lt;BR /&gt;PELNY_NR_FAKTURY, //NUMER_KONTRAHENTA,&lt;BR /&gt;Date(Applymap('DATA_REJESTRACJI_map', &lt;STRONG&gt;PELNY_NR_FAKTURY&lt;/STRONG&gt;,Null()), 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;BR /&gt;'Rejestracja' as DateType&lt;BR /&gt;Resident SPRZEDAZ_DANE;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Apurva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670818#M50705</guid>
      <dc:creator>aapurva09</dc:creator>
      <dc:date>2020-01-30T10:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap not correctly mapping, DateBridge</title>
      <link>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670821#M50706</link>
      <description>&lt;P&gt;Hello Apurva,&lt;/P&gt;&lt;P&gt;First of all, thanks for answering.&lt;/P&gt;&lt;P&gt;Yes, that might be a problem, however the field DATA_REJESTRACJI which I need to map is in the different table than the PELNY_NR_FAKTURY field. You can see that better on the Data Model screen.&lt;/P&gt;&lt;P&gt;I can't quite get it working.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1670821#M50706</guid>
      <dc:creator>WH_Aqua</dc:creator>
      <dc:date>2020-01-30T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap not correctly mapping, DateBridge</title>
      <link>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1673887#M51073</link>
      <description>&lt;P&gt;Sorry for the late answer, but you were right Aapurva.&lt;/P&gt;&lt;P&gt;Changing&amp;nbsp;&lt;STRONG&gt;NUMER_KONTRAHENTA&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp;&lt;STRONG&gt;PELNY_NR_FAKTURY &lt;/STRONG&gt;was necessary, but in order to solve the issue I also had to play with the data, so that the PELNY_NR_FAKTURY, DATA_TRANSAKCJI and DATA_REJESTRACJI would be all present in one table.&lt;/P&gt;&lt;P&gt;So after all, I did not use Applymap here, but I used it to transfer data between my tables:&lt;BR /&gt;&lt;STRONG&gt;[mapping_temp]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load NUMER_KONTRAHENTA, DATA_REJESTRACJI Resident KONTRAHENCI_DANE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Drop field DATA_REJESTRACJI from KONTRAHENCI_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And then in the &lt;EM&gt;Load&lt;/EM&gt; of table &lt;STRONG&gt;SPRZEDAZ_DANE&lt;/STRONG&gt;:&lt;BR /&gt;&lt;STRONG&gt;ApplyMap('mapping_temp', NUMER_KONTRAHENTA, Null()) AS DATA_REJESTRACJI,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;The updated code looks as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_REJESTRACJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load distinct PELNY_NR_FAKTURY, DATA_REJESTRACJI Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_TRANSAKCJI_map:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;mapping load distinct PELNY_NR_FAKTURY, DATA_TRANSAKCJI Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[DateBridge]:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;//NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(DATA_REJESTRACJI, 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Rejestracja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE; &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;//NUMER_KONTRAHENTA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PELNY_NR_FAKTURY,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Date(DATA_TRANSAKCJI, 'YYYY-MM-DD') as DATA_KANONICZNA,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;'Transakcja' as DateType&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident SPRZEDAZ_DANE;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 13:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Applymap-not-correctly-mapping-DateBridge/m-p/1673887#M51073</guid>
      <dc:creator>WH_Aqua</dc:creator>
      <dc:date>2020-02-10T13:52:38Z</dc:date>
    </item>
  </channel>
</rss>

