<?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 Toggle in graphs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239629#M90235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;='sum(total &amp;lt;Date, Product&amp;gt; [Value])'&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as variable value. Please pay attention to single quotes around.&lt;/P&gt;&lt;P&gt;and put&lt;/P&gt;&lt;P&gt;=$(vExp)&lt;/P&gt;&lt;P&gt;in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2010 21:13:37 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2010-02-16T21:13:37Z</dc:date>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239622#M90228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to QlikView and am trying to do the following:&lt;/P&gt;&lt;P&gt;I have a calendar setup with days, weeks, months and prodcuts in my databse.&lt;/P&gt;&lt;P&gt;I am able to show a line graph for all prodcuts (Total of all) or a graph listing each individual prodcuct (Multiple lines) I would like to be able to toggle the graph between showing the graph as a single line or as multiple lines depending on a user selction. What si the best practice to do this?&lt;/P&gt;&lt;P&gt;I also wantto be able to to adjust the formula base don another selection. If Daily is slected then SUM otherwise AVG. Can someone please tell me if this is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 19:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239622#M90228</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T19:04:03Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239623#M90229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THis can be achieved in many ways. One of the way you could take is. you can define a variable vExpression:&lt;/P&gt;&lt;P&gt;if(Type='Daily', 'sum(field)', 'avg(field)')&lt;/P&gt;&lt;P&gt;And then use this $(vExpression) as the expression of the chart.&lt;/P&gt;&lt;P&gt;To toggle, you could to the same trick with dimensions, or even can have 2 charts on same position and enable/disable them with a condition checking what is selected.&lt;/P&gt;&lt;P&gt;Still a problem, please post a sample qvw and someone here will provide a solution for your reference.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 19:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239623#M90229</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-16T19:20:13Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239624#M90230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Sorry about this, but this new to me. I have managed to get the variable to work, but my time series all has the same value. (Sum of all time).&lt;/P&gt;&lt;P&gt;The expression is Sum([Amount]). How do I chaneg this so that it sums an amoutn for each Day.&lt;/P&gt;&lt;P&gt;Are you abel to answer the second aprt of my question above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 19:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239624#M90230</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239625#M90231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already answered your sencond question.&lt;/P&gt;&lt;P&gt;Define a variable vExpression (under Settings -&amp;gt; Variable Overview menu) and put the value&lt;/P&gt;&lt;P&gt;=if(Type='Daily', 'sum([Amount])', 'avg([Amount])')&lt;/P&gt;&lt;P&gt;Then in the expression section of your chart use =$(vExpression) as expression. I am assuming the field name is "Type" which contains Daily or other values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 20:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239625#M90231</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-16T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239626#M90232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks will give it another try.&lt;/P&gt;&lt;P&gt;Regarding the variable. The formula changes correctly, but this add all time periods together. (i.e. each dat point has the same value but different days. How do I get this to sum for each day?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 20:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239626#M90232</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T20:14:21Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239627#M90233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your dimension? Do you have TOTAL in your sum in expression?&lt;/P&gt;&lt;P&gt;I am not able to upload documents here for some reason. THis new Forum is giving me problems.&lt;/P&gt;&lt;P&gt;I can email it to you, if you provide one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 20:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239627#M90233</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-16T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239628#M90234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help on this. I have created a simple example.&lt;/P&gt;&lt;P&gt;[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2553.Test.zip:550:0]&lt;/P&gt;&lt;P&gt;For variable vExp I get a straight line. It is summing the entire population and not by date.&lt;/P&gt;&lt;P&gt;I would alos like to see if it is possibel to toggle the diemnsion. Setting 1- Date, Setting 2would be Date and Product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 21:02:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239628#M90234</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239629#M90235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;='sum(total &amp;lt;Date, Product&amp;gt; [Value])'&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;as variable value. Please pay attention to single quotes around.&lt;/P&gt;&lt;P&gt;and put&lt;/P&gt;&lt;P&gt;=$(vExp)&lt;/P&gt;&lt;P&gt;in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 21:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239629#M90235</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-16T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239630#M90236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that worked. Now to play around and see if I can get it to work for the dimension.&lt;/P&gt;&lt;P&gt;Thanks for your help. It is really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 22:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239630#M90236</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T22:01:03Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239631#M90237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question. How would I do this for the Dimension.&lt;/P&gt;&lt;P&gt;I want this to be for Date and Product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 22:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239631#M90237</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T22:08:13Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239632#M90238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have nearly got it to work.&lt;/P&gt;&lt;P&gt;I have added the ADte dimension and then created a variable with the code below.&lt;/P&gt;&lt;P&gt;=&lt;B&gt;if&lt;/B&gt;(&lt;B&gt;Type&lt;/B&gt;='Daily','PRODUCT_TYPE_NAME')&lt;/P&gt;&lt;P&gt;Ii works when Type = DAily. When Not Daily, I do not wnat the dimension to appear in teh chart. At the moment this brings back all the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 22:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239632#M90238</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239633#M90239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(Type='Daily','PRODUCT_TYPE_NAME', 'Date')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 23:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239633#M90239</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-16T23:09:56Z</dc:date>
    </item>
    <item>
      <title>Toggle in graphs</title>
      <link>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239634#M90240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. The date dimension has already been added. If I use your code Date appears twice in the dimension. I can remove it and would then something like&lt;/P&gt;&lt;P&gt;=if(Type='Daily','PRODUCT_TYPE_NAME' AND 'Date', 'Date')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 23:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Toggle-in-graphs/m-p/239634#M90240</guid>
      <dc:creator>alan_grn</dc:creator>
      <dc:date>2010-02-16T23:17:09Z</dc:date>
    </item>
  </channel>
</rss>

