<?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: aggr condition in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422772#M803160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have change the data model, and it working well, Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2017 12:30:51 GMT</pubDate>
    <dc:creator>limingthefirst</dc:creator>
    <dc:date>2017-11-20T12:30:51Z</dc:date>
    <item>
      <title>aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422767#M803155</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;I have a issue in bar chart using aggr function when calculate the no. of vendors for each part and company_site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension is:&lt;/P&gt;&lt;P&gt;=if(aggr(Count(DISTINCT Vendor_Code), Part_Code,Company_Site)=1,&lt;/P&gt;&lt;P&gt;'1 Vendor',&lt;/P&gt;&lt;P&gt;aggr(Count(DISTINCT Vendor_Code), Part_Code,Company_Site)&amp;amp;' Vendors')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the expression is:&lt;/P&gt;&lt;P&gt;Count(DISTINCT Part_Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the bar chart is below, and link to category detail table. Now the Company Site and Part Number column is not selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183877_1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is when click the 2 Vendors in bar chart, 1 Vendor has appeared. Normally, this should not appear.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183896_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owing to the third record, Company Site and Part Number has only one Vendor.&lt;/P&gt;&lt;P&gt;The first and second record is what I want when I click the bar chart.&lt;/P&gt;&lt;P&gt;Can anybody help me to fix this issue? Thanks. &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/aggr-condition-in-bar-chart/m-p/1422767#M803155</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422768#M803156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a new field in the script using this&lt;/P&gt;&lt;P&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;LOAD AutoNumber(Part_Code&amp;amp;Company_Site) as Key,&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;BR /&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;and then try this as your dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If(Aggr(Count(DISTINCT Vendor_Code), Key) = 1, '1 Vendor', Aggr(Count(DISTINCT Vendor_Code), Key)&amp;amp;' Vendors')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422768#M803156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422769#M803157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Sunny, the Part_Code and Company_Site is in different table, I will try to modify the data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422769#M803157</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2017-11-20T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422770#M803158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be possible without changing the data model, but it will have to be tested, would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422770#M803158</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-20T11:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422771#M803159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have create a demo.qvw, but the issue is it appear 3 Vendors when click the 1 Vendor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 11:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422771#M803159</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2017-11-20T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: aggr condition in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422772#M803160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have change the data model, and it working well, Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 12:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-condition-in-bar-chart/m-p/1422772#M803160</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2017-11-20T12:30:51Z</dc:date>
    </item>
  </channel>
</rss>

