<?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: Set Analysis - Two or more values in a variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295057#M27359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count( [Invoice No])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;in the else branch of your if() function? What should the set analysis do other than the selections would do anyway?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 May 2017 17:56:16 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-05-07T17:56:16Z</dc:date>
    <item>
      <title>Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295053#M27355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below formula for Invoice count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a filter bar on the top of the page which has [Year Month] and other filters. If there is no selection in [Year Month]; the below formula shows the information for the current month. (Line No1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there is a selection in [Year Month] let say Jan-2017, the formula shows the value for that month. (Line 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What changes I have to make in the below formula so that it shows data for multple selection in [Month Year] filter. Let say Jan-2017 and Feb-2017 and more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount([Month Year])&amp;lt;1, &lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[YearMonth No]= ,[Year] = ,[Month No]=,[Month Year]=,[Month]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Invoice No])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[YearMonth No]= ,[Year] = ,[Month No]=,[MonthID]=,[Month]=,[Month Year]= {"$(=getfieldselections([Month Year]))"}&amp;gt;} [Invoice No])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 16:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295053#M27355</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-05-05T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295054#M27356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it will work if you simplify the second line, give it a try:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({$&amp;lt;[YearMonth No]= ,[Year] = ,[Month No]=,[MonthID]=,[Month]=&amp;gt;} [Invoice No])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 16:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295054#M27356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T16:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295055#M27357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this brings the count for all. Not what is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 May 2017 07:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295055#M27357</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-05-07T07:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295056#M27358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saying "second line" I mean your 2nd expression i the if() statement.&amp;nbsp; The full expression will be:&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(getselectedcount([Month Year])&amp;lt;1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({$&amp;lt;[YearMonth No]= ,[Year] = ,[Month No]=,[Month Year]=,[Month]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Invoice No])&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;Count({$&amp;lt;[YearMonth No]= ,[Year] = ,[Month No]=,[MonthID]=,[Month]=&amp;gt;} [Invoice No])&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;I also assume that the filter [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year Month] and the field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Month Year] in the if() condition is the same field, just a typo in your opening post (?)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 May 2017 16:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295056#M27358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-07T16:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295057#M27359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count( [Invoice No])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;in the else branch of your if() function? What should the set analysis do other than the selections would do anyway?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 May 2017 17:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295057#M27359</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-07T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Two or more values in a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295058#M27360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still facing issue, Can you elaborate more. If Jan-2017 selection happened what is the output you want to show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 04:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Two-or-more-values-in-a-variable/m-p/1295058#M27360</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-08T04:44:11Z</dc:date>
    </item>
  </channel>
</rss>

