<?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: Dividing different variable values based on Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530119#M746861</link>
    <description>&lt;P&gt;If you have such currency-table which is associated with PERIOD and Currency-ID respectivel Company-ID to the sales-table you don't need a set analysis for the company else the following will be enough:&lt;/P&gt;&lt;P&gt;sum([VALUE BASE])/[CURRENCY RATE])&lt;/P&gt;&lt;P&gt;and if you want to use without the lower granularity, for example within a KPI you need an aggr-wrapping for it like:&lt;/P&gt;&lt;P&gt;sum(aggr(sum([VALUE BASE])/[CURRENCY RATE]), PERIOD, [Company ID]))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 16:13:26 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-01-14T16:13:26Z</dc:date>
    <item>
      <title>Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529794#M746858</link>
      <description>&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am new to Qlikview and I am really confused with the set analysis,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;&lt;BR /&gt;sum({&amp;lt;[COMPANY ID]={$(40)}&amp;gt;}[VALUE BASE])/[CURRENCY RATE]&lt;/P&gt;&lt;P&gt;How do I choose the currency rate that is corresponding to letter U when company id is 40 (what i select)&lt;BR /&gt;I will then obtain the value in my base currency&lt;BR /&gt;So basically,&amp;nbsp; I am dividing all my values by 0.7333 for this case.&lt;BR /&gt;&lt;BR /&gt;Also I need to do this for a few company id, how do i make it automatically divide by different currency rate based on company ids within the expression?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage.png" style="width: 348px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3673i95C4629D3781F03B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage.png" alt="pastedImage.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529794#M746858</guid>
      <dc:creator>Cheng</dc:creator>
      <dc:date>2024-11-16T21:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529795#M746859</link>
      <description>Hi, Cheng&lt;BR /&gt;Can you provide some sample data and describe your expected result?&lt;BR /&gt;&lt;BR /&gt;ZZ</description>
      <pubDate>Mon, 14 Jan 2019 03:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529795#M746859</guid>
      <dc:creator>zzyjordan</dc:creator>
      <dc:date>2019-01-14T03:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529798#M746860</link>
      <description>&lt;P&gt;Hi Zzyjordan,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;FISCAL YEAR&lt;/TD&gt;&lt;TD&gt;Sales Period&lt;/TD&gt;&lt;TD&gt;sum({&amp;lt;[COMPANY ID]={$(40)}&amp;gt;}[VALUE BASE])/[CURRENCY RATE]&lt;/TD&gt;&lt;TD&gt;Revenue&lt;/TD&gt;&lt;TD&gt;Company ID&lt;/TD&gt;&lt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&lt;/TD&gt;&lt;TD&gt;….&lt;/TD&gt;&lt;TD&gt;3572.67&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2015&lt;/TD&gt;&lt;TD&gt;201501&lt;/TD&gt;&lt;TD&gt;113.39 / 0.783247&lt;/TD&gt;&lt;TD&gt;113.39&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2016&lt;/TD&gt;&lt;TD&gt;201601&lt;/TD&gt;&lt;TD&gt;13.46 / 0.543325&lt;/TD&gt;&lt;TD&gt;13.46&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2017&lt;/TD&gt;&lt;TD&gt;201701&lt;/TD&gt;&lt;TD&gt;….&lt;/TD&gt;&lt;TD&gt;8.33&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2018&lt;/TD&gt;&lt;TD&gt;201801&lt;/TD&gt;&lt;TD&gt;….&lt;/TD&gt;&lt;TD&gt;52.96&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;201901&lt;/TD&gt;&lt;TD&gt;….&lt;/TD&gt;&lt;TD&gt;95.63&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pastedImage1.png" style="width: 344px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3674iC340F527F78EF6C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage1.png" alt="pastedImage1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;U = 40, H = 80 for instance.&lt;/P&gt;&lt;P&gt;I want to filter by company id (40 or 80) and obtain the value of the revenue in base&amp;nbsp;currency for instance by summing the values.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 04:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1529798#M746860</guid>
      <dc:creator>Cheng</dc:creator>
      <dc:date>2019-01-14T04:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530119#M746861</link>
      <description>&lt;P&gt;If you have such currency-table which is associated with PERIOD and Currency-ID respectivel Company-ID to the sales-table you don't need a set analysis for the company else the following will be enough:&lt;/P&gt;&lt;P&gt;sum([VALUE BASE])/[CURRENCY RATE])&lt;/P&gt;&lt;P&gt;and if you want to use without the lower granularity, for example within a KPI you need an aggr-wrapping for it like:&lt;/P&gt;&lt;P&gt;sum(aggr(sum([VALUE BASE])/[CURRENCY RATE]), PERIOD, [Company ID]))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 16:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530119#M746861</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-14T16:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530214#M746862</link>
      <description>currently, i dont have a table that links company id with the foreign currency table, therefore i think i still have to write in the script to ensure that i am dividing only by a particular foreign currency for a particular company id.&lt;BR /&gt;&lt;BR /&gt;My actual currency conversion table contains multiple currency rate for the same sales period instead of just U. (if you refer to the first picture in my first post)&lt;BR /&gt;If i just use sum([VALUE BASE])/[CURRENCY RATE]), i dont think the values will be correct.&lt;BR /&gt;&lt;BR /&gt;Do you have any suggestions for this?</description>
      <pubDate>Tue, 15 Jan 2019 01:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530214#M746862</guid>
      <dc:creator>Cheng</dc:creator>
      <dc:date>2019-01-15T01:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530219#M746863</link>
      <description>what i want to achieve is similar to this&lt;BR /&gt;&lt;BR /&gt;if (company id = a, we take the sum(value/currencyrate=p)&lt;BR /&gt;if (company id = b, we take the sum(value/currencyrate=q)&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 02:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530219#M746863</guid>
      <dc:creator>Cheng</dc:creator>
      <dc:date>2019-01-15T02:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing different variable values based on Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530318#M746864</link>
      <description>&lt;P&gt;In each case you will need to define a logic to link your information and to grab them from there - if you don't have it in a table you should create one because it will be easier as doing it within the UI within a lot of if-constructs.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-different-variable-values-based-on-Selection/m-p/1530318#M746864</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-15T09:32:17Z</dc:date>
    </item>
  </channel>
</rss>

