<?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 Heatmap divide values by left most column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862153#M71133</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I made a heatmap of user retention per day. In the heatmap below, the values on each of the tile is the number of users that were active X days (dimension on top) following the creation of their account (dimension on the left).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of the actual number, I would like a percentage. The proportion of the users that were created on a specific day, that are still active X days following that day.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="confusedpandas_1-1637594605419.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67189i0CF9DF1547964397/image-size/medium?v=v2&amp;amp;px=400" role="button" title="confusedpandas_1-1637594605419.png" alt="confusedpandas_1-1637594605419.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It seems simple but I've tried couple of things and it just does not work.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 15:26:35 GMT</pubDate>
    <dc:creator>confused-pandas</dc:creator>
    <dc:date>2021-11-22T15:26:35Z</dc:date>
    <item>
      <title>Heatmap divide values by left most column</title>
      <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862153#M71133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I made a heatmap of user retention per day. In the heatmap below, the values on each of the tile is the number of users that were active X days (dimension on top) following the creation of their account (dimension on the left).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of the actual number, I would like a percentage. The proportion of the users that were created on a specific day, that are still active X days following that day.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="confusedpandas_1-1637594605419.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/67189i0CF9DF1547964397/image-size/medium?v=v2&amp;amp;px=400" role="button" title="confusedpandas_1-1637594605419.png" alt="confusedpandas_1-1637594605419.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It seems simple but I've tried couple of things and it just does not work.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862153#M71133</guid>
      <dc:creator>confused-pandas</dc:creator>
      <dc:date>2021-11-22T15:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap divide values by left most column</title>
      <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862156#M71134</link>
      <description>&lt;P&gt;Hard to say without seeing the data structure and the formulas used, but if the formula used is something like count(Users), then the percentage should be count(Users) / Count(total &amp;lt;Date&amp;gt; Users)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862156#M71134</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-22T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap divide values by left most column</title>
      <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862159#M71135</link>
      <description>&lt;P&gt;Thanks for your answer. I've already tried and unfortunately it divides by the total number of users. What I want instead is that, if we look at&amp;nbsp; the screenshot above, 10 users were active 7 days after the 23/10/2021 (date of account creation). Since 200 users were created on that day (left most cell), percentage should be 10/200 = 5% on that cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formulas are:&lt;/P&gt;
&lt;P&gt;Dimension A:&amp;nbsp;userCreationDate&lt;BR /&gt;Dimension B: nbDaysSinceCreation&lt;/P&gt;
&lt;P&gt;Measure:&amp;nbsp;count({&amp;lt;userCreationDate= {"$(='&amp;gt;='&amp;amp;Date(Today()-30))"}&amp;gt;} DISTINCT userId)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862159#M71135</guid>
      <dc:creator>confused-pandas</dc:creator>
      <dc:date>2021-11-22T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap divide values by left most column</title>
      <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862173#M71136</link>
      <description>&lt;P&gt;That doesn't really change the solution, though, if I understand the data structure correctly (each user ID will repeat twice - once at 0 days and once at e.g. 7 days?)&lt;/P&gt;
&lt;P&gt;count({&amp;lt;userCreationDate= {"$(='&amp;gt;='&amp;amp;Date(Today()-30))"}&amp;gt;} DISTINCT userId)&lt;/P&gt;
&lt;P&gt;/&lt;/P&gt;
&lt;P&gt;count(total &amp;lt;userCreationDate&amp;gt; {&amp;lt;userCreationDate= {"$(='&amp;gt;='&amp;amp;Date(Today()-30))"}&amp;gt;} DISTINCT userId)&lt;/P&gt;
&lt;P&gt;should be the formula, I believe. Without access to the data and since this kind of an unusual data structure, I can't actually test it.&lt;/P&gt;
&lt;P&gt;For the second part of the formula, you might also be able to use:&lt;/P&gt;
&lt;P&gt;count( {&amp;lt;nbDaysSinceCreation = {0}, userCreationDate= {"$(='&amp;gt;='&amp;amp;Date(Today()-30))"}&amp;gt;} DISTINCT userId)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1862173#M71136</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-11-22T15:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmap divide values by left most column</title>
      <link>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1863437#M71248</link>
      <description>&lt;P&gt;This worked! Thank you Or, you are amazing! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 09:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Heatmap-divide-values-by-left-most-column/m-p/1863437#M71248</guid>
      <dc:creator>confused-pandas</dc:creator>
      <dc:date>2021-11-25T09:10:18Z</dc:date>
    </item>
  </channel>
</rss>

