<?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 Create a Bellcurve in a yearmonth Table with a inputvariable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502018#M103403</link>
    <description>&lt;P&gt;Is it possible to distribute a given value like&amp;nbsp; 50.000, across a range of yearmonths (sorted in ascending order), following a bell curve distribution, directly in the frontend in a table?&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;year_Calendarmonth&lt;/P&gt;
&lt;P&gt;202401&lt;/P&gt;
&lt;P&gt;202402&lt;/P&gt;
&lt;P&gt;202403&lt;/P&gt;
&lt;P&gt;202404&lt;/P&gt;
&lt;P&gt;202405&lt;/P&gt;
&lt;P&gt;202406&lt;/P&gt;
&lt;P&gt;]&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;vTestinput = 50000;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 12:46:07 GMT</pubDate>
    <dc:creator>Noctis</dc:creator>
    <dc:date>2025-01-20T12:46:07Z</dc:date>
    <item>
      <title>Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502018#M103403</link>
      <description>&lt;P&gt;Is it possible to distribute a given value like&amp;nbsp; 50.000, across a range of yearmonths (sorted in ascending order), following a bell curve distribution, directly in the frontend in a table?&lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;load * Inline&lt;BR /&gt;[&lt;BR /&gt;year_Calendarmonth&lt;/P&gt;
&lt;P&gt;202401&lt;/P&gt;
&lt;P&gt;202402&lt;/P&gt;
&lt;P&gt;202403&lt;/P&gt;
&lt;P&gt;202404&lt;/P&gt;
&lt;P&gt;202405&lt;/P&gt;
&lt;P&gt;202406&lt;/P&gt;
&lt;P&gt;]&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;vTestinput = 50000;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 12:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502018#M103403</guid>
      <dc:creator>Noctis</dc:creator>
      <dc:date>2025-01-20T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502030#M103404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127566"&gt;@Noctis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can Create a Line Chart with Dimension "&lt;SPAN&gt;year_Calendarmonth"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Expression would be this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only(NormDist(&lt;SPAN&gt;year_Calendarmonth&lt;/SPAN&gt;, Avg(Total &lt;SPAN&gt;year_Calendarmonth&lt;/SPAN&gt;), Stdev(Total &lt;SPAN&gt;year_Calendarmonth&lt;/SPAN&gt;), 0)) * 0.1 * Count(Total &lt;SPAN&gt;year_Calendarmonth&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;And then using the input variable would be this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only(NormDist(year_Calendarmonth, Avg(Total year_Calendarmonth), Stdev(Total year_Calendarmonth), 0)) * 0.1 * $(vTestinput)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 13:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502030#M103404</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502038#M103407</link>
      <description>&lt;P&gt;Thanks Jandre, but I need this as a Table. do you have a solution for that too?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502038#M103407</guid>
      <dc:creator>Noctis</dc:creator>
      <dc:date>2025-01-20T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502050#M103410</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127566"&gt;@Noctis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not at my pc now, but have you tried building the LineChart? Maybe just try and convert to table?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 15:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502050#M103410</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502066#M103413</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Noctis_0-1737389166951.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176654iE35B6BADDE199ADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Noctis_0-1737389166951.png" alt="Noctis_0-1737389166951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;it goes in the right direction but it does not fully distribute the whole 50000&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 16:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502066#M103413</guid>
      <dc:creator>Noctis</dc:creator>
      <dc:date>2025-01-20T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502078#M103414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127566"&gt;@Noctis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just change the 50000 to the variable that you are using.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Only(NormDist(year_Calendarmonth, Avg(Total year_Calendarmonth), Stdev(Total year_Calendarmonth), 0)) * 0.1 * Count(Total year_Calendarmonth)
* (50000 / Sum(Total Aggr(Only(NormDist(year_Calendarmonth, Avg(Total year_Calendarmonth), Stdev(Total year_Calendarmonth), 0)) * 0.1 * Count(Total year_Calendarmonth), year_Calendarmonth)))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502078#M103414</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T18:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502082#M103415</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Noctis_0-1737397563403.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176657i6D3ABF67CCE89187/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Noctis_0-1737397563403.png" alt="Noctis_0-1737397563403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I added 202352 and Now its not a Bellcurve anymore. Do you have another solution?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502082#M103415</guid>
      <dc:creator>Noctis</dc:creator>
      <dc:date>2025-01-20T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502086#M103416</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Noctis_0-1737398284175.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176659iB1D1F23A87DFB93E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Noctis_0-1737398284175.png" alt="Noctis_0-1737398284175.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;DIV&gt;
&lt;DIV class="pt-0"&gt;
&lt;DIV class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;DIV class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;
&lt;DIV class="flex-col gap-1 md:gap-3"&gt;
&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;
&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5" dir="auto" data-message-author-role="assistant" data-message-id="e4bece7a-faa3-44f2-b21d-d8038163fa15" data-message-model-slug="gpt-4o-mini"&gt;
&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Additionally I am looking for a total distribution of 1. Only in this case would it represent a perfect bell curve, correct?&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502086#M103416</guid>
      <dc:creator>Noctis</dc:creator>
      <dc:date>2025-01-20T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502087#M103417</link>
      <description>&lt;P&gt;Yes and no. There is a whole part of math behind a bell curve. Currently we are using the values in the year_CalendarMonth field. This is used in the math, Hence the reason when you added the other value this does not represent a bell curve anymore.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Distribution of 1 I would just normalize the data using the variable = 1 and not 50000. I am looking into this to add "random" values and getting a&lt;EM&gt; perfect &lt;/EM&gt;result.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502087#M103417</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bellcurve in a yearmonth Table with a inputvariable</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502091#M103418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127566"&gt;@Noctis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to assign a &lt;FONT color="#008000"&gt;value&lt;/FONT&gt; (In terms of the number size) to the value. This will ensure that the &lt;FONT color="#008000"&gt;value&amp;nbsp;&lt;FONT color="#000000"&gt;always changes on selection and is not influenced by something like 200001 vs 208811. Below is my inline load&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JandreKillianRIC_1-1737399914855.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176661i73EE6674799075C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JandreKillianRIC_1-1737399914855.png" alt="JandreKillianRIC_1-1737399914855.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;FONT color="#000000"&gt;Expression&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Only(NormDist(Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID), Avg(Total Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID)), 
Stdev(Total Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID)), 0)) 
* 0.1 
* Count(Total year_CalendarmonthID) 
* (50000 / Sum(Total Aggr(Only(NormDist(Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID), Avg(Total Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID)), 
Stdev(Total Aggr(Rank(year_CalendarmonthID), year_CalendarmonthID)), 0)) * 0.1 * 
Count(Total year_CalendarmonthID), year_CalendarmonthID)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My result&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JandreKillianRIC_2-1737399953552.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/176662i20858D6510E4ABE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JandreKillianRIC_2-1737399953552.png" alt="JandreKillianRIC_2-1737399953552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards - Jandre&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 19:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Bellcurve-in-a-yearmonth-Table-with-a-inputvariable/m-p/2502091#M103418</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-01-20T19:06:02Z</dc:date>
    </item>
  </channel>
</rss>

