<?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 Max Name and Value Hourly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314027#M459981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;On my phone so i cant view your app, but try this for the name of a max value:&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Assuming your "Hour dimension" is called YourHourDim &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=only(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;if(aggr(Rank(sum(Value),Name,YourHourDim)=1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp; Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2017 21:53:43 GMT</pubDate>
    <dc:creator>RSvebeck</dc:creator>
    <dc:date>2017-07-14T21:53:43Z</dc:date>
    <item>
      <title>Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314023#M459977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I've been struggling with this trying to get it to work. I've gotten most of it but just can't get over the hump. I am not strong in calculated dimensions and suspect that is where it will be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the NAME and maximum value for a particular NAME hourly &lt;SPAN style="font-size: 13.3333px;"&gt;throughout&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; the day. I have multiple NAME's with a VALUE and it may or may not be associated to an HOUR of any given day. The attachment I provided has a table with 3 days of data. Each bar shows the correct VALUE but not the correct NAME. For the first date of 7/1 and HOUR 00 I would expect to see the VALUE of 162034 (which it does) and the NAME of HOS (which it doesn't). For HOUR 01 I expect to see VALUE of 141720 (which it does) and again NAME of HOS (which it doesn't). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Also, if I select TYPE A or B I expect to see the associated max VALUE's and associated NAME's.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also need the legend to display the NAME and associated color. Note that this chart is showing only one color but again, the calculated NAME dimension isn't right and all are showing 3469.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am suspecting my issue is in my calculated dimension but I've tried every permutation I could think of with no success. I've attached my document. If the answer partially lies in the script just export and reload the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;John&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 20:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314023#M459977</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2017-07-14T20:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314024#M459978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for you name in the calculated dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= IF(Aggr(Max(VALUE), NAME), NAME)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314024#M459978</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-07-14T21:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314025#M459979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't seem to change anything, Nagaraju. I am still seeing CER across the entire bar chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314025#M459979</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2017-07-14T21:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314026#M459980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VALUE&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;HOUR&lt;/SPAN&gt;&lt;SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314026#M459980</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-07-14T21:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314027#M459981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;On my phone so i cant view your app, but try this for the name of a max value:&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Assuming your "Hour dimension" is called YourHourDim &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=only(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;if(aggr(Rank(sum(Value),Name,YourHourDim)=1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp; Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314027#M459981</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-07-14T21:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314028#M459982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IS this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170303_Capture.PNG" style="height: 398px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 22:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314028#M459982</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-07-14T22:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314029#M459983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Again, CER is being displayed, not the correct NAME per highest VALUE by HOUR. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314029#M459983</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2017-07-17T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314030#M459984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That just displays CER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314030#M459984</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2017-07-17T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Name and Value Hourly</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314031#M459985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I'm looking for that single NAME with the highest VALUE for each HOUR. Looking at the data it's going to be HOS in most, if not all cases. When selections are made to limit the NAME's I'd expect the highest VALUE/NAME to be displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Max-Name-and-Value-Hourly/m-p/1314031#M459985</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2017-07-17T14:05:17Z</dc:date>
    </item>
  </channel>
</rss>

