<?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: Colored bars in a table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028786#M84764</link>
    <description>&lt;P&gt;Hi, KGalloway,&lt;/P&gt;
&lt;P&gt;The coalesce function works perfectly for the non-null values. I inserted your code in the [Expression] field. I guess that i also have to insert something in the [Expression text color] field to make the colors visible, right?&lt;/P&gt;
&lt;P&gt;If so, what code did you insert here to make the difference between the red and the green color?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 12:29:46 GMT</pubDate>
    <dc:creator>sgrobben</dc:creator>
    <dc:date>2023-01-23T12:29:46Z</dc:date>
    <item>
      <title>Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2027702#M84689</link>
      <description>&lt;P&gt;I have a table with admission periods (see attachment).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The [Admission period current admission (days)] is the following dimension:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ProcessingTime&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The [Admission period last admission (days)] is the following dimension:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ProcessingTimeLastAdmission&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The [Total admission period (days)] is calculated as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max(ProcessingTime)
+
If(IsNull(Max(ProcessingTimeLastAdmission)),0,Max(ProcessingTimeLastAdmission))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bar graph in the table is the [Total admission period] in days and is created as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Repeat('▇'
,
Max(ProcessingTime)
+
If(IsNull(Max(ProcessingTimeLastAdmission)),0,Max(ProcessingTimeLastAdmission))
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far, so great! Now i want to give the cubes who are from the last admission period a different color. For example, if the admission period from the current admission is &lt;STRONG&gt;4&lt;/STRONG&gt; days and the admission period from the last admission is &lt;STRONG&gt;1&lt;/STRONG&gt; day, i want &lt;STRONG&gt;1 red cube&lt;/STRONG&gt; and &lt;STRONG&gt;4 green cubes&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;How do i do this?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2027702#M84689</guid>
      <dc:creator>sgrobben</dc:creator>
      <dc:date>2023-01-19T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028445#M84735</link>
      <description>&lt;P&gt;Would something like the following work?&lt;/P&gt;
&lt;P&gt;=repeat('🟩', max(B)) &amp;amp; repeat('🟥', coalesce(max(C), 0))&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KGalloway_0-1674248745402.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98540i0D302932D0BBA875/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KGalloway_0-1674248745402.png" alt="KGalloway_0-1674248745402.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, I think the coalesce function will work better for your if statement. It returns the first non-null argument.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028445#M84735</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-20T21:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028786#M84764</link>
      <description>&lt;P&gt;Hi, KGalloway,&lt;/P&gt;
&lt;P&gt;The coalesce function works perfectly for the non-null values. I inserted your code in the [Expression] field. I guess that i also have to insert something in the [Expression text color] field to make the colors visible, right?&lt;/P&gt;
&lt;P&gt;If so, what code did you insert here to make the difference between the red and the green color?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 12:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028786#M84764</guid>
      <dc:creator>sgrobben</dc:creator>
      <dc:date>2023-01-23T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028849#M84768</link>
      <description>&lt;P&gt;I used&amp;nbsp;&lt;STRONG&gt;=repeat('🟩', max(B)) &amp;amp; repeat('🟥', coalesce(max(C), 0))&amp;nbsp;&lt;/STRONG&gt;in the [Expression] field. I did copy the green and red square characters from unicode sources I found through google. I didn't have to insert anything in the [Expression text color] field.&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="KGalloway_0-1674482843795.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98623i58DE36EFD9920A4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KGalloway_0-1674482843795.png" alt="KGalloway_0-1674482843795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028849#M84768</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-23T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028873#M84770</link>
      <description>&lt;P&gt;emoji's are your friends &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://emojipedia.org/search/?q=square" target="_blank"&gt;https://emojipedia.org/search/?q=square&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028873#M84770</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2023-01-23T14:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Colored bars in a table</title>
      <link>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028881#M84771</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Colored-bars-in-a-table/m-p/2028881#M84771</guid>
      <dc:creator>sgrobben</dc:creator>
      <dc:date>2023-01-23T14:53:19Z</dc:date>
    </item>
  </channel>
</rss>

