<?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: Conditional calculation in text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587141#M456662</link>
    <description>Excellent.&lt;BR /&gt;That is what i was missing somewhere in the syntax. Thank you Sunny as always. Let me check if the same goes good everywhere.</description>
    <pubDate>Fri, 31 May 2019 12:51:22 GMT</pubDate>
    <dc:creator>shanky1907</dc:creator>
    <dc:date>2019-05-31T12:51:22Z</dc:date>
    <item>
      <title>Conditional calculation in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587060#M456660</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one query. I need to show the Top contributor in a text box.&lt;/P&gt;&lt;P&gt;Condition is: The number of sale of the vendor should be more then or equal to 2. So Top contributor should only be calculated amongst only those Vendors which has at least 2 Sales done.&lt;/P&gt;&lt;P&gt;The condition is very easy:&lt;/P&gt;&lt;P&gt;If(Aggr(Count Distinct SaleID), Vendor) &amp;gt;=2, Vendor).&lt;/P&gt;&lt;P&gt;The above condition is working fine in the chart as i have Vendor as a dimension and kept the calculated dimension as the above condition.&lt;/P&gt;&lt;P&gt;But when i use the same condition in the text box. It doesnt work well and consider all Vendors inclusing those which have single saleID also to calculate the average sale. [If(Aggr(Count (Distinct SaleID), Vendor) &amp;gt;=2,&lt;/P&gt;&lt;P&gt;num(Max(Aggr((Sum(Sales)/count(&lt;BR /&gt;distinct SaleID)), Vendor)),'##.#'))]&lt;/P&gt;&lt;P&gt;Can anyone suggest what wrong i am doing here or a better way to achieve the requirement.&lt;/P&gt;&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587060#M456660</guid>
      <dc:creator>shanky1907</dc:creator>
      <dc:date>2024-11-16T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional calculation in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587116#M456661</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue({&amp;lt;Vendor = {"=Count(DISTINCT SaleID) &amp;gt;= 2"}&amp;gt;}Vendor, -Aggr(Sum(Sales), Vendor))&lt;/LI-CODE&gt;&lt;P&gt;Here we are looking for the vendor name with the maximum sales with at least two sales. Is this what you wanted?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 11:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587116#M456661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-31T11:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional calculation in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587141#M456662</link>
      <description>Excellent.&lt;BR /&gt;That is what i was missing somewhere in the syntax. Thank you Sunny as always. Let me check if the same goes good everywhere.</description>
      <pubDate>Fri, 31 May 2019 12:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587141#M456662</guid>
      <dc:creator>shanky1907</dc:creator>
      <dc:date>2019-05-31T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional calculation in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587475#M456663</link>
      <description>&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;Is it possible to use one of the variable at the place of Vendor in the set analysis.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 08:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587475#M456663</guid>
      <dc:creator>shanky1907</dc:creator>
      <dc:date>2019-06-03T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional calculation in text box</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587577#M456664</link>
      <description>&lt;P&gt;I don't know the context, but give it a shot....&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 11:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-calculation-in-text-box/m-p/1587577#M456664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-03T11:37:32Z</dc:date>
    </item>
  </channel>
</rss>

