<?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 Using Variable in Dynamic Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Variable-in-Dynamic-Expression/m-p/1646127#M730916</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a very basic query which I am not able to figure out as to where I am doing wrong&lt;/P&gt;&lt;P&gt;In a chart expression I have following :&amp;nbsp;&lt;STRONG&gt;Count({&amp;lt;&lt;FONT color="#FF0000"&gt;[Actual Build End Date]&lt;/FONT&gt; = {"=Sum(&lt;FONT color="#FF0000"&gt;[Actual Build End Date]&lt;/FONT&gt;) &amp;gt; 0"}&amp;gt;}vActual)&lt;/STRONG&gt; and it evaluates correctly as per my expectations. But I want a very dynamic expression.&lt;/P&gt;&lt;P&gt;Where vActual is defined as&amp;nbsp;&lt;STRONG&gt;GetFieldSelections(Actual)&lt;/STRONG&gt; and results in value selected from the inline table Actual and one of the selected value is&amp;nbsp;[Actual Build End Date]. It means the value of&amp;nbsp; variable vActual is&amp;nbsp;&lt;STRONG&gt;[Actual Build End Date].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to dynamically make expression of count such that it ignores all empty values from the field &lt;STRONG&gt;[Actual Build End Date]&lt;/STRONG&gt;. There is one dimension called Week, which is not relevant here. My intention is that for the given week I want count of all rows in the field&amp;nbsp;&lt;STRONG&gt;[Actual Build End Date] &lt;/STRONG&gt;which has one or other date ignoring blanks.&lt;/P&gt;&lt;P&gt;Can you all help me by substituting my variable name in the main expression which is red in color. I hope I am clear in my query.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>manpri7078</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Using Variable in Dynamic Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-in-Dynamic-Expression/m-p/1646127#M730916</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a very basic query which I am not able to figure out as to where I am doing wrong&lt;/P&gt;&lt;P&gt;In a chart expression I have following :&amp;nbsp;&lt;STRONG&gt;Count({&amp;lt;&lt;FONT color="#FF0000"&gt;[Actual Build End Date]&lt;/FONT&gt; = {"=Sum(&lt;FONT color="#FF0000"&gt;[Actual Build End Date]&lt;/FONT&gt;) &amp;gt; 0"}&amp;gt;}vActual)&lt;/STRONG&gt; and it evaluates correctly as per my expectations. But I want a very dynamic expression.&lt;/P&gt;&lt;P&gt;Where vActual is defined as&amp;nbsp;&lt;STRONG&gt;GetFieldSelections(Actual)&lt;/STRONG&gt; and results in value selected from the inline table Actual and one of the selected value is&amp;nbsp;[Actual Build End Date]. It means the value of&amp;nbsp; variable vActual is&amp;nbsp;&lt;STRONG&gt;[Actual Build End Date].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to dynamically make expression of count such that it ignores all empty values from the field &lt;STRONG&gt;[Actual Build End Date]&lt;/STRONG&gt;. There is one dimension called Week, which is not relevant here. My intention is that for the given week I want count of all rows in the field&amp;nbsp;&lt;STRONG&gt;[Actual Build End Date] &lt;/STRONG&gt;which has one or other date ignoring blanks.&lt;/P&gt;&lt;P&gt;Can you all help me by substituting my variable name in the main expression which is red in color. I hope I am clear in my query.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-in-Dynamic-Expression/m-p/1646127#M730916</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Variable in Dynamic Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Variable-in-Dynamic-Expression/m-p/1646129#M730917</link>
      <description>&lt;P&gt;As per my understanding, you want to count the "Actual Build End Date" field and ignore the blanks, I think you can use the below in your script when you load the data:&lt;/P&gt;&lt;P&gt;Load ......,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If(IsNull("Actual Build End Date") or&amp;nbsp;"Actual Build End Date"='',0,1) as&amp;nbsp;"Actual Build End Date Counter"&lt;/P&gt;&lt;P&gt;From ........&lt;/P&gt;&lt;P&gt;Then in your expression just use Sum("Actual Build End Date Counter")&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 04:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Variable-in-Dynamic-Expression/m-p/1646129#M730917</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2019-11-13T04:45:50Z</dc:date>
    </item>
  </channel>
</rss>

