<?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: how can you use multiple functions for a single variable in a set expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1708075#M451574</link>
    <description>&lt;P&gt;This is a fantastic idea! However I think I will do it using rangemax of the v_max variables times by their day number in a new variable, I will let you know how it goes!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 08:21:10 GMT</pubDate>
    <dc:creator>Giansonn</dc:creator>
    <dc:date>2020-06-04T08:21:10Z</dc:date>
    <item>
      <title>how can you use multiple functions for a single variable in a set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1707964#M451563</link>
      <description>&lt;P&gt;I am running a chart that shows me some time values but I want to exclude items that have not had enough time to be comparable. To do this I fetch a value from the filter in order to limit the dates in the data. Only I want to have multiple expressions for the same variable, how can I do this?&lt;/P&gt;&lt;P&gt;This is what my set expression looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;count(&amp;nbsp;{&amp;lt;[date]={"&amp;lt;=$(=date(($(varMaxDate)-v_Max_week_number*7),'DD/MM/YYYY'))"}&amp;gt;} ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I would like to have three expressions for the date variable,&amp;nbsp; potentially using rangemin like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=date(=rangemin(=date(($(varMaxDate)-v_Max_week_number*7),'DD/MM/YYYY')),=date(($(varMaxDate)-v_Max_day_number),'DD/MM/YYYY')),=date(($(varMaxDate)-v_Max_sale_number*30.42),'DD/MM/YYYY'))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This however does not work, how can I formulate this expression to make it work?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1707964#M451563</guid>
      <dc:creator>Giansonn</dc:creator>
      <dc:date>2024-11-16T18:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: how can you use multiple functions for a single variable in a set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1708011#M451569</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using one more variable, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;vExpression = If(Condition1=TRUE,'=date(=rangemin(=date(($(varMaxDate)-v_Max_week_number*7),'DD/MM/YYYY'))',
If(Condition2=TRUE, '=date(($(varMaxDate)-v_Max_day_number),'DD/MM/YYYY')),'

If(Condition3=TRUE, '=date(($(varMaxDate)-v_Max_sale_number*30.42),'DD/MM/YYYY'))))', 'Null()'

)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this variable in your expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count( {&amp;lt;date={"$(vExpression)"}&amp;gt;} ID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While creating the chart the expression might show an error but, would still work.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 01:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1708011#M451569</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-04T01:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: how can you use multiple functions for a single variable in a set expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1708075#M451574</link>
      <description>&lt;P&gt;This is a fantastic idea! However I think I will do it using rangemax of the v_max variables times by their day number in a new variable, I will let you know how it goes!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 08:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-can-you-use-multiple-functions-for-a-single-variable-in-a/m-p/1708075#M451574</guid>
      <dc:creator>Giansonn</dc:creator>
      <dc:date>2020-06-04T08:21:10Z</dc:date>
    </item>
  </channel>
</rss>

