<?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: Re: Issues formatting formula in Set analysis expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512444#M191456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp; I do have NETWORKID selected as a dimension in another chart on another tab so your original solution definitely worked for that. Call that object 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more of a part II to my original question.&amp;nbsp;&amp;nbsp; Here I want to basically pull the total line from object 1 into a summary tab.&amp;nbsp;&amp;nbsp;&amp;nbsp; I first tried to copy object 1 into the summary tab and then remove NETWORKID and add COUNTRY in the dimension list.&amp;nbsp;&amp;nbsp; This is making the 'if' statement = false (I presume because the argument references a NETWORKID which is now no longer in the object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I tried your solution below but unfortunately it didn't work. As you mentioned it must have something to do with my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2013 11:58:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-30T11:58:23Z</dc:date>
    <item>
      <title>Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512438#M191450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp; I searched for a solution to my issue but was unable to find an existing thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following formula works properly to display sale1 in this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt;NETWORKID = 9415.1,&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} SALES1),&lt;/P&gt;&lt;P&gt;sum(SALES1)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I would actually like to replace 'SALES1' with a more complex formula listed here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P&gt;sum(if (InDay (statistics.date, Today(), -2), SALES2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to simply swap this more complex formula in places of 'SALES1' but it breaks my expression and results in blanks fields.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt;NETWORKID = 9415.1,&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} [&lt;/P&gt;&lt;P&gt;sum(if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P&gt;sum(if (InDay (statistics.date, Today(), -2), SALES2))]&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(SALES1)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512438#M191450</guid>
      <dc:creator />
      <dc:date>2013-08-21T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512439#M191451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hi try something in the line of:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if (&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NETWORKID = 9415.1,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( {$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;}&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;}&lt;/SPAN&gt;if (InDay (statistics.date, Today(), -2), SALES2))&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum( if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(if (InDay (statistics.date, Today(), -2), SALES2))&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512439#M191451</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2013-08-21T12:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512440#M191452</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;I think this should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(NETWORKID = 9415.1,&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} if (InDay (statistics.date, Today(), -2), SALES2)),&lt;/P&gt;&lt;P&gt;sum(SALES1)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 12:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512440#M191452</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-08-21T12:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512441#M191453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response and sorry the delay in mine - was traveling.&amp;nbsp;&amp;nbsp; This works, thank you.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that I have to include NETWORKID as a dimension in my table in order for this expression to work though.&amp;nbsp;&amp;nbsp; Is there any way around that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to calculate the sales based on this expression but roll them up by a different dimension in a summary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 04:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512441#M191453</guid>
      <dc:creator />
      <dc:date>2013-08-29T04:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512442#M191454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I assumed that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NETWORKID&lt;/SPAN&gt; was something you had selected. If you want to include this on a table/chart with other dimensions, you may be able to use:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(Aggr(&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;If(NETWORKID = 9415.1,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;sum({$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} if (InDay (statistics.date, Today(), -2), SALES1)) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;sum({$&amp;lt;AMP_DP_NETWORKID -= {9003.1}&amp;gt;} if (InDay (statistics.date, Today(), -2), SALES2)),&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;sum(SALES1)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, Dim1, Dim2, Dim3))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Dim1 - Dim3 are the dimensions on your chart (change to the correct number and names of the chart dimensions). Whether this works or not depends though on the structure of your model and where these fields are located.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jonathan&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Edit: fixed parentheses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 07:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512442#M191454</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-08-30T07:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512443#M191455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might helps&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NETWORKID ={9415.1}&lt;/SPAN&gt;,AMP_DP_NETWORKID -= {9003.1}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;statistics.date&lt;/SPAN&gt;={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InDay(statistics.date, Today(), -2)&lt;/SPAN&gt;"}&amp;gt;} SALES1) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NETWORKID ={9415.1}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;AMP_DP_NETWORKID -= {9003.1}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;statistics.date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;={"=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;InDay(statistics.date, Today(), -2)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"}&lt;/SPAN&gt;&amp;gt;}&amp;nbsp; SALES2) +&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;S&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;um({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NETWORKID -={9415.1}&amp;gt;} SALES1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 08:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512443#M191455</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-30T08:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512444#M191456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your help.&amp;nbsp; I do have NETWORKID selected as a dimension in another chart on another tab so your original solution definitely worked for that. Call that object 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is more of a part II to my original question.&amp;nbsp;&amp;nbsp; Here I want to basically pull the total line from object 1 into a summary tab.&amp;nbsp;&amp;nbsp;&amp;nbsp; I first tried to copy object 1 into the summary tab and then remove NETWORKID and add COUNTRY in the dimension list.&amp;nbsp;&amp;nbsp; This is making the 'if' statement = false (I presume because the argument references a NETWORKID which is now no longer in the object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I tried your solution below but unfortunately it didn't work. As you mentioned it must have something to do with my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 11:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512444#M191456</guid>
      <dc:creator />
      <dc:date>2013-08-30T11:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Issues formatting formula in Set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512445#M191457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&amp;nbsp; Using this results in "Error in set modifier ad hoc element list".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 12:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issues-formatting-formula-in-Set-analysis-expression/m-p/512445#M191457</guid>
      <dc:creator />
      <dc:date>2013-08-30T12:18:47Z</dc:date>
    </item>
  </channel>
</rss>

