<?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: link button and expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952124#M969515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can add a variable "vYearlyMonthlySelector", the 'Monthly' button sets its value to 'M', and the yearly button to 'Y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use this variable value to configure your expression:&lt;/P&gt;&lt;P&gt;If(vYearlyMonthlySelector='M', [exp1], [exp2])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use it in conditional expression textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2015 14:33:42 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-09-28T14:33:42Z</dc:date>
    <item>
      <title>link button and expression</title>
      <link>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952122#M969513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H5&gt;I have two buttons ; one monthly and the another yearly &lt;/H5&gt;&lt;P&gt;&lt;/P&gt;&lt;H5&gt;I have two expressions &lt;/H5&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exp1&lt;/P&gt;&lt;H5&gt;= SUM({&amp;lt;DateTest = {"&amp;gt;=$(=Date(yearStart(Today())))&amp;lt;=$(=Date(Today()))"}&amp;gt;}[Prix de vente TTC])&lt;/H5&gt;&lt;H5&gt;+&lt;/H5&gt;&lt;H5&gt;SUM({&amp;lt;[Date Time] = {"&amp;lt;=$(=Date(MonthEnd(Today())))&amp;gt;$(=Date(Today()))"}&amp;gt;}[CA TTC])&lt;/H5&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exp2&lt;/P&gt;&lt;H5&gt;= SUM({&amp;lt;DateTest = {"&amp;gt;=$(=Date(yearStart(Today())))&amp;lt;=$(=Date(Today()))"}&amp;gt;}[Prix de vente TTC])&lt;/H5&gt;&lt;H5&gt;+&lt;/H5&gt;&lt;H5&gt;SUM({&amp;lt;[Date Time] = {"&amp;lt;=$(=Date(yearend(Today())))&amp;gt;$(=Date(Today()))"}&amp;gt;}[CA TTC])&lt;/H5&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I link buttons monthly with exp1 and yearly with exp2 ? when I choose monthly i get result from exp1 and when I choose yearly I get result from exp2 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952122#M969513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-28T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: link button and expression</title>
      <link>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952123#M969514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign the button actions to set a variable (lets call it vYMSelect). Yearly button sets this variable to 2, Monthly button sets it to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= SUM({&amp;lt;DateTest = {"&amp;gt;=$(=Date(yearStart(Today())))&amp;lt;=$(=Date(Today()))"}&amp;gt;}[Prix de vente TTC])&lt;/P&gt;&lt;P&gt;+ If(vYMSelect = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM({&amp;lt;[Date Time] = {"&amp;lt;=$(=Date(yearend(Today())))&amp;gt;$(=Date(Today()))"}&amp;gt;}[CA TTC]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM({&amp;lt;[Date Time] = {"&amp;lt;=$(=Date(MonthEnd(Today())))&amp;gt;$(=Date(Today()))"}&amp;gt;}[CA TTC])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952123#M969514</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-28T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: link button and expression</title>
      <link>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952124#M969515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can add a variable "vYearlyMonthlySelector", the 'Monthly' button sets its value to 'M', and the yearly button to 'Y'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use this variable value to configure your expression:&lt;/P&gt;&lt;P&gt;If(vYearlyMonthlySelector='M', [exp1], [exp2])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use it in conditional expression textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/link-button-and-expression/m-p/952124#M969515</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-09-28T14:33:42Z</dc:date>
    </item>
  </channel>
</rss>

