<?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: Use of Variable in Set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431925#M815830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or May be &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2017 10:58:16 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-04T10:58:16Z</dc:date>
    <item>
      <title>Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431914#M815819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to showcase numbers in a text object using Set.&lt;/P&gt;&lt;P&gt;Here is my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=({$&amp;lt;P_Month={"$(=Date(Addmonths(Month_Name,-1),'MMMM'))"}&amp;gt;}$(TPH))&lt;/P&gt;&lt;P&gt;now TPH is a variable. Its definition : &lt;STRONG&gt;num((($(Pro_T)+$(Qct))/$(Avt))*100,'##.00')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Again explanation of each variable is :&lt;/P&gt;&lt;P&gt;Pro_t: &lt;SPAN style="font-size: 10pt;"&gt;num(sum(Processing_Time)/60,'##.00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Qct: num(sum(QC_Time)/60,'##.00')&lt;/P&gt;&lt;P&gt;Avt: num((sum(Attendance))*7.5*.89,'##.00')&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the result for last month for which set is there.&lt;/P&gt;&lt;P&gt;I cant make it work using different logics. please assist me here to get a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431914#M815819</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431915#M815820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the issue your facing ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431915#M815820</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-09-04T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431916#M815821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you getting when you use this alone in text box? &lt;STRONG&gt;=$(TPH)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431916#M815821</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431917#M815822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is showing error ')' missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431917#M815822</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2017-09-04T07:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431918#M815823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will give result but i want to calculate for previous month also. that is why i am using set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431918#M815823</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2017-09-04T07:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431919#M815824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what i was over thinking the issue. Here, You need to set some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum ({$&amp;lt;P_Month={"$(=Date(Addmonths(Month_Name,-1),'MMMM'))"}&amp;gt;}$(TPH))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, Here i assume you have full month names&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431919#M815824</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431920#M815825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the solution but i am getting error nested aggregation not allowed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 07:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431920#M815825</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2017-09-04T07:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431921#M815826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, Because Sum(...Sum(...Sum())) won't allow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach application to check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 08:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431921#M815826</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T08:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431922#M815827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see the attached file. there is a text object on right with error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 10:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431922#M815827</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2017-09-04T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431923#M815828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am thinking some thing like below &lt;A href="https://community.qlik.com/qlik-blogpost/3744"&gt;Aggregations and Function Classes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Variable is&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;((num(Sum(Aggr(sum(Processing_Time),Month_Name))/60,'##.00') + num(Sum(Aggr(sum(QC_Time), Month_Name))/60,'##.00'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;/ num((Sum(Aggr(sum(Attendance), Month_Name)))*7.5*.89,'##.00'))*100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;P_Month={"$(=Date(Addmonths(Month_Name,-1),'MMMM'))"}&amp;gt;} $(Variable)&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;POS - &lt;/STRONG&gt;Change Month_Name to P_Month as needed&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 10:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431923#M815828</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431924#M815829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as full expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;P_Month={"$(=Date(Addmonths(Month_Name,-1),'MMMM'))"}&amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;((num(Sum(Aggr(sum(Processing_Time),Month_Name))/60,'##.00') + num(Sum(Aggr(sum(QC_Time), Month_Name))/60,'##.00'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ num((Sum(Aggr(sum(Attendance), Month_Name)))*7.5*.89,'##.00'))*100)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 10:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431924#M815829</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T10:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431925#M815830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or May be &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2017 10:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431925#M815830</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-04T10:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431926#M815831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil, I found a solution and thought of sharing. I used three different variables and used them to calculate numbers using set and then did different aggregations to get the output. I hope thats correct and if you think there is any issue with it, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 05:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431926#M815831</guid>
      <dc:creator>sagar_vij99</dc:creator>
      <dc:date>2017-09-05T05:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable in Set</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431927#M815832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you found the answer only thing you should share behind the correct answer so then next land up can tackle easily...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 06:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Variable-in-Set/m-p/1431927#M815832</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-05T06:08:57Z</dc:date>
    </item>
  </channel>
</rss>

