<?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: Conditional Text objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066497#M356537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it should work (it worked in a small sample I just put up), but it might depend on how you are creating your field values and how the dollar sign expansion work upon that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: and remember to select a single Selector value that is linked to a single Exp value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 16:53:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-06T16:53:08Z</dc:date>
    <item>
      <title>Conditional Text objects</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066494#M356534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a group of text objects that display a number via a count expression with some set analysis and a selector box that has the values:Day, Week, Month. I have attached an image of what I have so you might have a better idea of what I am asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the image you will see I have a text object that displays a number for Orders Completed, Abandoned Carts, Total Orders, and I also have a date displayed at the top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the numbers that are displayed, I am doing a count Distinct on the SessionID of the table. Each one also is currently limited to the previous day's numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for orders completed I have:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14599512394821180" jivemacro_uid="_14599512394821180"&gt;
&lt;P&gt;=count(DISTINCT{$&amp;lt;SCOrderNumber={"*"}, CreatedOn = {"$(=Date(Today()-1))"}&amp;gt;}SessionID)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;With this one I am also filtering by rows that do not have a NULL value in the OrderNumber column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abandoned Carts is taking the total of distinct SessionIDs in the table and subtracting the number SessionIDs with an associated non NULL OrderNumber. Which looks like:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14599514340635125" jivemacro_uid="_14599514340635125"&gt;
&lt;P&gt;=count(DISTINCT{&amp;lt; CreatedOn = {"$(=Date(Today()-1))"} &amp;gt;}SessionID) - count(DISTINCT{$&amp;lt;SCOrderNumber={"*"}, CreatedOn = {"$(=Date(Today()-1))"}&amp;gt;}SessionID)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And total orders is just count distinct of the SessionID with no filter other than the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The object for the date is just for my testing to display the date / date range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is when I click into the day, week, month, is change the date filter in the set analysis. For Day it would be what it is now which is Today()-1, for Week I would want it to be the beginning of the week Sunday or Monday it doesn't matter though today, and Month would be the first of the month through today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to create a variable that will change based on the selection made, that I can then call in the set analysis of the text objects? Or is there perhaps a better way to achieve what I am trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066494#M356534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Text objects</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066495#M356535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess your selector is a data island table field with just three values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you extend your table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Selector, Exp INLINE [&lt;/P&gt;&lt;P&gt;Selector, Exp&lt;/P&gt;&lt;P&gt;Day, Date(Today()-1)&lt;/P&gt;&lt;P&gt;Week, Weekstart(Today() )&lt;/P&gt;&lt;P&gt;Month, Monthstart(Today() )&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you make a selection in Selector field values, your set analysis might look like&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;=count(DISTINCT{$&amp;lt;SCOrderNumber={"*"}, CreatedOn = &lt;STRONG&gt;{"$(=$(=Exp))"}&lt;/STRONG&gt;&amp;gt;}SessionID)&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066495#M356535</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-06T15:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Text objects</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066496#M356536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am using a data island, this seems to be exactly what I would need, and seems extremely simple. I haven't gotten to work quite yet, but I am playing around with it to see if I can get it to work. If I am able to get this to work, I will mare this as the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 16:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066496#M356536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Text objects</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066497#M356537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it should work (it worked in a small sample I just put up), but it might depend on how you are creating your field values and how the dollar sign expansion work upon that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: and remember to select a single Selector value that is linked to a single Exp value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 16:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066497#M356537</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-06T16:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Text objects</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066498#M356538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have marked your answer as the correct answer, as now that I have worked with it I realize my problem no longer is with getting the dates to switch, but instead to incorporate the date range into the week and month selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you for you help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Text-objects/m-p/1066498#M356538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-06T18:11:45Z</dc:date>
    </item>
  </channel>
</rss>

