<?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: Getting attribute values for multiple fields from single attribute table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905393#M470384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you share data model or script ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 15:53:18 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-05-21T15:53:18Z</dc:date>
    <item>
      <title>Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905389#M470380</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;&lt;/P&gt;&lt;P&gt;I have a Lead table with fields CustomerName, CustomerCityID, LeadStageID, LeadStageStatus.&amp;nbsp; Other than CustomerName, all other fields have numeric values which map to a corresponding table with 3 fields: AttributeName, AttributeValue and DisplayValue where AttributeName has values similar to the fieldName (CustomerCityID, LeadStageID, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to do an analysis of # of customers by City, I need to map Lead.CustomerCityID to Attribute.AttributeDisplayValue where AttributeName='CityID' and AttributeValue=&amp;lt;the value in CustomerCityID&amp;gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make this connection for either a straight table or for a bar graph?&amp;nbsp; What would my dimensions and expressions be for a bar graph which shows count of customers by City name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 11:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905389#M470380</guid>
      <dc:creator />
      <dc:date>2015-05-21T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905390#M470381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;hi! try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;chart dimension -&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #0433ff; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #0433ff; font-size: 10pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #941100; font-family: 'Courier New';"&gt;CustomerCityID&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #941100; font-family: 'Courier New';"&gt;AttributeValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #941100; font-family: 'Courier New';"&gt;DisplayValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #000000;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;chart expression-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0433ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #941100;"&gt;AttributeName&lt;/SPAN&gt;={'CustomerCityID'}&amp;gt;}&lt;SPAN style="color: #941100;"&gt;CustomerName&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 13:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905390#M470381</guid>
      <dc:creator />
      <dc:date>2015-05-21T13:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905391#M470382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaideep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you first prepare the data model using mapping tables, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP_CITY:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;AttributeValue,&lt;/P&gt;&lt;P&gt;DisplayValue&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MAP_TABLE&lt;/P&gt;&lt;P&gt;WHERE AttributeName = 'CityID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP_STAGE:&lt;BR /&gt;MAPPING LOAD&lt;/P&gt;&lt;P&gt;AttributeValue,&lt;/P&gt;&lt;P&gt;DisplayValue&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MAP_TABLE&lt;/P&gt;&lt;P&gt;WHERE AttributeName = 'LeadStageID';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(etc...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAD:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CustomerName,&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_CITY',CustomerCityID) as CustomerCity,&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_STAGE',LeadStageID) as LeadStage,&lt;/P&gt;&lt;P&gt;ApplyMap('MAP_STAGE_STATUS',LeadStageStatus) as LeadStageStatus&lt;/P&gt;&lt;P&gt;FROM LEAD_TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//---------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then you can just add CustomerCity as a dimension and create a count function for the expression.&lt;/P&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;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 13:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905391#M470382</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-05-21T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905392#M470383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are willing to change your data model then you could simply load multiple attribute table for each field..so for &lt;/P&gt;&lt;P&gt;Cities something like below which will be linked to Lead table by CustomerCityID&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;CustomerCity:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;AttributeValue&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;CustomerCityID&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;DisplayValue&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;City&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Attribute&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;AttributeName&lt;SPAN style="color: #000000;"&gt;='CustomerCityID'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 13:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905392#M470383</guid>
      <dc:creator />
      <dc:date>2015-05-21T13:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905393#M470384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you share data model or script ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905393#M470384</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-21T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting attribute values for multiple fields from single attribute table</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905394#M470385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your responses.&amp;nbsp; I used the 3rd option of creating multiple attribute tables since my data was being obtained through an SQL load which did not allow me to use the ApplyMap function.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 18:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-attribute-values-for-multiple-fields-from-single/m-p/905394#M470385</guid>
      <dc:creator />
      <dc:date>2015-05-28T18:38:37Z</dc:date>
    </item>
  </channel>
</rss>

