<?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 Appropriate value of the field based on a logic in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141975#M906814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a straight table in Qlikview. I would like to show only one contact per account based on a logic. There is one-to-many relationship between Account and Contact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below for the fields I would like to show in my table:&lt;/P&gt;&lt;P&gt;Account Name, Account Type, Contact Name, Contact Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If primary contact (Contact Type) is available, than I would like to show the primary contact.&lt;/P&gt;&lt;P&gt;If primary contact is not available than I would like to show secondary contact.&lt;/P&gt;&lt;P&gt;If both primary and secondary contacts are not available, than any contact from that account works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to achieve this. Any help is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141975#M906814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a straight table in Qlikview. I would like to show only one contact per account based on a logic. There is one-to-many relationship between Account and Contact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below for the fields I would like to show in my table:&lt;/P&gt;&lt;P&gt;Account Name, Account Type, Contact Name, Contact Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If primary contact (Contact Type) is available, than I would like to show the primary contact.&lt;/P&gt;&lt;P&gt;If primary contact is not available than I would like to show secondary contact.&lt;/P&gt;&lt;P&gt;If both primary and secondary contacts are not available, than any contact from that account works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to achieve this. Any help is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141975#M906814</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141976#M906815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a numeric representation of your Contact Type values, either using Dual() function or by creating another field with a 1:1 relation between Contact Type and the new field,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Account Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contact Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual([Contact Type], -Match([Contact Type],'Secondary','Primary') ) as [Contact Type],&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a chart with dimensions Account Name and Account Type and as expressions&lt;/P&gt;&lt;P&gt;=FirstSortedValue(DISTINCT [Contact Name], [Contact Type])&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=FirstSortedValue(DISTINCT [Contact Type], [Contact Type])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 15:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141976#M906815</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-17T15:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141977#M906816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;having your Account number as your Dimension and the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(not isnull([Primary Contact] ),[Primary Contact] ,if (not IsNull([Secondary Contact]),[Secondary Contact],'No Contact'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 15:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141977#M906816</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2016-06-17T15:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141978#M906817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this needed in the front end of the application or the back end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be able to use &lt;STRONG&gt;MaxString([Contact Name])&lt;/STRONG&gt; and &lt;STRONG&gt;MaxString([Contact Type])&lt;/STRONG&gt; in the front end of the application to pick one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Account Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Account Type&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;MaxString([Contact Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;MaxString([Contact Type])&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 16:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141978#M906817</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-17T16:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141979#M906818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Swuehl. This worked perfect. Have a good one!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141979#M906818</guid>
      <dc:creator />
      <dc:date>2016-06-17T18:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Appropriate value of the field based on a logic in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141980#M906819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ziad and Sunny. Have a good one!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appropriate-value-of-the-field-based-on-a-logic-in-straight/m-p/1141980#M906819</guid>
      <dc:creator />
      <dc:date>2016-06-17T18:16:27Z</dc:date>
    </item>
  </channel>
</rss>

