<?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: having problem with ' in a 'String' and doesn't work with Chr(39) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655665#M538081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is in the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this one. But check the expression below. If it's not working, this is the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;if(DChart='Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)',count({&amp;lt; [CAHPS Count Flag]={1}, [CAHPS Chart Domain]={&lt;STRONG&gt;"$(='Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)')"&lt;/STRONG&gt;}, [CAHPS Questions Flag]={1}, [$(vDateType) $(vDateUnit)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;nbsp; [Numeric $(vDateType) $(vDateUnit)]={"&amp;gt;=$(=num(Max([Numeric Previous-x $(vDateType) $(vDateUnit)])))&amp;lt;=$(=Max([Numeric $(vDateType) $(vDateUnit)]))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;nbsp; &amp;gt;} Distinct [Survey ID]),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 13:43:43 GMT</pubDate>
    <dc:creator>carvalguil</dc:creator>
    <dc:date>2014-10-03T13:43:43Z</dc:date>
    <item>
      <title>having problem with ' in a 'String' and doesn't work with Chr(39)</title>
      <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655662#M538078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am trouble with a record name which having&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is name of the field&lt;/STRONG&gt; --------&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12pt;"&gt; Care Transitions (reporting Oct '14)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H5&gt;I wrote an expression like this :&lt;/H5&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=if(DChart='Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)',count({&amp;lt; [CAHPS Count Flag]={1}, [CAHPS Chart Domain]={'Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)'}, [CAHPS Questions Flag]={1}, [$(vDateType) $(vDateUnit)], &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; [Numeric $(vDateType) $(vDateUnit)]={"&amp;gt;=$(=num(Max([Numeric Previous-x $(vDateType) $(vDateUnit)])))&amp;lt;=$(=Max([Numeric $(vDateType) $(vDateUnit)]))"} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&amp;nbsp; &amp;gt;} Distinct [Survey ID]),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This expression is working with other filed names but not for the 'Care Transitions (reporting Oct '14)' . I tried to replace single qoute in the filed name with chr(39) but no luck.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; any mistake in that expression?? Please help&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in advance!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 13:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655662#M538078</guid>
      <dc:creator />
      <dc:date>2014-10-03T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: having problem with ' in a 'String' and doesn't work with Chr(39)</title>
      <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655663#M538079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you just rename the field?&lt;/P&gt;&lt;P&gt;The value of having that ' in the field name doesn't worth the effort, IMO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 13:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655663#M538079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-03T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: having problem with ' in a 'String' and doesn't work with Chr(39)</title>
      <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655664#M538080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you alias your field names into something more suitable for Qlikview and Qlikview expressions. It will make the expressions clearer as well easier to write and debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To search for something containing a quote, you could use WildMatch or a wildcard search in set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(WildMatch(DChart, 'Care Transitions (reporting Oct *14)'), ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...[CAHPS Chart Domain]={"Care Transitions (reporting Oct *14)"}, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would avoid using dynamic field names and rather rely on the data model design to do the filtering. Without seeing your model, I am merely guessing, but I suspect that this expression does not perform very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 13:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655664#M538080</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-03T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: having problem with ' in a 'String' and doesn't work with Chr(39)</title>
      <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655665#M538081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem is in the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this one. But check the expression below. If it's not working, this is the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;if(DChart='Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)',count({&amp;lt; [CAHPS Count Flag]={1}, [CAHPS Chart Domain]={&lt;STRONG&gt;"$(='Care Transitions (reporting Oct '&amp;amp;chr(39)&amp;amp;'14)')"&lt;/STRONG&gt;}, [CAHPS Questions Flag]={1}, [$(vDateType) $(vDateUnit)],&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;nbsp; [Numeric $(vDateType) $(vDateUnit)]={"&amp;gt;=$(=num(Max([Numeric Previous-x $(vDateType) $(vDateUnit)])))&amp;lt;=$(=Max([Numeric $(vDateType) $(vDateUnit)]))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;&amp;nbsp; &amp;gt;} Distinct [Survey ID]),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 13:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655665#M538081</guid>
      <dc:creator>carvalguil</dc:creator>
      <dc:date>2014-10-03T13:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: having problem with ' in a 'String' and doesn't work with Chr(39)</title>
      <link>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655666#M538082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jonathan. Its just working fine now &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam just using this for one chart. so that the user can make selections on the chart and it doesn't reflect to other tables or charts. So I created an inline with name Dchart and trying to match them with CAHPS Chart domain. Now I endedup with a big expression. But still its nt that bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any suggestions for me please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 14:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/having-problem-with-in-a-String-and-doesn-t-work-with-Chr-39/m-p/655666#M538082</guid>
      <dc:creator />
      <dc:date>2014-10-03T14:19:09Z</dc:date>
    </item>
  </channel>
</rss>

