<?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: Show Worst Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105731#M16616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brijesh, in this sample the value is hidden because in presentation tab the option to 'supress zero values' is checked, so the 0% is deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unchecking the bos will show the 0% (worst percentage) and also all the null values, to shoe only the 0% you can leave the option checked and use this expression to avoid the interpretation of zero as a number:&lt;/P&gt;&lt;P&gt;if(Rank(num(Year)+num(Month)/12+10000000*Aggr(-sum(GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum(LENS_COUNT_COMP),Region,MonthYear),4)=1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;text(Num(&lt;/STRONG&gt;sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP)&lt;STRONG&gt;, '0%'))&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2018 06:19:32 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2018-08-06T06:19:32Z</dc:date>
    <item>
      <title>Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105728#M16613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It seems simple, but I am missing something here. I have a straight table with Region, MonthYear&amp;nbsp; as dimensions and I need to show the Sales&amp;nbsp; and Worst Sales (Minimum).&amp;nbsp; Also when selecting Month or Year, there should not be any impact (Nullification of Month and Year).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Below is my expression for&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Worst Sales:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(Rank(num(Year)+num(Month)/12+10000000*Aggr(-sum(GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum(LENS_COUNT_COMP),Region,MonthYear))=1,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;Region&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH&gt;Sales&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Worst Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;EIPL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Apr-2018&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0.00079554494828958&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0.00079554494828958&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;NJYK&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Jan-2018&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0.0056818181818182&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to achieve Sales and Worst Sales, However problem is nullification of Month and Year is not working meaning when I select any month or year, this chart is also filtered based on selected month or year. however that should not happen as per my requirement.&lt;/P&gt;&lt;P&gt;Also if Sales is zero for two Regions then it should show latest month's 0 sales as Worst sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would aopreciate any possible ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brijesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2018 09:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105728#M16613</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2018-08-04T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105729#M16614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brijesh, maybe?&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Rank(num(&lt;STRONG&gt;Only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;{$&amp;lt;Month=,Year=&amp;gt;} &lt;/SPAN&gt;Year)&lt;/STRONG&gt;)+num(&lt;STRONG&gt;Only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;{$&amp;lt;Month=,Year=&amp;gt;} &lt;/SPAN&gt;Month)&lt;/STRONG&gt;)/12+10000000*Aggr(-sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;{$&amp;lt;Month=,Year=&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;{$&amp;lt;Month=,Year=&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;LENS_COUNT_COMP),Region,MonthYear))=1,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP))&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If doesn't works, can you upload a sample to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2018 09:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105729#M16614</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-08-04T09:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105730#M16615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Marin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated your response on this. "Only" is not helping to solve the problem.&lt;/P&gt;&lt;P&gt;I have attached sample QVW and sample data in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is quite simple; Region, MonthYear are as dimensions and we need to show Sales % and Worst Sales %(Minimum Sales%) as Expressions; Month or Year selection should not impact this object. (If there are similar Minimum Sales % for two Regions then latest month need to be shown)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently Sales % is working fine.However Worst Sales % is not working as expected. I have used rank to achieve this, but when minimum % is similar for more than one region or minimum % is zero then its not working as expected.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have attached QVW and Sample data in excel with required description. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any possible idea will be warmly welcomed. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brijesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2018 20:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105730#M16615</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2018-08-04T20:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105731#M16616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brijesh, in this sample the value is hidden because in presentation tab the option to 'supress zero values' is checked, so the 0% is deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unchecking the bos will show the 0% (worst percentage) and also all the null values, to shoe only the 0% you can leave the option checked and use this expression to avoid the interpretation of zero as a number:&lt;/P&gt;&lt;P&gt;if(Rank(num(Year)+num(Month)/12+10000000*Aggr(-sum(GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum(LENS_COUNT_COMP),Region,MonthYear),4)=1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;text(Num(&lt;/STRONG&gt;sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP)&lt;STRONG&gt;, '0%'))&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 06:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105731#M16616</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-08-06T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105732#M16617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this. I appreciate your solution, I tried implementing your solution in my original file and I think you solved my 99% problem. Miinimum % is showing as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am wondering even though we are having nullification of Month and Year in Worst month % expression, by selecting any month or year, it's filtering the object as well and minimum % is moving to selected month or year. For example: If for a XYZ region, Apr2018 is having minimum %. Now if I select Jun, then % will move to June2018 (which is not having a minimum %) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brijesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105732#M16617</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2018-08-06T08:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105733#M16618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And adding the other sets?&lt;/P&gt;&lt;P&gt;if(Rank(num(&lt;STRONG&gt;Only({$&amp;lt;Month=,Year=&amp;gt;}Year)&lt;/STRONG&gt;)+num(&lt;STRONG&gt;Only({$&amp;lt;Month=,Year=&amp;gt;}Month)&lt;/STRONG&gt;)/12+10000000*Aggr(-sum(&lt;STRONG&gt;{$&amp;lt;Month=,Year=&amp;gt;}&lt;/STRONG&gt;GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;}LENS_COUNT_COMP),Region,MonthYear),4)=1,&lt;/P&gt;&lt;P&gt;text(Num(sum({$&amp;lt;Month=,Year=&amp;gt;} GREAT_120+D6+D7+D8+D9+[&amp;gt;D10])/sum({$&amp;lt;Month=,Year=&amp;gt;} LENS_COUNT_COMP), '0%')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105733#M16618</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-08-06T08:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105734#M16619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, Thank you for this. Unfortunately still same issue (by selecting any month, minimum % is moving to selected month. Is it due to Aggr on MonthYear? Regards, Brijesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105734#M16619</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2018-08-06T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105735#M16620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, seems related to aggr(), why it's needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached sample without aggr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 08:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105735#M16620</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-08-06T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show Worst Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105736#M16621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Thank you very much; you are the star!! Your solution is absolute solution what I was looking for. Much appreciated. Have a nice day! Regards, Brijesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 10:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Worst-Sales/m-p/105736#M16621</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2018-08-06T10:26:07Z</dc:date>
    </item>
  </channel>
</rss>

