<?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: Write a conditional expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049513#M352547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Please share sample file with expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 07:09:43 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2016-02-17T07:09:43Z</dc:date>
    <item>
      <title>Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049501#M352535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fields called customer_code and sales_group and I have Sum(Grosssale) and Sum(netSale).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to write an expression that if sale_group = ‘Gen’ , ‘Inst’, ‘imp’ and customer_code which start with ‘NP*’&lt;/P&gt;&lt;P&gt;then I want Sum(Grosssale) otherwise I want Sum(netSale).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049501#M352535</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2016-02-17T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049502#M352536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Try expression as,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Match(&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;sale_group, &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;‘Gen’,‘Inst’,‘imp’ ) and WildMatch(&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;customer_code,&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;‘NP*’), &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(Grosssale), &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(netSale))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049502#M352536</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-17T05:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049503#M352537</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;=if(&lt;STRONG&gt;Sales_Group='Gen' or &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sales_Group='Inst' or &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sales_Group='Imp'&lt;/STRONG&gt; and&amp;nbsp; &lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ustomer_Code like 'NP*'&lt;/STRONG&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(GrossSales), Sum(NetSale)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049503#M352537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T05:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049504#M352538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression getting write output in straight or pivot table when one or more&amp;nbsp; dimension &lt;SPAN style="font-size: 13.3333px;"&gt;with customer_code&lt;/SPAN&gt;&amp;nbsp; but when I removed &lt;SPAN style="font-size: 13.3333px;"&gt;customer_code from dimension then the output is not giving &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Grosssale) its giving &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(NetSale)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049504#M352538</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2016-02-17T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049505#M352539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Script,&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Match(&lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;sale_group, &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;‘Gen’,‘Inst’,‘imp’ ) and WildMatch(&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;customer_code,&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;‘NP*’), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;GrossSales, NetSale) AS Sales&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Then in your expression, simply use Sum(Sales)&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049505#M352539</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-02-17T06:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049506#M352540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(if(match(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sale_group, &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;‘Gen’,‘Inst’,‘imp’ ) and wildmatch(&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;customer_code,''NP*'),&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Grosssale,&lt;/STRONG&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;netSale)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049506#M352540</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-02-17T06:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049507#M352541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Sum({&amp;lt;sale_group={'Gen','Inst','imp'},customer_code={'NP*'}&amp;gt;}Grosssale)=0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(netSale),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;sale_group={'Gen','Inst','imp'},customer_code={'NP*'}&amp;gt;}Grosssale))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049507#M352541</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-17T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049508#M352542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(MixMatch(sale_group, ‘Gen’ , ‘Inst’, ‘imp’) AND customer_code LIKE ‘NP*’, &lt;SPAN style="line-height: 1.5em;"&gt;Sum(Grosssale), Sum(netSale))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049508#M352542</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-17T06:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049509#M352543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;Sales Group='Gen'&amp;gt;} Gross sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write the expression in this way want you want the values required in column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049509#M352543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T06:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049510#M352544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try what I suggested you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can replace And operator with OR for same&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049510#M352544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049511#M352545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all expression which is given by you but not getting exact output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049511#M352545</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2016-02-17T06:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049512#M352546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share your sample data if you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049512#M352546</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-02-17T07:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049513#M352547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Please share sample file with expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049513#M352547</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-02-17T07:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049514#M352548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;try like this..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(match(sale_group, ‘Gen’ , ‘Inst’, ‘imp’) and wildmatch(customer_code,‘NP*’),'G','N') as Flag&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Chart:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression 1: Sum({&amp;lt;Flag={'G'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Grosssale&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Expression 2: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Flag={'N'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;netSale&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Expression 3: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Flag={'G'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Grosssale&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)+&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Flag={'N'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;netSale&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Compare the 3rd expression result with the other 2 expressions)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If still not getting, share the application...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049514#M352548</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-17T07:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049515#M352549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM({&amp;lt;Sale_Group={'Gen'}&amp;gt;}GrossSale)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049515#M352549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T07:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049516#M352550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Match(&lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;sale_group, &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;‘Gen’,‘Inst’,‘imp’ ) and WildMatch(&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;customer_code,&lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;‘NP*’), &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Sum(Grosssale), &lt;/EM&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Sum(netSale)),&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;C&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ustomer_Code))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049516#M352550</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-02-17T07:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write a conditional expression</title>
      <link>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049517#M352551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wrote :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #999999;"&gt;Your expression getting write output in straight or pivot table when one or more&amp;nbsp; dimension &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;with customer_code&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; but when I removed &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;customer_code from dimension then the output is not giving&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM&gt;Sum(Grosssale) its giving &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="color: #999999;"&gt;Sum(NetSale)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What need to happen if &lt;EM&gt;customer_code &lt;/EM&gt;first 2 characters or &lt;EM&gt;sale_group&lt;/EM&gt; is not unique in your filtered set of data?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If a part of your data correspond to your condition to use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Grosssale) and other part to &lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Sum(NetSale).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Write-a-conditional-expression/m-p/1049517#M352551</guid>
      <dc:creator>sfatoux72</dc:creator>
      <dc:date>2016-02-17T07:54:22Z</dc:date>
    </item>
  </channel>
</rss>

