<?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: Expressions in charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443381#M165269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first option worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 18:41:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-14T18:41:40Z</dc:date>
    <item>
      <title>Expressions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443378#M165266</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 have the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables: 1. Users and 2.Events. They have a common field called user_id, and I am trying to make a straight table to see all the information of the users and the events (clics) they have done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Users]&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;email&lt;/P&gt;&lt;P&gt;user_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Events]&lt;/P&gt;&lt;P&gt;user_id&lt;/P&gt;&lt;P&gt;type_of_clic&lt;/P&gt;&lt;P&gt;clic_id (consecutive number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to display a chart with the fields: Name, email, and # of clics per type (clic_type1, clic_type 2, clic_type3, clic_type4).&lt;/P&gt;&lt;P&gt;To calculate the # of clics per type I am using these expressions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clic_type1:&lt;/P&gt;&lt;P&gt;= if (type_of_clic=1,count(clic_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clic_type2:&lt;/P&gt;&lt;P&gt;= if (type_of_clic=2,count(clic_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clic_type3:&lt;/P&gt;&lt;P&gt;= if (type_of_clic=3,count(clic_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clic_type4:&lt;/P&gt;&lt;P&gt;= if (type_of_clic=4,count(clic_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am only getting 1 row (one user) as a result in my table, and I should be getting 3 rows of results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443378#M165266</guid>
      <dc:creator />
      <dc:date>2013-03-14T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443379#M165267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample file or screen shot of your chart?&lt;/P&gt;&lt;P&gt;You need set analysis i think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:33:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443379#M165267</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-03-14T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443380#M165268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use four expressions like &lt;/P&gt;&lt;P&gt;count({&amp;lt;type_of_clic={1}&amp;gt;} clic_id) &lt;/P&gt;&lt;P&gt;count({&amp;lt;type_of_clic={2}&amp;gt;} clic_id) &lt;/P&gt;&lt;P&gt;count({&amp;lt;type_of_clic={3}&amp;gt;} clic_id) &lt;/P&gt;&lt;P&gt;count({&amp;lt;type_of_clic={4}&amp;gt;} clic_id) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could use a pivot table, add type_of_clic as a dimension and drag it to the top right so that it gets displayed horizontally. Then you only need one expression count(clic_id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443380#M165268</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-14T18:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in charts</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443381#M165269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first option worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 18:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-charts/m-p/443381#M165269</guid>
      <dc:creator />
      <dc:date>2013-03-14T18:41:40Z</dc:date>
    </item>
  </channel>
</rss>

