<?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 Using Weekname with Set Analysis in Chart Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236936#M502359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check the format that you are getting for the CRMTranWeekYear by creating a list box (I usually do this for dates to see what is the format coming in from the external source).&lt;/P&gt;&lt;P&gt;Anyway, for the set analysis, you might want to try&lt;/P&gt;&lt;P&gt;count({$&amp;lt;CRMTranWeekYear={"=$(=varWeekName)"}&amp;gt;} CRMRecType)&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 02:51:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-29T02:51:43Z</dc:date>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236935#M502358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to get an expression to correctly summarize data in a chart using the weekname function. I have created a variable and assigned it like this:&lt;/P&gt;&lt;P&gt;varWeekName =&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;B&gt;weekname&lt;/B&gt;(&lt;B&gt;Today&lt;/B&gt;()-14)&lt;/P&gt;&lt;P&gt;it appears to be set to 2010/28. In my load script the field is created with the following line:&lt;/P&gt;&lt;P&gt;weekname(CRMTransDate) &lt;B&gt;as&lt;/B&gt; CRMTranWeekYear&lt;/P&gt;&lt;P&gt;The expression in my chart is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;B&gt;count&lt;/B&gt;({$&amp;lt;&lt;B&gt;CRMTranWeekYear&lt;/B&gt;={&lt;B&gt;&lt;I&gt;$(varWeekName)&lt;/I&gt;&lt;/B&gt;}&amp;gt;} &lt;B&gt;CRMRecType&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;This returns null in my chart. If I display my data in a straight table it appears there is data where CRMTranWeekYear is 2010/28. What am I doing wrong? Am I using the weekname function incorrectly or is there a formatting issue between my variable and the field when I load my data?&lt;/P&gt;&lt;P&gt;Thanks for any help......&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 01:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236935#M502358</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-07-29T01:57:11Z</dc:date>
    </item>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236936#M502359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should check the format that you are getting for the CRMTranWeekYear by creating a list box (I usually do this for dates to see what is the format coming in from the external source).&lt;/P&gt;&lt;P&gt;Anyway, for the set analysis, you might want to try&lt;/P&gt;&lt;P&gt;count({$&amp;lt;CRMTranWeekYear={"=$(=varWeekName)"}&amp;gt;} CRMRecType)&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 02:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236936#M502359</guid>
      <dc:creator />
      <dc:date>2010-07-29T02:51:43Z</dc:date>
    </item>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236937#M502360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis still has me confused.&lt;/P&gt;&lt;P&gt;I used your suggested formula and I get a result but not exactly what I'm expecting. The resulting count is over my entire current selection, not limited to the value set in the variable varWeekName. This is better than the null I was getting before.&lt;/P&gt;&lt;P&gt;I had added a list box for the CRMTranWeekYear and the values appear to be what I am expecting. There are values that should be matching the value set in my variable.&lt;/P&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 03:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236937#M502360</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-07-29T03:22:00Z</dc:date>
    </item>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236938#M502361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martha&lt;/P&gt;&lt;P&gt;You could try this small variation:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;CRMTranWeekYear={"$(varWeekName)"}&amp;gt;} CRMRecType)&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 08:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236938#M502361</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236939#M502362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, that was just the tweak I needed. The subtilties of set analysis give me heartburn. When you need extra quotes, extra equal signs, etc. I have not found documentation or a tutorial that explains this clearly -- do you know of any?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 14:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236939#M502362</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-07-29T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Using Weekname with Set Analysis in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236940#M502363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that well documented - and it sure gave me a headache trying to untangle the punctuation.&lt;/P&gt;&lt;P&gt;John Witherspoon has written quite a lot on this forum about set analysis, and I have found that very helpful. This one talks about the why and when of some of the punctuation: &lt;A href="http://community.qlik.com/forums/t/28966.aspx" title="http://community.qlik.com/forums/t/28966.aspx"&gt;http://community.qlik.com/forums/t/28966.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Keep trying!&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 14:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Weekname-with-Set-Analysis-in-Chart-Expression/m-p/236940#M502363</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-07-29T14:52:40Z</dc:date>
    </item>
  </channel>
</rss>

