<?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 Bar Diagram - Each bar another function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907144#M652452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a bar diagram.&lt;/P&gt;&lt;P&gt;This diagram should contain of multiple BARS. Each BAR representing a controlnumer.&lt;/P&gt;&lt;P&gt;Behind each controlnumber should be a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can model it within the loading script, but when i click on a bar then i dont see the underliing filters in the selection overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make it work for 1 Bar per diagramm like the following.&lt;/P&gt;&lt;P&gt;I create a bar diagram and add a dynamic dimension for instance:&lt;/P&gt;&lt;P&gt;=if(hair_color='blond','Controlnumber1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is - i try to add other controlnumbers. The if / else does not work for that.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;=if(hair_color='blond','Controlnumber1',&lt;/P&gt;&lt;P&gt;if(hair_color='blond' AND eyes='blue' ,'Controlnumber2'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(base formula = count(distinct personids)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem about this is, that controlnumber 2 gets not shown because it is a subset of controlnumber 1. QlikView seems to only allow to display the bars if they are not overlapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my controlnumbers DO overlap.&lt;/P&gt;&lt;P&gt;So how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind, that i want to maintain the connection to other tables and that when i click on a bar, i still want to see the conditions / filters for this bar (which works for a single bar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Aug 2015 15:46:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-01T15:46:15Z</dc:date>
    <item>
      <title>Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907144#M652452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a bar diagram.&lt;/P&gt;&lt;P&gt;This diagram should contain of multiple BARS. Each BAR representing a controlnumer.&lt;/P&gt;&lt;P&gt;Behind each controlnumber should be a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can model it within the loading script, but when i click on a bar then i dont see the underliing filters in the selection overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make it work for 1 Bar per diagramm like the following.&lt;/P&gt;&lt;P&gt;I create a bar diagram and add a dynamic dimension for instance:&lt;/P&gt;&lt;P&gt;=if(hair_color='blond','Controlnumber1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is - i try to add other controlnumbers. The if / else does not work for that.&lt;/P&gt;&lt;P&gt;e.g.:&lt;/P&gt;&lt;P&gt;=if(hair_color='blond','Controlnumber1',&lt;/P&gt;&lt;P&gt;if(hair_color='blond' AND eyes='blue' ,'Controlnumber2'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(base formula = count(distinct personids)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem about this is, that controlnumber 2 gets not shown because it is a subset of controlnumber 1. QlikView seems to only allow to display the bars if they are not overlapping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my controlnumbers DO overlap.&lt;/P&gt;&lt;P&gt;So how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind, that i want to maintain the connection to other tables and that when i click on a bar, i still want to see the conditions / filters for this bar (which works for a single bar).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 15:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907144#M652452</guid>
      <dc:creator />
      <dc:date>2015-08-01T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907145#M652453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's just enough to order your conditions subset first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(hair_color='blond' AND eyes='blue' ,'Controlnumber2',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(hair_color='blond','Controlnumber1'&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or do you want to the records to be counted in the subset as well as in the superset?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then you need to link the records to both sets in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 15:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907145#M652453</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-01T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907146#M652454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for the hint. Actually now after appliing your solution it still not works as i want it to work.&lt;/P&gt;&lt;P&gt;And yes, i think i want the records to be counted in the subset and the superset. Actually i would really prefer&lt;/P&gt;&lt;P&gt;if those BARS / SETS are completely independent from each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After appliing your solution i get:&lt;/P&gt;&lt;P&gt;5 blond blue&lt;/P&gt;&lt;P&gt;10 blon.&lt;/P&gt;&lt;P&gt;((In reality i should get 15 blond))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically - i think your second part should be my solution:&lt;/P&gt;&lt;P&gt;"Then you need to link the records to both sets in the script."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i do not know how to do this. Could you maybe give me a code snippet? Or explain a bit further - i am pretty much beginner level in QlikView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 16:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907146#M652454</guid>
      <dc:creator />
      <dc:date>2015-08-01T16:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907147#M652455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;maybe You can use ValueList() .&lt;/P&gt;&lt;P&gt;See attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 16:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907147#M652455</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-08-01T16:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907148#M652456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, you create a table with a n:m relation between personids and control numbers, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ControlNumber:&lt;/P&gt;&lt;P&gt;LOAD personids,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ControlNumber1' as ControlNumber&lt;/P&gt;&lt;P&gt;FROM YourTableWithPersonIDsHairColorAndEyes&lt;/P&gt;&lt;P&gt;WHERE hair_color = 'blond';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (ControlNumber)&lt;/P&gt;&lt;P&gt;LOAD personids,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ControlNumber2' as ControlNumber&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM YourTableWithPersonIDsHairColorAndEyes&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;WHERE hair_color = 'blond' AND eyes='blue';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 16:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907148#M652456</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-01T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Diagram - Each bar another function</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907149#M652457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! That made it work for me! Exactly how i want it!!!! Great help apreciate it!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also thanks to Antonio - tried out the solution - could not make it work like i want to with the ValueList. Maybe there is a way to use it - but i could not figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 16:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-Diagram-Each-bar-another-function/m-p/907149#M652457</guid>
      <dc:creator />
      <dc:date>2015-08-01T16:44:40Z</dc:date>
    </item>
  </channel>
</rss>

