<?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: Hard coding values based on the calculation in stacked bar graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824292#M67659</link>
    <description>&lt;P&gt;You could try to replace&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;num(0.001,'&amp;lt;0.0%')&amp;nbsp;&lt;/STRONG&gt;with &lt;STRONG&gt;Dual('&amp;lt;0.0%',0.001)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jul 2021 13:35:44 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-07-24T13:35:44Z</dc:date>
    <item>
      <title>Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824222#M67645</link>
      <description>&lt;P&gt;Hello Qlik fam!&lt;/P&gt;&lt;P&gt;I am trying to hard code the values in measure for a bar graph if the percentages are too low.&lt;/P&gt;&lt;P&gt;My expression:&lt;/P&gt;&lt;P&gt;if(Valuelist('Ever-Enrolled','Audit')='Ever-Enrolled' and&lt;BR /&gt;(count({&amp;lt;Type={'Current'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Type={'Current'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&amp;lt;0.001,&lt;STRONG&gt;num(0.001,'&amp;lt;0.0%')&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;if(Valuelist('Ever-Enrolled','Audit')='Ever-Enrolled' and&lt;BR /&gt;(count({&amp;lt;Type={'Current'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Type={'Current'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&amp;gt;=0.001,&lt;/P&gt;&lt;P&gt;(count({&amp;lt;Type={'Current'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Type={'Current'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI)),&lt;/P&gt;&lt;P&gt;if(Valuelist('Ever-Enrolled','Audit')='Audit' and&lt;BR /&gt;(count({&amp;lt;Category={'Historic'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Category={'Historic'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&amp;lt;0.001,&lt;STRONG&gt;num(0.001,'&amp;lt;0.0%')&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;if(Valuelist('Ever-Enrolled','Audit')='Audit' and&lt;BR /&gt;(count({&amp;lt;Category={'Historic'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Category={'Historic'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&amp;gt;=0.001,&lt;/P&gt;&lt;P&gt;(count({&amp;lt;Category={'Historic'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;BR /&gt;count(total {&amp;lt;Category={'Historic'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The highlighted part above from my expression is where I am trying to use multiple options but nothing really worked out. The above expression is giving '0.10%' but my goal is to get '&amp;lt;0.1%'. I am able to implement the logic without any problem in grouped bar chart but the stacked bar chart is not giving me the expected result.&lt;/P&gt;&lt;P&gt;Any help regarding this would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 19:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824222#M67645</guid>
      <dc:creator>osse_aam</dc:creator>
      <dc:date>2021-07-23T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824278#M67654</link>
      <description>&lt;P&gt;Hi, I tried and it shows &amp;lt;0.1% to me. I only achiveved to show 0.10% when I set the number format as 12,34% instead of the default 'Automatic', so maybe at some point there is something fixng the format for 2 decimals and percentage instead of use the expression format.&lt;/P&gt;&lt;P&gt;I also tried with stacked chart&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_0-1627111817856.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59087iCE62FC1A3DE073EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_0-1627111817856.png" alt="rubenmarin_0-1627111817856.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 07:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824278#M67654</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-07-24T07:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824292#M67659</link>
      <description>&lt;P&gt;You could try to replace&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;num(0.001,'&amp;lt;0.0%')&amp;nbsp;&lt;/STRONG&gt;with &lt;STRONG&gt;Dual('&amp;lt;0.0%',0.001)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 13:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824292#M67659</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-07-24T13:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824299#M67662</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp; - This is what I see when I use 'Auto' format and select the specific category. It is showing as '1m' and I only see '&amp;lt;0.10%' when I export the data to excel but not when I hover.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="osse_aam_0-1627137200751.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59091i597FEB6FD7BE7AB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="osse_aam_0-1627137200751.png" alt="osse_aam_0-1627137200751.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to achieve the following visualization format&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="osse_aam_1-1627137431274.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59092i9892B76ACBF89D20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="osse_aam_1-1627137431274.png" alt="osse_aam_1-1627137431274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 14:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824299#M67662</guid>
      <dc:creator>osse_aam</dc:creator>
      <dc:date>2021-07-24T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824300#M67663</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp; - Tried Dual('&amp;lt;0.1%',0.001) and it's giving me '1m' too like the other expression and I only see '&amp;lt;0.1%' when I convert to 'view data' mode or export the chart to excel. Not sure why I don't see the same value when I hover.&lt;/P&gt;&lt;P&gt;Tried playing with all 'Number formatting' options available but no luck yet.&amp;nbsp; 'Custom' (Number formatting) and used the pattern '&amp;lt;0.01%' but this is changing all the other segments to '&amp;lt;xx.xx%' -which is not expected.&lt;/P&gt;&lt;P&gt;Would have been nicer if they had expression capability for 'Format Pattern' too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 14:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824300#M67663</guid>
      <dc:creator>osse_aam</dc:creator>
      <dc:date>2021-07-24T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824348#M67678</link>
      <description>&lt;P&gt;I tried in an horizontal stacked bar and it shows ok to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_0-1627198092643.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59106i50707969B737DB6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_0-1627198092643.png" alt="rubenmarin_0-1627198092643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you upload a dummy qvf that replicates the issue so we can check and try there?&lt;/P&gt;&lt;P&gt;Or maybe you just need to add the format the the other expressions:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Num(&lt;/STRONG&gt;(count({&amp;lt;Category={'Historic'},[School Year]={'2020-2021'}&amp;gt;}distinct USI)/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;count(total {&amp;lt;Category={'Historic'},[Race/Ethnicity]=,[School Year]={'2020-2021'}&amp;gt;}distinct USI))&lt;STRONG&gt;,'0.00%')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rubenmarin_2-1627198513944.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59108iE3CEF91385DB2C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rubenmarin_2-1627198513944.png" alt="rubenmarin_2-1627198513944.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 07:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824348#M67678</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-07-25T07:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824555#M67707</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;- Thank you so much for your efforts!&lt;/P&gt;&lt;P&gt;Here is the app replicating the part of the logic with the dummy data.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 15:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824555#M67707</guid>
      <dc:creator>osse_aam</dc:creator>
      <dc:date>2021-07-26T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hard coding values based on the calculation in stacked bar graph</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824588#M67713</link>
      <description>&lt;P&gt;Hi, I tested and in the same expression only can have a format, if all number format are&amp;nbsp;'0.0%' or '&amp;lt;0.0%' it works, but with a mix it shows the default format 0.0. This doesn't works on visual charts but in tables a mix of formats can work (I added the same char tconverted to table to check how it works).&lt;/P&gt;&lt;P&gt;Another things to take care:&lt;/P&gt;&lt;P&gt;Note that when converting to percentage 1=100%, so 0.1=10%, and 0.1%=0.001, so to show '&amp;lt;0.1%' you need anumber like 0.001 and compared to number like 0.3 or 0.5 it will be too little to show in a bar.&lt;/P&gt;&lt;P&gt;In example, category C, it has a 4 over 10, that's a 40% not a 0.4%.&lt;/P&gt;&lt;P&gt;The bar wil always have a length of the number part, and to show '&amp;lt;10%' you'll need something like: Num(0.1,'&amp;lt;0.0%'),&amp;nbsp; and this will set the lenght of the bar as it was 10%, so making an higher bar than it really is.&lt;/P&gt;&lt;P&gt;Using values like '&amp;lt;0.1%' (or &amp;lt;10%) can be done when creating buckets, like counting how many categories or subcategories have less than 0.1%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 18:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-coding-values-based-on-the-calculation-in-stacked-bar-graph/m-p/1824588#M67713</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-07-26T18:31:19Z</dc:date>
    </item>
  </channel>
</rss>

