<?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 Chart level scripting - please share documentation and examples in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519379#M106242</link>
    <description>&lt;P&gt;In Qlik Sense there is a lesser known feature named "Chart level scripting" or "Chart scripts", but there is not that much documentation available on that feature/topic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1748460108413.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180879i10910F6525D44E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_0-1748460108413.png" alt="Vegar_0-1748460108413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the&amp;nbsp;&lt;A title="Chart level scripting | Qlik Sense on Windows Help" href="https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/modifier-statements-keywords.htm" target="_self"&gt;Chart level scripting | Qlik Sense on Windows Help&lt;/A&gt;&amp;nbsp;and the&amp;nbsp;Youtube video,&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=lwSTEDPHim8" target="_self"&gt;SaaS in 60 - Chart-level Scripting.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But but besides these resources there is not much information to find.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested to know what chart level scripting can (can not do), and how to use it? What's the syntax and how is it used? If you are interested in this as well, please consider supporting my ideation to improve the help pages on this topic: &lt;A title="Add a section explaining the syntax for Chart Level Script in the Qlik Help pages. #485710" href="https://ideation.qlik.com/app/#/case/485710" target="_self"&gt;Ideation #485710&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you,the community, have anything else to share on this topic? Do you know about any good sources? Or can you share something in a comments section..&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 19:22:08 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2025-05-28T19:22:08Z</dc:date>
    <item>
      <title>Chart level scripting - please share documentation and examples</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519379#M106242</link>
      <description>&lt;P&gt;In Qlik Sense there is a lesser known feature named "Chart level scripting" or "Chart scripts", but there is not that much documentation available on that feature/topic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vegar_0-1748460108413.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180879i10910F6525D44E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vegar_0-1748460108413.png" alt="Vegar_0-1748460108413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the&amp;nbsp;&lt;A title="Chart level scripting | Qlik Sense on Windows Help" href="https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/ChartLevelScripting/modifier-statements-keywords.htm" target="_self"&gt;Chart level scripting | Qlik Sense on Windows Help&lt;/A&gt;&amp;nbsp;and the&amp;nbsp;Youtube video,&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=lwSTEDPHim8" target="_self"&gt;SaaS in 60 - Chart-level Scripting.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But but besides these resources there is not much information to find.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am interested to know what chart level scripting can (can not do), and how to use it? What's the syntax and how is it used? If you are interested in this as well, please consider supporting my ideation to improve the help pages on this topic: &lt;A title="Add a section explaining the syntax for Chart Level Script in the Qlik Help pages. #485710" href="https://ideation.qlik.com/app/#/case/485710" target="_self"&gt;Ideation #485710&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you,the community, have anything else to share on this topic? Do you know about any good sources? Or can you share something in a comments section..&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 19:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519379#M106242</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-05-28T19:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chart level scripting - please share documentation and examples</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519470#M106263</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;&lt;BR /&gt;It's not really something I have much information about, so I voted for your idea as well. It would be interesting to know more about what it covers.&lt;/P&gt;&lt;P&gt;When I needed something for a specific problem a while ago, I came across this video that took me down this path of creating scripts at the graphical level and gave a basic explanation that clarified the subject further.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6JDJxS2RujQ" target="_blank"&gt;https://www.youtube.com/watch?v=6JDJxS2RujQ&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- Regards, Matheus&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519470#M106263</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2025-05-29T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chart level scripting - please share documentation and examples</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519471#M106264</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Design/Chart-Level-Scripting-Use-Cases-Samples-and-Examples/ba-p/1981049#comments" target="_blank"&gt;https://community.qlik.com/t5/Design/Chart-Level-Scripting-Use-Cases-Samples-and-Examples/ba-p/1981049#comments&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There were some samples and discussion here.&lt;/P&gt;&lt;P&gt;Honestly, it sounds better than it actually is. I wasn't able to get it to do anything very useful other than the below. Some of the things I thought it would do turned out to be incorrectly documented.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My own two scripts:&lt;/P&gt;&lt;P&gt;Row Numbers: // Requires a measure named Row with a starting value of 0 or null(), name can be adjusted&lt;BR /&gt;Let P = HCNoRows();&lt;BR /&gt;For J = 1 to P&lt;BR /&gt;Put Row(J) = J;&lt;BR /&gt;Next;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Running Total: // Requires a measure named RunningTotal with a starting value of 0 or null(), name can be adjusted. Measure name here is Sales, can also be referenced with a measure number.&lt;BR /&gt;Let P = HCNoRows(); // Get number of rows and set up required variable&lt;BR /&gt;Let vRunningTotal= 0;&lt;/P&gt;&lt;P&gt;For J = 1 to P&lt;BR /&gt;// In this example, we will add a running total by Dim1 and Dim2 but this can be adjusted to any number of dimensions with any names&lt;BR /&gt;Let vDim = HCValue(#hc1.dimension.1, J) &amp;amp; HCValue(#hc1.dimension.2, J); // Add the current row dimension values&lt;BR /&gt;Let vDimPrev = HCValue(#hc1.dimension.1, J-1) &amp;amp; HCValue(#hc1.dimension.2, J-1); // And the previous row values&lt;BR /&gt;// If the current row's dimensions match the previous row's, continue the running total&lt;BR /&gt;If vDim = vDimPrev then&lt;BR /&gt;Let vRunningTotal = vRunningTotal + HCValue(Sales,J);&lt;BR /&gt;else // If this row starts a new subtotal set, subtotal is just Sales&lt;BR /&gt;Let vRunningTotal = HCValue(Sales,J);&lt;BR /&gt;end if&lt;BR /&gt;// Put the calculated subtotal into the Subtotal column&lt;BR /&gt;Put RunningTotal(J) = vRunningTotal&lt;/P&gt;&lt;P&gt;Next;&lt;/P&gt;&lt;P&gt;// Reset the variable because that's what Qlik's samples do&lt;BR /&gt;Let vRunningTotal = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519471#M106264</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-05-29T12:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Chart level scripting - please share documentation and examples</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519510#M106278</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp; The post by you linked to by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp;is the best resource yet, it had a useful zip file with some files to look at.&lt;/P&gt;&lt;P&gt;The Youtube video that you, &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/149113"&gt;@MatheusC&lt;/a&gt;&amp;nbsp;, posted in combination with that post give me a better basic understanding of the chart Scripting.&lt;/P&gt;&lt;P&gt;Thanks for sharing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/12989"&gt;@Michael_Tarallo&lt;/a&gt;&amp;nbsp;or &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24514"&gt;@Patric_Nordstrom&lt;/a&gt;&amp;nbsp;do you have any other chart level script examples to share ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 17:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519510#M106278</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-05-29T17:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Chart level scripting - please share documentation and examples</title>
      <link>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519573#M106287</link>
      <description>&lt;P&gt;Yes, more informations would be nicely accepted.&lt;/P&gt;&lt;P&gt;Thank you all for the shared material&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Chart-level-scripting-please-share-documentation-and-examples/m-p/2519573#M106287</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2025-05-30T07:01:20Z</dc:date>
    </item>
  </channel>
</rss>

