<?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: Qlikview Expression Error - Unable To Determine The Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534080#M439011</link>
    <description>&lt;P&gt;Hello Donicc:&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; Great suggestions and ideas.&amp;nbsp; For the Load script, I changed the vQtrNum definition pretty much as suggested like the following.&amp;nbsp; It definitely simplifies it:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I then tried your next suggestion and I still get "Errors in expression" in the expression editor.&amp;nbsp; I did try the $ expansion as well.&amp;nbsp; Interestingly, I have the same problem with the following expression, but it actually works:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I will try your other suggestions.&amp;nbsp; I'm thinking I will mark your response as correct, but will wait to see if you have another response.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;To give you a little more background, I always have the same products, so probably having one product group would work.&amp;nbsp; From there, using your suggestions, I&amp;nbsp; could then work on simplifying the expression.&amp;nbsp; For this particular expression, I trying to get quarterly order averages for each product on a monthly basis.&amp;nbsp; That's why I have x.333 numbers for when we're not at the end of a quarter (it's not 100%, but close enough for this exercise).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Thanks again for your response and help.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 20:28:40 GMT</pubDate>
    <dc:creator>pnn44794</dc:creator>
    <dc:date>2019-10-11T20:28:40Z</dc:date>
    <item>
      <title>Qlikview Expression Error - Unable To Determine The Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1531813#M438801</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;I've been trying (and probably for too long) to determine what's wrong with the following expression (Expression Editor says "Errors in expression"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;[Q1 Consumed] is another expression calculated in the straight table prior to this expression.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Any help will be appreciated.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1531813#M438801</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2024-11-16T21:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Expression Error - Unable To Determine The Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1533999#M438999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using dollar expansion on vQtrNum. E.g., $(vQtrNum).&lt;/P&gt;&lt;P&gt;I'm not sure about&amp;nbsp; the problem you are trying to solve or the layout of your data model so I'll try to give some general pointers.&lt;/P&gt;&lt;P&gt;Verbose code is difficult to troubleshoot. First, try to simplify the formula for clarity.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vMonth = num(month(now())) ;&lt;BR /&gt;vQtrNum = If(vMonth &amp;gt; 0 and vMonth &amp;lt;= 5, 1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; If(vMonth &amp;gt; 5 and vMonth &amp;lt;= 8, 2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(vMonth &amp;gt; 8 and vMonth &amp;lt;= 11, 3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(vMonth = 12, 4)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;if( vQtrNum = 1 and match(Forecast_Product_Base,&lt;BR /&gt;&amp;nbsp;'VSI Silver Base',&lt;BR /&gt;&amp;nbsp;'VSI Gold Base',&lt;BR /&gt;&amp;nbsp;'VSI Platinum Base',&lt;BR /&gt;&amp;nbsp;'VSI Power Base',&lt;BR /&gt;&amp;nbsp;'PSI Base',&lt;BR /&gt;&amp;nbsp;'PSI HDD Base',&lt;BR /&gt;&amp;nbsp;'GP Block (GB)',&lt;BR /&gt;&amp;nbsp;'IaaS Block (GB)',&lt;BR /&gt;&amp;nbsp;'File (GB)',&lt;BR /&gt;&amp;nbsp;'PSI Custom'),&lt;BR /&gt;&amp;nbsp;[Q1 Consumed] / vQtrNum);&lt;/P&gt;&lt;P&gt;Once you get that working, you can look at ways to simplify further using more traditional Qlikview methods. Such as with set analysis:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum ({&amp;lt;Forecast_Product_Base={ 'VSI Silver Base', 'VSI Gold Base', 'VSI Platinum Base', 'VSI Power Base', 'PSI Base', 'PSI HDD Base', 'GP Block (GB)', 'IaaS Block (GB)', 'File (GB)', 'PSI Custom'}&amp;gt;} [Q1 Consumed]) / vQtrNum&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you have a lot of products that are typically grouped for these types of calculations, you can define those groups during the load for handy reference in formulas.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(match(Forecast_Product_Base,&lt;BR /&gt;&amp;nbsp;'VSI Silver Base',&lt;BR /&gt;&amp;nbsp;'VSI Gold Base',&lt;BR /&gt;&amp;nbsp;'VSI Platinum Base',&lt;BR /&gt;&amp;nbsp;'VSI Power Base'), 'VSIProductGroup',&lt;BR /&gt;&amp;nbsp;if(match(Forecast_Product_Base,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'PSI Base',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'PSI HDD Base',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'PSI Custom'), 'PSIProductGroup', 'No Product Group Defined')&lt;BR /&gt;)&amp;nbsp;&amp;nbsp; as ProductGroup&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then your set analysis would look something like:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sum ({&amp;lt;ProductGroup={ 'VSIProductGroup', 'PSIProductGroup'&amp;gt;} [Q1 Consumed]) / vQtrNum&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1533999#M438999</guid>
      <dc:creator>Donicc</dc:creator>
      <dc:date>2019-01-23T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Expression Error - Unable To Determine The Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534080#M439011</link>
      <description>&lt;P&gt;Hello Donicc:&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; Great suggestions and ideas.&amp;nbsp; For the Load script, I changed the vQtrNum definition pretty much as suggested like the following.&amp;nbsp; It definitely simplifies it:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I then tried your next suggestion and I still get "Errors in expression" in the expression editor.&amp;nbsp; I did try the $ expansion as well.&amp;nbsp; Interestingly, I have the same problem with the following expression, but it actually works:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I will try your other suggestions.&amp;nbsp; I'm thinking I will mark your response as correct, but will wait to see if you have another response.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;To give you a little more background, I always have the same products, so probably having one product group would work.&amp;nbsp; From there, using your suggestions, I&amp;nbsp; could then work on simplifying the expression.&amp;nbsp; For this particular expression, I trying to get quarterly order averages for each product on a monthly basis.&amp;nbsp; That's why I have x.333 numbers for when we're not at the end of a quarter (it's not 100%, but close enough for this exercise).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Thanks again for your response and help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 20:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534080#M439011</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-11T20:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Expression Error - Unable To Determine The Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534134#M439015</link>
      <description>&lt;P&gt;Try wrapping the field in an aggregation&amp;nbsp;:&lt;/P&gt;&lt;P&gt;sum(&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;[Q1 Consumed]) /&amp;nbsp; vQtrNum&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;(sum(&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;[Q1 Consumed])&lt;/FONT&gt; +Sum( &lt;FONT color="#0000ff"&gt;[Q2 Consumed]&lt;/FONT&gt;) )) / vQtrNum&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Another thing you can try is to calculate QtrNum at load time, making the value available as a field. Then your formula for Qtr 2 with set analysis would be something like:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;sum(&amp;nbsp;{&amp;lt;QtrNum={'1','2'}&amp;gt;} &amp;nbsp;&amp;nbsp;&lt;FONT color="#0000ff"&gt;[Consumed] )&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;/&amp;nbsp; vQtrNum&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 21:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534134#M439015</guid>
      <dc:creator>Donicc</dc:creator>
      <dc:date>2019-01-23T21:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview Expression Error - Unable To Determine The Error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534178#M439018</link>
      <description>&lt;P&gt;No luck.&amp;nbsp; I still have the "Errors in expression" error in the editor, plus the values blank out when I try your expression.&amp;nbsp; Please note, and I should have mentioned this before, [Q1 Consumed] thru [Q4 Consumed] are values previously calculated in the straight table.&amp;nbsp; Not sure if that matters.&lt;/P&gt;&lt;P&gt;In any event, the calculation I have below seems to be working, even with the editor still saying "Errors in expression".&amp;nbsp; However, I will mark your original answer as correct.&amp;nbsp; You gave me some excellent suggestions and I have successfully implemented one of them.&amp;nbsp; Thank you so much for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 20:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-Expression-Error-Unable-To-Determine-The-Error/m-p/1534178#M439018</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2019-10-11T20:29:44Z</dc:date>
    </item>
  </channel>
</rss>

