<?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: Re: Set Analysis with Button Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607266#M1104806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Massimo,&lt;/P&gt;&lt;P&gt;your formula works with a tiny modifification on the closing brackets )).&lt;/P&gt;&lt;P&gt;I just changed it to: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;('$(vViewMode)'='Units',&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;-={'Others'}&amp;gt;}qty)&lt;BR /&gt;,&lt;BR /&gt;sum({$&amp;lt;PeriodID ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;},Year={2014},stype-={'Others'}&amp;gt;}&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vNetAmount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;*RateConverted)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I really appreciate your help and Prem's, both solutions work now I can move on with my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hugo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 17:00:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-07T17:00:54Z</dc:date>
    <item>
      <title>Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607259#M1104799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following set anaylysis formula: &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'Others'}&amp;gt;} qty) that looks at the current Period, for 2014 and excludes products 'others' and gives me 'total quantiites' this works just great. However on my report I have created two toggle buttons one for Units and one for Dollars (they are link with a 'vViewMode' expression or variable so the user can select what type of data to look on the report. I did this using an if formula and it allwork great. I want to use the same logic for Set analysis but I don't know how to incorporate the value for my buttons into the set analysis (using an if statement: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(vViewMode='Units',if(Year=2014,if(PeriodID=vCurrentPeriodID,qty,amount). I would like to use set analysis because is more powerful and will allow me to have some extra functionality. On my sample with the 'if' statemnt I am able to reference PeriodID with my Variable/Expression, but I am not able to ref,erence anything with my buttons (Units/Dollars) because my data doesn't have a field called ViewMode or something I can reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I want to achieve the followign: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'Others'} &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;vViewMode={'Units'}&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;gt;} qty) &lt;STRONG style="color: #ff0000;"&gt;or else Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;is this possible? can anybody help me please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;thank you for your time,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Hugo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 17:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607259#M1104799</guid>
      <dc:creator />
      <dc:date>2014-04-06T17:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607260#M1104800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a variable definition in variable overview for a variable &lt;EM&gt;vTest&lt;/EM&gt; like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( vViewMode = 'Units', 'qty', 'Amount')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then replace &lt;EM&gt;qty&lt;/EM&gt; in your set expression with &lt;EM&gt;$(vTest)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-={'Others'}&amp;gt;} $(vTest))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 19:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607260#M1104800</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-06T19:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607261#M1104801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I understand use 2 variable, vUnit and vDollar&lt;/P&gt;&lt;P&gt;and set it depending on button click so they will have the values&lt;/P&gt;&lt;P&gt;vUnit=1, vDollar=0&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;vUnit=0, vDollar=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you new expression should be&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-={'Others'}&amp;gt;} qty) *&amp;nbsp; $(vUnit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-={'Others'}&amp;gt;} amount) *&amp;nbsp; $(vDollar)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 19:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607261#M1104801</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-06T19:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607262#M1104802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Hi Massimo thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I am a bit confused, here is what I have: I have 2 buttons&lt;BR /&gt;(Units and Dollars) with the properties set as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;&lt;IMG alt="Capture01.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56673_Capture01.PNG.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt; If the user click on&lt;BR /&gt;Units, then I show [qty] if the user click on Dollars, then I show [Amount]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I used to have this scenario using an ‘IF’ statement but Iprefer to use Set Analysis due to the flexibility and it works better when userselects a particular Month or Year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I currently have the following formula:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: 'Courier New'; text-decoration: underline;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;-={'Others'}&amp;gt;}&lt;BR /&gt;qty)&lt;BR /&gt;+&lt;BR /&gt;Sum({$&amp;lt;PeriodID ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;},Year={2014},stype-={'Others'}&amp;gt;}&lt;BR /&gt;Amount)&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: 'Courier New'; text-decoration: underline;"&gt;) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;My current problem is that regardless if the user selects ‘Units’ or ‘Dollars’ my table shows only [qty] because I don’t know how to incorporate the button selection into the Set Analysis. if I were to use an if statement I could have as the last condition ….if(stype&amp;lt;&amp;gt;’Others’, if(vViewMode=’Units’,qty,Amount))). I&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;s it possible to accomplish what I want? I tried your sample but if I change the value of&lt;BR /&gt;Units and Dollars as you suggested then my other formulas don’t work anymorebecause they are set to check for the value to be ‘Units or Dollars’. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN lang="EN-US" style="color: #1f497d; font-family: 'Arial','sans-serif'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #1f497d; font-family: 'Monotype Corsiva'; font-size: 14pt; mso-ansi-language: EN-US;"&gt;Hugo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 21:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607262#M1104802</guid>
      <dc:creator />
      <dc:date>2014-04-06T21:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607263#M1104803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there , Have you tried in conditional enabling the expressions&lt;/P&gt;&lt;P&gt;write two expressions as shown below :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="iuiu.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/56671_iuiu.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 22:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607263#M1104803</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-04-06T22:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607264#M1104804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if('$(vViewMode)'='Units', &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;-={'Others'}&amp;gt;}qty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-={'Others'}&amp;gt;} Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 22:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607264#M1104804</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-04-06T22:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607265#M1104805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Prem, your solution works, I only wish I could mark 2 answers as 'correct' ones because both answers are correct the only difference is one I use 2 formulas separate and the other one I use an if scenario that technically are two formulas combined in one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 15:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607265#M1104805</guid>
      <dc:creator />
      <dc:date>2014-04-07T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis with Button Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607266#M1104806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Massimo,&lt;/P&gt;&lt;P&gt;your formula works with a tiny modifification on the closing brackets )).&lt;/P&gt;&lt;P&gt;I just changed it to: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;('$(vViewMode)'='Units',&lt;BR /&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;PeriodID&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt; ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;={2014},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 12pt;"&gt;stype&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;-={'Others'}&amp;gt;}qty)&lt;BR /&gt;,&lt;BR /&gt;sum({$&amp;lt;PeriodID ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vCurrentPeriodID)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;},Year={2014},stype-={'Others'}&amp;gt;}&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 12pt; font-family: 'Courier New';"&gt;$(vNetAmount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 12pt;"&gt;*RateConverted)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I really appreciate your help and Prem's, both solutions work now I can move on with my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hugo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 17:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Button-Selection/m-p/607266#M1104806</guid>
      <dc:creator />
      <dc:date>2014-04-07T17:00:54Z</dc:date>
    </item>
  </channel>
</rss>

