<?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 Time Variable - Using a dimension as variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1984851#M81283</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We currently have a situation where we are attempting to insert this date field variable in the set expression below:&lt;/P&gt;
&lt;P&gt;Sum({1 &amp;lt;Month= {$(vProductTime)}&amp;gt;} [QTY Each])&lt;/P&gt;
&lt;P&gt;where vProductTime = [Product Date]&lt;/P&gt;
&lt;P&gt;ProductDate being the date a product started on a specific contract. Date formatting between 'Month' &amp;amp; 'vProductTime' and all else equal, this expression only returns us 0 values. The expression looks correct to us, but is there anything in the syntax we are missing or is there some other easy fix?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate any help you can offer&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 16:32:48 GMT</pubDate>
    <dc:creator>Nolan</dc:creator>
    <dc:date>2022-09-23T16:32:48Z</dc:date>
    <item>
      <title>Time Variable - Using a dimension as variable</title>
      <link>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1984851#M81283</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We currently have a situation where we are attempting to insert this date field variable in the set expression below:&lt;/P&gt;
&lt;P&gt;Sum({1 &amp;lt;Month= {$(vProductTime)}&amp;gt;} [QTY Each])&lt;/P&gt;
&lt;P&gt;where vProductTime = [Product Date]&lt;/P&gt;
&lt;P&gt;ProductDate being the date a product started on a specific contract. Date formatting between 'Month' &amp;amp; 'vProductTime' and all else equal, this expression only returns us 0 values. The expression looks correct to us, but is there anything in the syntax we are missing or is there some other easy fix?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate any help you can offer&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1984851#M81283</guid>
      <dc:creator>Nolan</dc:creator>
      <dc:date>2022-09-23T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time Variable - Using a dimension as variable</title>
      <link>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1984918#M81292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121634"&gt;@Nolan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you share screenshots of:&lt;/P&gt;
&lt;P&gt;1. how the variable&amp;nbsp;&lt;SPAN&gt;vProductTime is created&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. what is in this field&amp;nbsp;Month&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;my first guess is that you are comparing a month name or number with a complete date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and that you are missing a = sign en variable formula.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;best,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 20:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1984918#M81292</guid>
      <dc:creator>RafaelBarrios</dc:creator>
      <dc:date>2022-09-23T20:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Time Variable - Using a dimension as variable</title>
      <link>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1986122#M81454</link>
      <description>&lt;P&gt;Hi Rafael,&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual dimension and variable names are slightly different, but the same logic follows. The Variable is defined as the dimension below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nolan_0-1664293299520.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90036i0EE1A6FF0D6B4216/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nolan_0-1664293299520.png" alt="Nolan_0-1664293299520.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And our Month dimension is defined as this, which I have tried to match the formatting in the Product Month dimension&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nolan_1-1664293393251.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90037iBB51E58ABCC69131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nolan_1-1664293393251.png" alt="Nolan_1-1664293393251.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nolan_2-1664293413452.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90038i3F3CD9AD3FD5593E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nolan_2-1664293413452.png" alt="Nolan_2-1664293413452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically we are trying to display data from the start of implementation of the contract and onward. So when you filter on a certain product, that specific implementation date is applied and displays only the relevant data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any insights you are able to provide.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-Variable-Using-a-dimension-as-variable/m-p/1986122#M81454</guid>
      <dc:creator>Nolan</dc:creator>
      <dc:date>2022-09-27T15:49:52Z</dc:date>
    </item>
  </channel>
</rss>

