<?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: Specifying Data to be Displayed when Button is Pressed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Specifying-Data-to-be-Displayed-when-Button-is-Pressed/m-p/1540558#M746770</link>
    <description>&lt;P&gt;Welcome to the QlikView world. Easiest and most powerful approach is create a new field in the data when loading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;=&lt;/EM&gt;Round(Today()-[Last Login]) as [Days Since Last Login]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You can then create a listbox on the sheet with field&amp;nbsp;&lt;SPAN&gt;[Days Since Last Login] and the user can select whatever values they want, including using expressions like &amp;gt;31 when they make the selection.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to provide a grouped field like "&amp;lt;30", "30-60" and so on, use an if() function in the script like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if(Today()-[Last Login]) &amp;gt;60, '61+ days'&lt;BR /&gt;,if(Today()-[Last Login]) &amp;gt;30, '31-60+ days'&lt;BR /&gt;,'&amp;lt;30 days')) as&amp;nbsp;&amp;nbsp;[Days Since Last Login]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 22:31:26 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-02-06T22:31:26Z</dc:date>
    <item>
      <title>Specifying Data to be Displayed when Button is Pressed</title>
      <link>https://community.qlik.com/t5/QlikView/Specifying-Data-to-be-Displayed-when-Button-is-Pressed/m-p/1540553#M746769</link>
      <description>&lt;P&gt;Hey everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;SQL-Heavy user here, trying to use this janked up syntax thing of a program y'all call QlikView.&amp;nbsp; I have a chart which displays information regarding users for a Salesforce-like database.&amp;nbsp; I have a column with their last login date.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt; I also have a column where it calculates&lt;STRONG&gt; DAYS SINCE LAST LOGIN.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;It ranges from 0 to 900.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; I'm trying to create buttons on the left/selection side that when clicked display just users with &amp;lt;30 days, as well as 31-60 days, and 61+ days.&amp;nbsp; It doesn't have to be buttons it can be anything!&amp;nbsp; I just don't know how to specify the syntax or anything.&amp;nbsp; To get the &lt;STRONG&gt;DAYS SINCE LAST LOGIN&amp;nbsp;&lt;/STRONG&gt;calculation, it's&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;= Round(Today()-[Last Login])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Help me make these buttons!!!&amp;nbsp; &amp;nbsp;The syntax QV uses for expressions is beyond wild!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Specifying-Data-to-be-Displayed-when-Button-is-Pressed/m-p/1540553#M746769</guid>
      <dc:creator>mgordon2</dc:creator>
      <dc:date>2024-11-16T21:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying Data to be Displayed when Button is Pressed</title>
      <link>https://community.qlik.com/t5/QlikView/Specifying-Data-to-be-Displayed-when-Button-is-Pressed/m-p/1540558#M746770</link>
      <description>&lt;P&gt;Welcome to the QlikView world. Easiest and most powerful approach is create a new field in the data when loading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;=&lt;/EM&gt;Round(Today()-[Last Login]) as [Days Since Last Login]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;You can then create a listbox on the sheet with field&amp;nbsp;&lt;SPAN&gt;[Days Since Last Login] and the user can select whatever values they want, including using expressions like &amp;gt;31 when they make the selection.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to provide a grouped field like "&amp;lt;30", "30-60" and so on, use an if() function in the script like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if(Today()-[Last Login]) &amp;gt;60, '61+ days'&lt;BR /&gt;,if(Today()-[Last Login]) &amp;gt;30, '31-60+ days'&lt;BR /&gt;,'&amp;lt;30 days')) as&amp;nbsp;&amp;nbsp;[Days Since Last Login]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 22:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Specifying-Data-to-be-Displayed-when-Button-is-Pressed/m-p/1540558#M746770</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-06T22:31:26Z</dc:date>
    </item>
  </channel>
</rss>

