<?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: Dynamic Expression changing formulas in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572080#M1105103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. This worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew I was making it too complicated on myself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another quick question, maybe you can help me? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I have is in UTC. Is there an easy way to also show another time zone? 7 Hours back? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not like to permanently do this but rather have a sort of filter because I want to see the data in more than one time zone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTC, CET, PDT, etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 18:53:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-27T18:53:27Z</dc:date>
    <item>
      <title>Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572076#M1105099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a formula below. The formula is accurate when my Dynamic Expression is on Day and Hour but not Minute.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;count([HTTP Status])/count(total&amp;lt;Hour&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would assume I need to use the formulas below based on my Dynamic Expression (rotates through day, hour, minute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count([HTTP Status])/count(total&amp;lt;Day&amp;gt;[HTTP Status])&lt;/P&gt;&lt;P&gt;count([HTTP Status])/count(total&amp;lt;Minute&amp;gt;[HTTP Status])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to make this happen? Change the formula based on the X parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Main Data]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; filename() as DateHour,&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1 as Remote,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(date#(mid(@4, 2, 21), 'DD/MMM/YYY:hh:mm:ss'), 'DD MMM YYYY hh:mm:ss') as DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'DD/MMM/YYYY hh:mm') as CreationDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'YYYY')) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'MMM')) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'DD')) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'hh')) as Hour,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'mm')) as Minute,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(@5, ']', '') as TimeZone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as From&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as User&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @4 as RequestTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;@5 as URI,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @6 as [HTTP Status]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572076#M1105099</guid>
      <dc:creator />
      <dc:date>2014-03-27T17:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572077#M1105100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Maybe I dont fully understand but can you please elaborate&amp;nbsp; what is '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Change the formula based on the X parameter&lt;/SPAN&gt;'.&lt;/P&gt;&lt;P&gt;And how did you determine Minutes is not working in the formula?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572077#M1105100</guid>
      <dc:creator />
      <dc:date>2014-03-27T18:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572078#M1105101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dimension (group) on my X axis. This is filtering between Day, Hour, Minute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from...&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'YYYY')) as Year,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'MMM')) as Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'DD')) as Day,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'hh')) as Hour,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Timestamp#(date(date#(mid(@4, 2, 17), 'DD/MMM/YYY:hh:mm'), 'mm')) as Minute,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is only one day so I can see the total count of the day, total count by hours, and total count by minutes from using the group expression (dynamically changing my X axis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to see the ratio of data in a stacked bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Day: 50% Green, 50% Blue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hour&lt;BR /&gt;Hour 1: 25% Green, 75% Blue&lt;/P&gt;&lt;P&gt;Hour 2: 75% Green, 25% Blue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minute... etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have my X Axis using Day and Hour, my formula below works. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;Hour&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I rotate to the Minute, it doesn't give me the values I need unless the formula is &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;Minute&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So now, I would like to know how I can still rotate through my X axis between my set fields while achieving the formula's I want. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This would be ideal: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Day: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;Day&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hour: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;Hour&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Minute: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;Minute&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572078#M1105101</guid>
      <dc:creator />
      <dc:date>2014-03-27T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572079#M1105102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Group name directly in the expression and depending on which field is selected in the group that value will dynamically be put in the epxression.&lt;/P&gt;&lt;P&gt;For example if your group name is &lt;STRONG&gt;My group &lt;/STRONG&gt;which has Day,Hours and Minute fields&lt;/P&gt;&lt;P&gt;then the expression will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count([HTTP Status])/count(total&amp;lt;[My group]&amp;gt;[HTTP Status])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572079#M1105102</guid>
      <dc:creator />
      <dc:date>2014-03-27T18:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572080#M1105103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. This worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew I was making it too complicated on myself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another quick question, maybe you can help me? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I have is in UTC. Is there an easy way to also show another time zone? 7 Hours back? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not like to permanently do this but rather have a sort of filter because I want to see the data in more than one time zone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTC, CET, PDT, etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572080#M1105103</guid>
      <dc:creator />
      <dc:date>2014-03-27T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expression changing formulas</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572081#M1105104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;/P&gt;&lt;H4 style="background-color: #c0c0c0;"&gt;ConvertToLocalTime()&lt;/H4&gt;&lt;P&gt;function will work for you. Please search for this in QV Help. It has very good explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; ConvertToLoaclTime(Field,'Paris')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ConvertToLoaclTime(Field, ’GMT-05:00’)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 19:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expression-changing-formulas/m-p/572081#M1105104</guid>
      <dc:creator />
      <dc:date>2014-03-27T19:18:41Z</dc:date>
    </item>
  </channel>
</rss>

