<?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 avg and if function in one formular in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436247#M484186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an formula of two things, the one thing is the avg formula and the other thing is the if condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;[Undertenthousand]&amp;gt;} [Anz Tage])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula calculate the average of the column "Undertenthousand" of the days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Währung &amp;lt;&amp;gt; 'EUR', EffektwertSumme*Kurs, EffektwertSumme)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula look, if the currency is not EUR, then multiple Effektwert with Kurs, otherwise take EffektwertSumme&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know, how can I cobinate this two formulas in one formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikolaus80&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 11:01:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-04T11:01:37Z</dc:date>
    <item>
      <title>avg and if function in one formular</title>
      <link>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436247#M484186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an formula of two things, the one thing is the avg formula and the other thing is the if condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;[Undertenthousand]&amp;gt;} [Anz Tage])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula calculate the average of the column "Undertenthousand" of the days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Währung &amp;lt;&amp;gt; 'EUR', EffektwertSumme*Kurs, EffektwertSumme)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula look, if the currency is not EUR, then multiple Effektwert with Kurs, otherwise take EffektwertSumme&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know, how can I cobinate this two formulas in one formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikolaus80&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436247#M484186</guid>
      <dc:creator />
      <dc:date>2013-06-04T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: avg and if function in one formular</title>
      <link>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436248#M484187</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;your requirement is not clear.. do you want to integrate the AVG() function inside the if condition.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;if(Währung &amp;lt;&amp;gt; 'EUR', EffektwertSumme*Kurs, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;AVG({&amp;lt;[Undertenthousand]&amp;gt;} [Anz Tage])&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436248#M484187</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-06-04T11:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: avg and if function in one formular</title>
      <link>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436249#M484188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, that is not the right solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here a better introduction to my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the problem that I have different currencies in the column "Währung" like US Dollar. In the other hand&amp;nbsp; I have a colum for the currency rate "Kurs".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formel without the currency is "Avg({&amp;lt;[Undertenthousand]&amp;gt;}[Anz Tage])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column "Undertenthousand" is a if condition in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"if(Effektsumme&amp;lt;'10000', EffektSumme) as Undertenthousand"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The if condition shows the Effektsumme under thousand and save it in Undertenthosuand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to include the currency in the formula, that caculate, if there is no "EUR" then calculate the currency with rate, that i have the amount in euros. &lt;/P&gt;&lt;P&gt;Next step is that this calculated amount (currency*rate) should if it under ten thousand Euros to save as "Undertenthousand"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope is better to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/avg-and-if-function-in-one-formular/m-p/436249#M484188</guid>
      <dc:creator />
      <dc:date>2013-06-04T11:47:39Z</dc:date>
    </item>
  </channel>
</rss>

