<?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: Two expressions with two dates in set analysis not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515099#M436897</link>
    <description>Have you checked this link?&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Double quotes looks to be a good option here.</description>
    <pubDate>Fri, 30 Nov 2018 21:42:20 GMT</pubDate>
    <dc:creator>Wlad_Masi</dc:creator>
    <dc:date>2018-11-30T21:42:20Z</dc:date>
    <item>
      <title>Two expressions with two dates in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1514912#M436889</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've got a pivot table with dimensions: Week and Weekday for a selected year. I have to show the sales for each week and week day for the selected year, and for the previous year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a calendar that gives me the fields week number and weekday and a fact table with the sales. In the calendar, for each date I also have the same date for the same week and weekday for the previous year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get it work for the current year, but when I write the expression for the last year, I get 0 for all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression for current year: &lt;STRONG&gt;sum(ImporteSinIVA)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression for last year:&amp;nbsp;&lt;STRONG&gt;Sum({&amp;lt;Año, Mes, Trimestre, DiaSemana, Semana, Fecha, MismoDiaAA={'$(vMismoDiaAA)'}&amp;gt;}ImporteSinIVA).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here, variable vMismoDiaAA = &lt;STRONG&gt;Date(Max(MismoDiaAA), 'DD/MM/YYYY'). &lt;/STRONG&gt;The field "MismoDiaAA" is in the calendar, and it's calculated for each day, as stated above.&amp;nbsp; The variable is defined with the sign "=" at the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the table&amp;nbsp;should it help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1514912#M436889</guid>
      <dc:creator>j_nlucas</dc:creator>
      <dc:date>2024-11-16T05:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions with two dates in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1514918#M436890</link>
      <description>&lt;P&gt;Hi, does it work if you use an = in the variable in the set analysis (before the varibale name)..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MismoDiaAA={'$(=vMismoDiaAA)'}&amp;gt;}ImporteSinIVA)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 14:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1514918#M436890</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2018-11-30T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions with two dates in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515099#M436897</link>
      <description>Have you checked this link?&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Double quotes looks to be a good option here.</description>
      <pubDate>Fri, 30 Nov 2018 21:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515099#M436897</guid>
      <dc:creator>Wlad_Masi</dc:creator>
      <dc:date>2018-11-30T21:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions with two dates in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515349#M436927</link>
      <description>Hi Hopkinsc, thanks for your reply.&lt;BR /&gt;Unfortunately it doesn't work. However&lt;BR /&gt;Sum({&amp;lt;Año, Mes, Trimestre, DiaSemana, Semana, MismoDiaAA={"=$(vMismoDiaAA)"}&amp;gt;}ImporteSinIVA) will show the me same amount as the current date.&lt;BR /&gt;&lt;BR /&gt;As you see, I have now changed the single quotes to double quotes, and added the = at the left of the "$". But I'm not there yet</description>
      <pubDate>Mon, 03 Dec 2018 08:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515349#M436927</guid>
      <dc:creator>j_nlucas</dc:creator>
      <dc:date>2018-12-03T08:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions with two dates in set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515350#M436928</link>
      <description>&lt;P&gt;Thank you for that link.&lt;/P&gt;&lt;P&gt;I downloaded the latest version and tried the double quotes, but it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 08:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-with-two-dates-in-set-analysis-not-working/m-p/1515350#M436928</guid>
      <dc:creator>j_nlucas</dc:creator>
      <dc:date>2018-12-03T08:30:23Z</dc:date>
    </item>
  </channel>
</rss>

