<?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 Potential Profit/Loss between Open Date and Current Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Potential-Profit-Loss-between-Open-Date-and-Current-Date/m-p/596909#M221074</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;Here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with all open currency trades. I have the Type, Currency Pair, Open Date, Current Close Price and Profit/Loss. What I would like to do is see the max High for a period and min Low&amp;nbsp; for a period - between Open Date and Current Date eg. Today() per trade?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trades that opened on the 6 March and 24 March. I need to find the highest price between the 6 March and Current Day Price and the 24 March and Current Day Price. There may be different Highs because the period between the 6 and 24 might have had a higher&amp;nbsp; price then the period between the 24 March and current date. Therefore 6 March - Current will have a higher potential profit and the 24 March - Current will have a lower potenital profit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have tried so far:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;max&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=concat([Open Date],'"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"'))&amp;lt;=$(=max([Date]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}High&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that its taking the high from the period between the 6 March and current, and allocating it to both trades.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone help me. I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 13:37:37 GMT</pubDate>
    <dc:creator>rarpecalibrate</dc:creator>
    <dc:date>2014-04-03T13:37:37Z</dc:date>
    <item>
      <title>Potential Profit/Loss between Open Date and Current Date</title>
      <link>https://community.qlik.com/t5/QlikView/Potential-Profit-Loss-between-Open-Date-and-Current-Date/m-p/596909#M221074</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;Here is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with all open currency trades. I have the Type, Currency Pair, Open Date, Current Close Price and Profit/Loss. What I would like to do is see the max High for a period and min Low&amp;nbsp; for a period - between Open Date and Current Date eg. Today() per trade?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trades that opened on the 6 March and 24 March. I need to find the highest price between the 6 March and Current Day Price and the 24 March and Current Day Price. There may be different Highs because the period between the 6 and 24 might have had a higher&amp;nbsp; price then the period between the 24 March and current date. Therefore 6 March - Current will have a higher potential profit and the 24 March - Current will have a lower potenital profit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have tried so far:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;max&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=concat([Open Date],'"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"'))&amp;lt;=$(=max([Date]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}High&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that its taking the high from the period between the 6 March and current, and allocating it to both trades.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can someone help me. I hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Potential-Profit-Loss-between-Open-Date-and-Current-Date/m-p/596909#M221074</guid>
      <dc:creator>rarpecalibrate</dc:creator>
      <dc:date>2014-04-03T13:37:37Z</dc:date>
    </item>
  </channel>
</rss>

