<?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: Help to get expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233997#M869934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year = {'$(=Year(Today()))'}, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; customer = p({1&amp;lt;Flag = {1},Year = {'$(=Year(Today())+1)'}&amp;gt;}customer),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; location = p({1&amp;lt;Flag = {1},Year = {'$(=Year(Today())+1)'}&amp;gt;}location)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 09:37:10 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2016-11-28T09:37:10Z</dc:date>
    <item>
      <title>Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233993#M869930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement where I am able to write query but not able to get in expressions. Can you please help me to get the expressions as per the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum(Target) from fact_table&lt;/P&gt;&lt;P&gt;where year = 2016&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;customer in (&lt;STRONG&gt;select customer from fact_table where Flag = 1 and year = 2017&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;location in (&lt;STRONG&gt;select location from fact_table where Flag = 1 and year = 2017&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;group by customer, location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample qvw I managed to create sorry for vague data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233993#M869930</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233994#M869931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your given sample data, Customer &amp;amp; Location for&amp;nbsp; flag=1 and year=2017, there is no Target Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use calculated dimension in your chart&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;location- If(Year=2017 and Flag=1, location)&lt;/P&gt;&lt;P&gt;customer- If(Year=2017, Flag=1, customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check - Suppress&amp;nbsp; when value is Null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year ={'2016'}&amp;gt;}Target)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 08:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233994#M869931</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-11-28T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233995#M869932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want target for 2016 for the customer and location with flag equal to 1 in 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use calculated dimension as I am using variable with input drop down box for dimension i.e user can change dimension from drop down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 08:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233995#M869932</guid>
      <dc:creator />
      <dc:date>2016-11-28T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233996#M869933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is year field same for both customer/location &amp;amp; target?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 09:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233996#M869933</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2016-11-28T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233997#M869934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year = {'$(=Year(Today()))'}, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; customer = p({1&amp;lt;Flag = {1},Year = {'$(=Year(Today())+1)'}&amp;gt;}customer),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; location = p({1&amp;lt;Flag = {1},Year = {'$(=Year(Today())+1)'}&amp;gt;}location)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 09:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233997#M869934</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-11-28T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233998#M869935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi Manish,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is also not working. I have achieved with below expressions for Target in table.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({&amp;lt;Year = {2016}&amp;gt;}Target) * IF(Column(1)=0,0,1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But I am not able to get same total in text box.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let me know if there is any solution for it?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sai Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 08:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233998#M869935</guid>
      <dc:creator />
      <dc:date>2016-12-08T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help to get expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233999#M869937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this..&lt;/P&gt;&lt;P&gt;=SUM(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year = {'$(=Year(Today()))'},&lt;/P&gt;&lt;P&gt;&amp;nbsp; location = p({1&amp;lt;Flag = {1}, Year = {'$(=Year(Today())+1)'}&amp;gt;}location),&lt;/P&gt;&lt;P&gt;&amp;nbsp; customer = p({1&amp;lt;Flag = {1}, Year = {'$(=Year(Today())+1)'}&amp;gt;}customer)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; Target)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 15:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-to-get-expression/m-p/1233999#M869937</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-08T15:23:13Z</dc:date>
    </item>
  </channel>
</rss>

