<?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: How to condition a barchart on several variables? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759389#M58703</link>
    <description>&lt;P&gt;Thank you. It worked but it destroys me another important feature, the manual coloring of each categorical dimension.&lt;/P&gt;&lt;P&gt;I define for each categorical field a master dimension with defined colors, like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DSDD_2-1604677592104.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43723iCE7C1FEC40DAC8B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DSDD_2-1604677592104.png" alt="DSDD_2-1604677592104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But now the qlik default colors are represented, even if i click "user defined" in the color-section of the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DSDD_3-1604677668954.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43724i9783129FF9EEEB2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DSDD_3-1604677668954.png" alt="DSDD_3-1604677668954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Having v_parameter as a master-dimension, i saw that there is the option to manually define colors for all fields. It gives me the desired effect, but would prefer another solution.&lt;/P&gt;&lt;P&gt;Is there any chance to get my manual defined colors, maybe with another selection in the menu or a formula to state my own hex-colors?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 16:08:56 GMT</pubDate>
    <dc:creator>DSDD</dc:creator>
    <dc:date>2020-11-06T16:08:56Z</dc:date>
    <item>
      <title>How to condition a barchart on several variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759308#M58689</link>
      <description>&lt;P&gt;Dear Community&lt;/P&gt;&lt;P&gt;i am creating one (!) barchart sensitive to three variables (buttons on the left side).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DSDD_0-1604663208380.png" style="width: 712px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43701i8055F9282A6EBCF8/image-dimensions/712x297?v=v2" width="712" height="297" role="button" title="DSDD_0-1604663208380.png" alt="DSDD_0-1604663208380.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Variable v_time allows to choose between time aggregation daily,weekly,monthly (Dimension of barchart) - works fine. Here i use the function =if('$(v_time)' = 'daily',day_dent,if('$(v_time)' = 'weekly',week_dent,month_dent)) to select the dimension.&lt;/P&gt;&lt;P&gt;Variable v_parameter should allow to select the grouping of the bars (here: field kat_pos), field kat_qty, kat_val and kat_tdif define three other choosable categories. - &lt;STRONG&gt;not working&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Variable v_abs allows to choose between absolut and percentual values on the y-axis (measure field) -&lt;STRONG&gt; not working&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question: How does the functions look like to get this working:&lt;/P&gt;&lt;P&gt;To choose the grouping i tried:&lt;/P&gt;&lt;P&gt;=if('$(v_parameter)' = 'pos',kat_pos,&lt;BR /&gt;if('$(v_parameter)' = 'qty',&lt;BR /&gt;if('$(v_parameter)' = 'tdif',kat_tdif,&lt;BR /&gt;if('$(v_parameter)' = 'val',kat_val)))) with COUNT(ORDER_NO) as measure.&lt;/P&gt;&lt;P&gt;To change between absolute and relative values i tried:&lt;/P&gt;&lt;P&gt;=if('$(v_abs)' = 'abs',count(ORDER_NO),&lt;BR /&gt;if('$(v_abs)' = 'rel',count(ORDER_NO)/count(TOTAL &amp;lt; [no idea. I tried several] &amp;gt; ORDER_NO)*100))&lt;/P&gt;&lt;P&gt;The buttons all fail, except for time-dimension with kat_pos, absolute values (the first of all combinations).&lt;/P&gt;&lt;P&gt;I have no idea what to change and where to change.&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759308#M58689</guid>
      <dc:creator>DSDD</dc:creator>
      <dc:date>2024-11-16T17:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to condition a barchart on several variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759348#M58695</link>
      <description>&lt;P&gt;For Values in your variable input control for v_parameter, choose Dynamic Values and use the following string in quotes:&lt;/P&gt;&lt;P&gt;'kat_pos~pos|kat_qty~qty|kat_val~value|kat_tdif~tdif'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "|" separates the choices and the "~" allows you to change what is display vs what is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in your dimension for bars, simply use $(v_parameter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759348#M58695</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2020-11-06T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to condition a barchart on several variables?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759389#M58703</link>
      <description>&lt;P&gt;Thank you. It worked but it destroys me another important feature, the manual coloring of each categorical dimension.&lt;/P&gt;&lt;P&gt;I define for each categorical field a master dimension with defined colors, like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DSDD_2-1604677592104.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43723iCE7C1FEC40DAC8B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DSDD_2-1604677592104.png" alt="DSDD_2-1604677592104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But now the qlik default colors are represented, even if i click "user defined" in the color-section of the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DSDD_3-1604677668954.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43724i9783129FF9EEEB2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DSDD_3-1604677668954.png" alt="DSDD_3-1604677668954.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Having v_parameter as a master-dimension, i saw that there is the option to manually define colors for all fields. It gives me the desired effect, but would prefer another solution.&lt;/P&gt;&lt;P&gt;Is there any chance to get my manual defined colors, maybe with another selection in the menu or a formula to state my own hex-colors?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-condition-a-barchart-on-several-variables/m-p/1759389#M58703</guid>
      <dc:creator>DSDD</dc:creator>
      <dc:date>2020-11-06T16:08:56Z</dc:date>
    </item>
  </channel>
</rss>

