<?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: Count and formula in the condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982037#M81040</link>
    <description>&lt;P&gt;&lt;SPAN&gt;You could simply use =count( distinct user_id) right? it returns count for all months&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:14:37 GMT</pubDate>
    <dc:creator>abhijith28</dc:creator>
    <dc:date>2022-09-16T14:14:37Z</dc:date>
    <item>
      <title>Count and formula in the condition</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982021#M81038</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I'm trying to do the following:&lt;/P&gt;
&lt;P&gt;- I have a pivot table where the column is the months names and the rows are segments.&lt;/P&gt;
&lt;P&gt;- as a measure, I need to use the number of users whose last order date was in the date range of each month (for each column).&lt;/P&gt;
&lt;P&gt;I'm trying something like this&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#3366FF"&gt;count({&amp;lt;last_order_date= {"&amp;gt;=$(=date(monthstart([date])))&amp;lt;=$(=date(monthend([date])))"}&amp;gt;} distinct user_id)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;in different variants (with and without (), with and without = before the formula). The formula window tells me 'OK', but the result is not displayed (displayed as null).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot use the field with the date of the last order directly in the dimension with the month name, because when i'll manage this, I need to add several more measures to the same pivot table that use other date dimensions.&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89264i8B9BDAEEE1D5FA1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnamed.png" alt="unnamed.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982021#M81038</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-09-16T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count and formula in the condition</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982037#M81040</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You could simply use =count( distinct user_id) right? it returns count for all months&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982037#M81040</guid>
      <dc:creator>abhijith28</dc:creator>
      <dc:date>2022-09-16T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count and formula in the condition</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982589#M81094</link>
      <description>&lt;P&gt;No, I can't, because I need conditions. last order date is not the same as date, these dimensions have a different data array. in any case, I abandoned these calculations, since I never found a way to implement this in qlik sense. Thnak you anyway&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 13:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-formula-in-the-condition/m-p/1982589#M81094</guid>
      <dc:creator>ZimaBlue</dc:creator>
      <dc:date>2022-09-19T13:24:58Z</dc:date>
    </item>
  </channel>
</rss>

