<?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: Each Row Each Formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030261#M347914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression must be a valid expression, so I would suggest that you double check by copying the expression to your straight table as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see at least two issues&lt;/P&gt;&lt;P&gt;a) a missing closing bracket&lt;/P&gt;&lt;P&gt;b) missing aggregation function&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you want to aggregate your values, one possible expression could be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick( N°Expresion, Sum(If(TipoContrato = 'Hora',1.5*Sueldo*Hrs.Ext., If(TipoContrato = 'Día', 1.5*(SueldoMensual/[Horas Pactadas])*Hrs.Ext., 1.5*(Sueldo/30)*(7/45)*Hrs.Ext.))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is very costly to calculate, since QV needs to temporarily join all tables on the path between tables where the fields of your aggregation are located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the logic of the pick( &lt;SPAN style="font-size: 13.3333px;"&gt;N°Expresion, ...) would expect that you are listing (in your sample) 3 expressions, not only 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you started with the first expression, then struggled with the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 18:00:24 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-14T18:00:24Z</dc:date>
    <item>
      <title>Each Row Each Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030258#M347911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How in QlikView I can put a formula according the selection filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a filter with many values Each value has to have a formula. See the example for better understanding ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 21:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030258#M347911</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2016-04-13T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Each Row Each Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030259#M347912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to evaluate a different expression per dimension line, you would need a conditional that checks the dimension value and branch into the appropriate expression path, e.g. using a pick/match conditional combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 22:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030259#M347912</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-13T22:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Each Row Each Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030260#M347913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, Inside from inline table, How could I put a conditional formula from 2 differents resident tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached test qvw file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valor| Pick( N°Expresion,If(TipoContrato = 'Hora',1.5*Sueldo*Hrs.Ext., If(TipoContrato = 'Día', 1.5*(SueldoMensual/[Horas Pactadas])*Hrs.Ext., 1.5*(Sueldo/30)*(7/45)*Hrs.Ext.))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; SueldoMensual = From Different Table...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The other Table contains N°Semanas with another formula...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030260#M347913</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2016-04-14T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Each Row Each Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030261#M347914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression must be a valid expression, so I would suggest that you double check by copying the expression to your straight table as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see at least two issues&lt;/P&gt;&lt;P&gt;a) a missing closing bracket&lt;/P&gt;&lt;P&gt;b) missing aggregation function&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you want to aggregate your values, one possible expression could be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick( N°Expresion, Sum(If(TipoContrato = 'Hora',1.5*Sueldo*Hrs.Ext., If(TipoContrato = 'Día', 1.5*(SueldoMensual/[Horas Pactadas])*Hrs.Ext., 1.5*(Sueldo/30)*(7/45)*Hrs.Ext.))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is very costly to calculate, since QV needs to temporarily join all tables on the path between tables where the fields of your aggregation are located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the logic of the pick( &lt;SPAN style="font-size: 13.3333px;"&gt;N°Expresion, ...) would expect that you are listing (in your sample) 3 expressions, not only 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you started with the first expression, then struggled with the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030261#M347914</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-14T18:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Each Row Each Formula</title>
      <link>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030262#M347915</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 found another way to get my result and almost I get it, just one expression gave me bad another result in comparison with the same expression but from the script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(TipoContrato = 'Hora',Hrs.Ord.*Sueldo, If(TipoContrato = 'Día', Ds.Trab.*Sueldo, Sueldo/[N° Semanas]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the same expression and script: Watch sueldomensual Table (With Resident table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the same value that my expression table graph....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Each-Row-Each-Formula/m-p/1030262#M347915</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2016-04-15T14:06:09Z</dc:date>
    </item>
  </channel>
</rss>

