<?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: Calculated Formula in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709678#M671516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have merged alle necessary fields into one table. The challenge here the fact that I want the second SCANNING.Umsatz substracted from the first SCANNING.Umsatz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a dimension like&lt;/P&gt;&lt;P&gt;if (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.Statistik = 'yes' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.KontenGruppe = 'UMSCN', 'Teilegruppenstatistik') as S_Artikel.Dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In future I want to build a cascaded if-clause, where I can refer to some possible variations in a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said, the challenge here is that the second part of the if-clause (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.KontenGruppe = 'UMSCN') is substracted from the first part (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.Statistik = 'yes')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I can provide a sample-qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 14:25:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-29T14:25:30Z</dc:date>
    <item>
      <title>Calculated Formula in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709676#M671513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable as follows on the surface (not in the script):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;S_Artikel.Statistik = {'yes'} &amp;gt;}Scanning.UMSATZ) -SUM({&amp;lt;S_Artikel.KontenGruppe = {"UMSCN"}&amp;gt;}Scanning.UMSATZ)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want this definition in the script, so I can define this formula as a Dimension in the Table "S_Artikel". On the surface I want to make a Listbox where I can choose this dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can do this. The only way I can think of is a "mapping load" of the Scanning.UMSATZ into the S_Artikel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it was not too confusing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709676#M671513</guid>
      <dc:creator />
      <dc:date>2014-09-16T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Formula in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709677#M671514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be depend from your datamodel but I think you will need to merge all neccessary fields into a single table. But why want you this transfer into the script - especially these kind of expressions is often better used within the gui and not in the script. If you have already problems with your performance you will rather need a different approach in your datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 15:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709677#M671514</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-16T15:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Formula in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709678#M671516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have merged alle necessary fields into one table. The challenge here the fact that I want the second SCANNING.Umsatz substracted from the first SCANNING.Umsatz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a dimension like&lt;/P&gt;&lt;P&gt;if (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.Statistik = 'yes' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.KontenGruppe = 'UMSCN', 'Teilegruppenstatistik') as S_Artikel.Dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In future I want to build a cascaded if-clause, where I can refer to some possible variations in a listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said, the challenge here is that the second part of the if-clause (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.KontenGruppe = 'UMSCN') is substracted from the first part (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;S_Artikel.Statistik = 'yes')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I can provide a sample-qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hannes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 14:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Formula-in-Script/m-p/709678#M671516</guid>
      <dc:creator />
      <dc:date>2014-09-29T14:25:30Z</dc:date>
    </item>
  </channel>
</rss>

