<?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 How do I link 2 datefields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532481#M1126984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, i am a quite a QV newbie, just starting to make my new dashboards. But now I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; have a problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 queries, and i want to keep them separated (no joins in the query preferably)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1 query is for new customers&lt;/LI&gt;&lt;LI&gt;1 query is for new subscribers (when you are a customers, you are no subscriber)&lt;/LI&gt;&lt;LI&gt;I have 3 countries, DE, PL and IE.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard (see image on the bottom). On the left I have monthnumbers, but I want them to connect.&lt;/P&gt;&lt;P&gt;When i click on 12 in the upper field, I also want the 12 in the bottom field to be selected. Or perhaps have them in one field!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem i have when i want to combine the 2 graphs, i use&lt;/P&gt;&lt;P&gt;sum(if(monthcust=monthsub,customers+subscribers))/3.&lt;/P&gt;&lt;P&gt;The 3 on the end is to get the right results (3 countries), a bit stupid but it works.&lt;/P&gt;&lt;P&gt;I would rather have it stacked by the way, now its 1 blue graph, but I prefer email onlies and customers to be separated but in 1 graph..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible as well? thanks!&lt;/P&gt;&lt;P&gt;Ps. these are my queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#subscribers&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; MONTH(s.added) AS monthsub,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dicsub.iso2 AS countrysub,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM(CASE WHEN (s.customer_id=0) THEN 1 ELSE 0 END) AS subscribers&lt;/P&gt;&lt;P&gt;FROM subscriber s&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN variant v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON v.id = s.variant_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN dic_country dicsub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON dicsub.id = v.country_id&lt;/P&gt;&lt;P&gt;GROUP BY MONTH(s.added),dicsub.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;# customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; MONTH(c.date_register) AS monthcust,&lt;/P&gt;&lt;P&gt;&amp;nbsp; diccust.iso2 AS countrycust,&lt;/P&gt;&lt;P&gt;&amp;nbsp; COUNT(c.id)&amp;nbsp; AS customers&lt;/P&gt;&lt;P&gt;FROM customer c&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN dic_country diccust&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON diccust.id = c.id_country&lt;/P&gt;&lt;P&gt;GROUP BY MONTH(c.date_register),diccust.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50890_qv.jpg" style="width: 620px; height: 369px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Dec 2013 22:27:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-28T22:27:08Z</dc:date>
    <item>
      <title>How do I link 2 datefields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532481#M1126984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, i am a quite a QV newbie, just starting to make my new dashboards. But now I&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; have a problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 queries, and i want to keep them separated (no joins in the query preferably)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1 query is for new customers&lt;/LI&gt;&lt;LI&gt;1 query is for new subscribers (when you are a customers, you are no subscriber)&lt;/LI&gt;&lt;LI&gt;I have 3 countries, DE, PL and IE.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard (see image on the bottom). On the left I have monthnumbers, but I want them to connect.&lt;/P&gt;&lt;P&gt;When i click on 12 in the upper field, I also want the 12 in the bottom field to be selected. Or perhaps have them in one field!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem i have when i want to combine the 2 graphs, i use&lt;/P&gt;&lt;P&gt;sum(if(monthcust=monthsub,customers+subscribers))/3.&lt;/P&gt;&lt;P&gt;The 3 on the end is to get the right results (3 countries), a bit stupid but it works.&lt;/P&gt;&lt;P&gt;I would rather have it stacked by the way, now its 1 blue graph, but I prefer email onlies and customers to be separated but in 1 graph..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible as well? thanks!&lt;/P&gt;&lt;P&gt;Ps. these are my queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#subscribers&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; MONTH(s.added) AS monthsub,&lt;/P&gt;&lt;P&gt;&amp;nbsp; dicsub.iso2 AS countrysub,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM(CASE WHEN (s.customer_id=0) THEN 1 ELSE 0 END) AS subscribers&lt;/P&gt;&lt;P&gt;FROM subscriber s&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN variant v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON v.id = s.variant_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN dic_country dicsub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON dicsub.id = v.country_id&lt;/P&gt;&lt;P&gt;GROUP BY MONTH(s.added),dicsub.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;# customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; MONTH(c.date_register) AS monthcust,&lt;/P&gt;&lt;P&gt;&amp;nbsp; diccust.iso2 AS countrycust,&lt;/P&gt;&lt;P&gt;&amp;nbsp; COUNT(c.id)&amp;nbsp; AS customers&lt;/P&gt;&lt;P&gt;FROM customer c&lt;/P&gt;&lt;P&gt;&amp;nbsp; JOIN dic_country diccust&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON diccust.id = c.id_country&lt;/P&gt;&lt;P&gt;GROUP BY MONTH(c.date_register),diccust.id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50890_qv.jpg" style="width: 620px; height: 369px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 22:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532481#M1126984</guid>
      <dc:creator />
      <dc:date>2013-12-28T22:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I link 2 datefields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532482#M1126985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make their alias the same name so instead of monthsub and monthcust call them monthconcat both&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then they will link to each other, and then i think they would refer to each other.. try that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then select monthconcat to the left instead and use monthconcat as dimensions in your charts instead&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Dec 2013 23:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532482#M1126985</guid>
      <dc:creator />
      <dc:date>2013-12-28T23:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I link 2 datefields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532483#M1126986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! works great&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Dec 2013 00:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-link-2-datefields/m-p/532483#M1126986</guid>
      <dc:creator />
      <dc:date>2013-12-29T00:15:32Z</dc:date>
    </item>
  </channel>
</rss>

