<?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: By using if condition, 2 expressions will displayed based on date selections in qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729088#M55604</link>
    <description>&lt;P&gt;Hi Kush,&lt;/P&gt;&lt;P&gt;Thanks for your efforts.&lt;/P&gt;&lt;P&gt;My Expression works fine, but i missed that property AddOns--&amp;gt;Datamodel--&amp;gt;Include ZeroValues(UNCHECK)..&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, it's working exactly, what i expected.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratap&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 05:29:07 GMT</pubDate>
    <dc:creator>pratap6699</dc:creator>
    <dc:date>2020-07-20T05:29:07Z</dc:date>
    <item>
      <title>By using if condition, 2 expressions will displayed based on date selections in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1728994#M55580</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Hope you are all good.&lt;/P&gt;&lt;P&gt;I need your help that, i have faced one visualization issue with BAR chart object in qlik. My requirement is when user select date from [Created Date] field, then One Expression will displayed, ELSE second expression should displayed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&amp;nbsp; 20JUN2029 date selected from [Created Date] field, then sales displayed from 01JAN2019 to 20JUN2019 date range as specified "WITHSELECTION" screenshot, if user doesnot select any Date by default, Current year start date to Till date SALES should displayed as specified "WITHOUTSELECTION" screenshot. for this requirement i have used [Year Month] as dimension and&amp;nbsp; &amp;nbsp;EXPRESSION is&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(GetSelectedCount([Created Date]) &amp;gt;= 1,&lt;BR /&gt;Count({&amp;lt;[Created Date] = {"&amp;gt;=$(vSelectedDateYearStart)&amp;lt;=$(vSelectedPreviousDate)"}&amp;gt;}SALES),&lt;BR /&gt;Count({&amp;lt;[Created Date] = {"&amp;gt;=$(vSelectedDateYearStart)&amp;lt;=$(vSelectedYearStart)"}&amp;gt;}SALES)) &amp;nbsp; &amp;nbsp; .&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is without any date selection current year start to till date BARS only should displayed, but in BAR chart displaying from data loaded dates(2018 to tilldates data) is showing in X-Axis, iam expecting only current year data.&lt;/P&gt;&lt;P&gt;when i apply TRUE expression(withselection) &amp;amp; FALSE expression (withoutselection) BARS and data are coming perfect. when used above IF() condition (withselection) data coming as expected, but (withoutselection) not working as expected(current year to till date).&lt;/P&gt;&lt;P&gt;Can any one help me to fix this issue...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks in advance....&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;pratap&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1728994#M55580</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2024-11-16T18:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: By using if condition, 2 expressions will displayed based on date selections in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729021#M55585</link>
      <description>&lt;P&gt;No Need to write the if condition for this. You can achieve it using single expression&lt;/P&gt;&lt;P&gt;Create variable on front end like below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSelectedDateYearStart&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&amp;nbsp; yearstart(max(&lt;SPAN&gt;[Created Date]&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vSelectedDateYearEnd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&amp;nbsp; max(&lt;SPAN&gt;[Created Date]&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then you can simply use below expression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;[Created Date] = {"&amp;gt;=$(&lt;STRONG&gt;vSelectedDateYearStart&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG&gt;vSelectedDateYearEnd&lt;/STRONG&gt;)"}&amp;gt;}SALES)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 11:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729021#M55585</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-19T11:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: By using if condition, 2 expressions will displayed based on date selections in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729053#M55599</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Kush,&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;your logic won't work, why because,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count({&amp;lt;[Created Date] = {"&amp;gt;=$(&lt;/SPAN&gt;&lt;STRONG&gt;vSelectedDateYearStart&lt;/STRONG&gt;&lt;SPAN&gt;)&amp;lt;=$(&lt;/SPAN&gt;&lt;STRONG&gt;vSelectedDateYearEnd&lt;/STRONG&gt;&lt;SPAN&gt;)"}&amp;gt;}SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here, without select anything data showing from 01JAN2018(&lt;STRONG&gt;vSelectedDateYearStart&lt;/STRONG&gt;) to till date(&lt;STRONG&gt;vSelectedDateYearEnd), please find the screenshot(Not working).&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;My requirement is there is 2018 to 2010 July data, when user select 16Jun2019 then need to display 01Jan2019 to 16Jun2019 data, if not select anything, only current year starting 01Jan2020 to Till Dates data should show....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 16:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729053#M55599</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2020-07-19T16:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: By using if condition, 2 expressions will displayed based on date selections in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729055#M55601</link>
      <description>&lt;P&gt;Did you &lt;STRONG&gt;try creating variables as I have suggested&lt;/STRONG&gt;&amp;nbsp; and then expression suggested in previous reply? This should work as expected if not then using your expression&amp;nbsp; go to bar properties-&amp;gt;Add-On-&amp;gt;Data handling-&amp;gt; Uncheck Include zero value&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jul 2020 17:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729055#M55601</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-19T17:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: By using if condition, 2 expressions will displayed based on date selections in qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729088#M55604</link>
      <description>&lt;P&gt;Hi Kush,&lt;/P&gt;&lt;P&gt;Thanks for your efforts.&lt;/P&gt;&lt;P&gt;My Expression works fine, but i missed that property AddOns--&amp;gt;Datamodel--&amp;gt;Include ZeroValues(UNCHECK)..&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, it's working exactly, what i expected.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratap&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 05:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/By-using-if-condition-2-expressions-will-displayed-based-on-date/m-p/1729088#M55604</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2020-07-20T05:29:07Z</dc:date>
    </item>
  </channel>
</rss>

