<?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: Get the currency value i need in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012136#M649044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;my first step would have been to merge the header and lines table to one table &lt;/P&gt;&lt;P&gt;this shouldn't create any data integrity issues&lt;/P&gt;&lt;P&gt;then you would be able to create the date&amp;amp;currency code key&lt;/P&gt;&lt;P&gt;and work with him&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 09:20:29 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2015-09-10T09:20:29Z</dc:date>
    <item>
      <title>Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012135#M649043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a problem i cant resolve on my own, hoping for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Situation is i have 3 tables, that are connected by:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #339966;"&gt;Sales Line&lt;/SPAN&gt; - has all information regarding the sales&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #ff0000;"&gt;connected via "Billing Number"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #339966;"&gt;Sales Header&lt;/SPAN&gt; - has the "currency code" value (for the Billing number)&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #ff0000;"&gt;connected via "currency code"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="color: #339966;"&gt;Currency on Day&lt;/SPAN&gt; - has all 4 currencys (EUR,CAD,USD,CHF) and their value per Day (f. ex. 01.09.2015 has one value for that day for every currency)&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I tried to connect the &lt;SPAN style="color: #339966;"&gt;Currency on Day &lt;SPAN style="color: #000000;"&gt;table via Day(Date) and currency Code. But i cant, because there would be loops.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;The table i need looks like this:&lt;/P&gt;&lt;P style="text-align: left;"&gt;Billing Number - Billing Date - Currency Code - Amount (expression= sum(neto))&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I have it and it works fine, but now we started to sell stuff in foreign currency and my Database(Navision) gives me only the foreign currency amount and thats wrong for my reports.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;STRONG&gt;My Question:&lt;/STRONG&gt; What do i need to write into the Expression for Amount if i want to get the right numbers?&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I want the expression to check the currency Code (also can be blank) and calculate = sum(neto) * Currency on Day(Billing Date) IF the currency code is NOT Blank.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I appreciate any help.&lt;/P&gt;&lt;P style="text-align: left;"&gt;Thank you.&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012135#M649043</guid>
      <dc:creator />
      <dc:date>2015-09-10T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012136#M649044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;my first step would have been to merge the header and lines table to one table &lt;/P&gt;&lt;P&gt;this shouldn't create any data integrity issues&lt;/P&gt;&lt;P&gt;then you would be able to create the date&amp;amp;currency code key&lt;/P&gt;&lt;P&gt;and work with him&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012136#M649044</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-10T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012137#M649045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ty for your answer. The problem is i never did this in the Start (should have..). To change this now, would be a huge amount of work rewriting almost every module and stats i finished. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done earliest in summer. I need now a possibility somehow to get the numbers i need via expressions. If its possible of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012137#M649045</guid>
      <dc:creator />
      <dc:date>2015-09-10T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012138#M649046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so let me see if i understand the situation &lt;/P&gt;&lt;P&gt;currently you have the for any line\amount &lt;/P&gt;&lt;P&gt;the date is part of the line&lt;/P&gt;&lt;P&gt;we know the currency code through the connection to header &lt;/P&gt;&lt;P&gt;so the connection between the line and currency table display the currency rate for one coin for all the dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your expression should be something like &lt;/P&gt;&lt;P&gt;sum(amount)* if(&lt;SPAN style="font-size: 13.3333px;"&gt;CurrencyDate&lt;/SPAN&gt;=BillDate,CurrencyRate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012138#M649046</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-10T11:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012139#M649047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The currency on day table - has Billdate, Exchange rate value and Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically yeah, the table has to show me every line and if currency code something else then blank, it has to get the exchange rate for this day in this currency and calculate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012139#M649047</guid>
      <dc:creator />
      <dc:date>2015-09-10T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012140#M649048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you upload a sample data&lt;/P&gt;&lt;P&gt;all i need the relevant fields from the 3 tables with one row of dummy data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012140#M649048</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-10T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012141#M649049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SalesLine:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Billing Number], // Assume [Billing Number]/[LineNo] is unique...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [LineNo],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; neto,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SalesHeader:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Billing Number],&amp;nbsp; // Assume [Billing Number] is unique...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Currency Code],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Day,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CurrencyOnDay:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Day, // Assume [Day] is unique...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; EUR,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CAD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; USD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CHF&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;T_Convert:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Billing Number],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; LineNo,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; neto&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident SalesLine;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join (T_Convert)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Billing Number],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Currency Code],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Day&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident SalesHeader;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join (T_Convert)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Day,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; EUR,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CAD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; USD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CHF&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident CurrencyOnDay;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join (SalesLine)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Billing Number],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; LineNo,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; neto * Pick(Match([Currency Code], 'EUR', 'CAD', 'USD', 'CHF'), EUR, CAD, USD, CHF) As netoUSD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Pick(Match([Currency Code], 'EUR', 'CAD', 'USD', 'CHF'), EUR, CAD, USD, CHF) As ExchRate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident T_Convert;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table T_Convert;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netoUSD contains the neto amount converted to USD. Note that the conversion may be division depending on how the rates are recorded, or you may want to load the rates all divided by USD (or the inverse), again depending on what the rates look like. The USD - USD rate should always be 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012141#M649049</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-10T11:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012142#M649050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. If there is no "Currency" label, then its just sum(amount).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012142#M649050</guid>
      <dc:creator />
      <dc:date>2015-09-10T11:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get the currency value i need</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012143#M649051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;attach is a demo that works&lt;/P&gt;&lt;P&gt;but as i use aggr functions , it might cause performance issues&lt;/P&gt;&lt;P&gt;if you have a lot of data , if you can't join header and lines may be&lt;/P&gt;&lt;P&gt;you can add the currency field to the lines by left join and then work with a direct key to the currency table &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 12:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-currency-value-i-need/m-p/1012143#M649051</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-09-10T12:18:39Z</dc:date>
    </item>
  </channel>
</rss>

