<?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: Problem with data formula (string = '') in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-data-formula-string/m-p/1167557#M379973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use de functio getselectcount:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(your fied)&amp;gt;0,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&amp;gt; '&amp;amp; max(date(addyears(%Date,-1),'MM.YYYY'))),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&amp;gt; ' &amp;amp; max({1&amp;lt;Facts.LYTM_Flag={'1'}&amp;gt;}date(%Date,'MM.YYYY')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can beter de expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2016 14:24:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-15T14:24:35Z</dc:date>
    <item>
      <title>Problem with data formula (string = '')</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-formula-string/m-p/1167556#M379972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I'm trying to implement a algorithm that for today (15/07) should appear always the YTM value (06/2016).&lt;/P&gt;&lt;P&gt;When we don't have selections should show "&amp;gt; 06.2016" and when we are using selections should appear the value of selection (ex: "&amp;gt; 04/2015"&lt;/P&gt;&lt;P&gt;When I do select it works perfectly:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_2.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/131470_Screenshot_2.jpg" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But then when I remove my selections it appears like this (without the calculation) and what bothers me is that the same formula works on a text box:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_3.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/131471_Screenshot_3.jpg" style="font-size: 13.3333px; height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula without selections:&lt;/P&gt;&lt;P&gt;'&amp;gt; ' &amp;amp; max({1&amp;lt;Facts.LYTM_Flag={'1'}&amp;gt;}date(%Date,'MM.YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula with selections:&lt;/P&gt;&lt;P&gt;'&amp;gt; '&amp;amp; max(date(addyears(%Date,-1),'MM.YYYY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could help me I really apreciate.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 14:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-formula-string/m-p/1167556#M379972</guid>
      <dc:creator>slribeiro</dc:creator>
      <dc:date>2016-07-15T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data formula (string = '')</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-formula-string/m-p/1167557#M379973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use de functio getselectcount:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(your fied)&amp;gt;0,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&amp;gt; '&amp;amp; max(date(addyears(%Date,-1),'MM.YYYY'))),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'&amp;gt; ' &amp;amp; max({1&amp;lt;Facts.LYTM_Flag={'1'}&amp;gt;}date(%Date,'MM.YYYY')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can beter de expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 14:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-formula-string/m-p/1167557#M379973</guid>
      <dc:creator />
      <dc:date>2016-07-15T14:24:35Z</dc:date>
    </item>
  </channel>
</rss>

