<?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: Link &amp;Transform Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122463#M369850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi m w!&lt;/P&gt;&lt;P&gt;What you have done is divided TableA into Attending and Admitting tables and that is exactly what I meant by "I get the expected results by twisting the sql script by adding multiple joins". &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I am using straightbox so I was wondering if we can add some kind of expression that can solve this in a simpler way than doing much of coding in the script itself.&lt;/P&gt;&lt;P&gt;Expression to pick Name based on AttendingID and expression to pick Name based on AdmittingID.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:00:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-15T18:00:09Z</dc:date>
    <item>
      <title>Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122461#M369848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below data and format of the expected results. I don't know the right expression to use to pull the expected results. Basically, I am just trying to get the full name linked to the usernames for the end users. May be ONLY function might be the solution but I am not getting how to write the expression. I get the expected results by twisting the sql script by adding multiple joins but I am sure QlikView has an easier expression to do this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Database info&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AccountID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AttendingID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AdmittingID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;jwalker&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ptrump&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;asmith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;jwalker&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ptrump&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;asmith&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TableB&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ProviderID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Name&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;jwalker&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Walker, James&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ptrump&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Trump, Peter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;asmith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Smith, Aliya&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;SQL Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SELECT TableA.AccountID, TableB.Name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM TableA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;LEFT JOIN TableB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;ON TableA. AttendingID =TableB. ProviderID&amp;nbsp; AND TableA. AdmittingID =TableB.ProviderID&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Expected Result - What expressions should I use to get the below result???&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AccountID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AttendingName&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;AdmittingName&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Walker, James&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Trump, Peter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Smith, Aliya&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Walker, James&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Trump, Peter&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Smith, Aliya&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ton.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122461#M369848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122462#M369849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122462#M369849</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-06-15T17:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122463#M369850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi m w!&lt;/P&gt;&lt;P&gt;What you have done is divided TableA into Attending and Admitting tables and that is exactly what I meant by "I get the expected results by twisting the sql script by adding multiple joins". &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I am using straightbox so I was wondering if we can add some kind of expression that can solve this in a simpler way than doing much of coding in the script itself.&lt;/P&gt;&lt;P&gt;Expression to pick Name based on AttendingID and expression to pick Name based on AdmittingID.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122463#M369850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T18:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122464#M369851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the below expressions in a StraightBox but it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: AccountID&lt;/P&gt;&lt;P&gt;Expression 1: IF(AttendingID=ProviderID, Name)&lt;/P&gt;&lt;P&gt;Expression 2: IF(AdmittingID=ProviderID, Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122464#M369851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T19:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122465#M369852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My opinion is that it is generally better to do the extra coding in script. Adding if statements in the UI slows down the application for the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122465#M369852</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-06-15T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122466#M369853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_220998_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128016_QlikCommunity_Thread_220998_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14660260193515074" jivemacro_uid="_14660260193515074"&gt;
&lt;P&gt;mapProvNam:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Mapping LOAD * FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="220998" data-objecttype="1" href="https://community.qlik.com/thread/220998"&gt;https://community.qlik.com/thread/220998&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @2);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;TableA:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapProvNam',AttendingID) as AttendingName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapProvNam',AdmittingID) as AdmittingName&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="220998" data-objecttype="1" href="https://community.qlik.com/thread/220998"&gt;https://community.qlik.com/thread/220998&lt;/A&gt;&lt;SPAN&gt;] (html, codepage is 1252, embedded labels, table is @1);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122466#M369853</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-06-15T21:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Link &amp;Transform Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122467#M369854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I was just trying to not do this in the code script itself but as an expression. Thank you though for different solutions. Here is the logic that I am going to use for now with my actual code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT TableA.AccountID, TableB.Name as AttendingName, C.Name as AdmittingName&lt;/P&gt;&lt;P&gt;FROM TableA&lt;/P&gt;&lt;P&gt;LEFT JOIN TableB&lt;/P&gt;&lt;P&gt;ON TableA.AttendingID =TableB.ProviderID&amp;nbsp; &lt;/P&gt;&lt;P&gt;LEFT JOIN TableB as C&lt;/P&gt;&lt;P&gt;ON TableA.AdmittingID=C.ProviderID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StraightBox:&lt;/P&gt;&lt;P&gt;Dimension: AccountID&lt;/P&gt;&lt;P&gt;Expression1: AttendingName&lt;/P&gt;&lt;P&gt;Expression2: AdmittingName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 13:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Transform-Expression/m-p/1122467#M369854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-16T13:49:09Z</dc:date>
    </item>
  </channel>
</rss>

