<?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 Dynamically changing dimensions, via a slider variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-dimensions-via-a-slider-variable/m-p/395759#M147606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bare with me, hopefully you can follow the logic.&amp;nbsp; I have a pivot table that looks like this: &lt;IMG alt="http://i48.tinypic.com/351dg15.png" class="jive-image" src="http://i48.tinypic.com/351dg15.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Sent Date expression is this: &lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13498039401528909" jivemacro_uid="_13498039401528909"&gt;&lt;P&gt;DATE(IF(ISNULL(InvoiceSentDt), InvoiceDt + vifSentDtNull,InvoiceSentDt), 'MM/DD/YYYY')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if InvoiceSentDt is NULL, then Sent Date = InvoiceDt + vifSentDtNull.&amp;nbsp; This variable is controlled by a slider.&amp;nbsp; This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is what I'm having issues with: &lt;/STRONG&gt;I want to be able to pass on this variable to Effective Checking Date (the dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the load script for Effective Checking Date: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13498044308309259" jivemacro_uid="_13498044308309259"&gt;&lt;P&gt;ISNULL(ActualPaymentDt, // If ActualPaymentDt exists, use that instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATEADD(day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ISNULL(a.Term,0) + ISNULL(c.ClientRiskAdjs,0) + ISNULL(b.InvoiceDateAdjs,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISNULL(InvoiceSentDt, InvoiceDt)&lt;/P&gt;&lt;P&gt;) AS EffCheckingDt&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what's going on here... Effective Checking Date = ActualPaymentDt (if it exists)... Else, calculate it.&amp;nbsp; = &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;SentDt (if exists)&lt;/STRONG&gt;&lt;/SPAN&gt; + Term of the payment + client-wide date adjs value + invoice-specific date adjs value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is bolded in &lt;SPAN style="color: #ff6600;"&gt;red&lt;/SPAN&gt;.&amp;nbsp; Some invoices aren't sent yet, but I want to be able to predict this too.&amp;nbsp; SentDt, assume to equal InvoiceDt + slider value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how do I pass the slider variable onto the EffCheckingDt calculation?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 18:13:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-09T18:13:57Z</dc:date>
    <item>
      <title>Dynamically changing dimensions, via a slider variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-dimensions-via-a-slider-variable/m-p/395759#M147606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bare with me, hopefully you can follow the logic.&amp;nbsp; I have a pivot table that looks like this: &lt;IMG alt="http://i48.tinypic.com/351dg15.png" class="jive-image" src="http://i48.tinypic.com/351dg15.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Sent Date expression is this: &lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13498039401528909" jivemacro_uid="_13498039401528909"&gt;&lt;P&gt;DATE(IF(ISNULL(InvoiceSentDt), InvoiceDt + vifSentDtNull,InvoiceSentDt), 'MM/DD/YYYY')&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if InvoiceSentDt is NULL, then Sent Date = InvoiceDt + vifSentDtNull.&amp;nbsp; This variable is controlled by a slider.&amp;nbsp; This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is what I'm having issues with: &lt;/STRONG&gt;I want to be able to pass on this variable to Effective Checking Date (the dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the load script for Effective Checking Date: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13498044308309259" jivemacro_uid="_13498044308309259"&gt;&lt;P&gt;ISNULL(ActualPaymentDt, // If ActualPaymentDt exists, use that instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DATEADD(day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ISNULL(a.Term,0) + ISNULL(c.ClientRiskAdjs,0) + ISNULL(b.InvoiceDateAdjs,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISNULL(InvoiceSentDt, InvoiceDt)&lt;/P&gt;&lt;P&gt;) AS EffCheckingDt&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what's going on here... Effective Checking Date = ActualPaymentDt (if it exists)... Else, calculate it.&amp;nbsp; = &lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;SentDt (if exists)&lt;/STRONG&gt;&lt;/SPAN&gt; + Term of the payment + client-wide date adjs value + invoice-specific date adjs value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is bolded in &lt;SPAN style="color: #ff6600;"&gt;red&lt;/SPAN&gt;.&amp;nbsp; Some invoices aren't sent yet, but I want to be able to predict this too.&amp;nbsp; SentDt, assume to equal InvoiceDt + slider value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how do I pass the slider variable onto the EffCheckingDt calculation?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-dimensions-via-a-slider-variable/m-p/395759#M147606</guid>
      <dc:creator />
      <dc:date>2012-10-09T18:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically changing dimensions, via a slider variable?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-changing-dimensions-via-a-slider-variable/m-p/395760#M147607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out.&amp;nbsp; I just use a Calculated Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE(IF(ISNULL(InvoiceSentDt), EffectiveCheckingDt + vifSentDtNull, EffectiveCheckingDt), 'MM/DD/YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 14:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-changing-dimensions-via-a-slider-variable/m-p/395760#M147607</guid>
      <dc:creator />
      <dc:date>2012-10-10T14:16:27Z</dc:date>
    </item>
  </channel>
</rss>

