<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Content in Tableau Community Forums</title>
    <link>/profile-content.jspa?filterID=contentstatus[published]&amp;targetUser=24047</link>
    <description>Recent content in Tableau Community Forums</description>
    <language>en</language>
    <pubDate>Fri, 07 Apr 2017 08:24:06 GMT</pubDate>
    <generator>Jive Engage 8.0.5.0  (http://jivesoftware.com/products/)</generator>
    <dc:date>2017-04-07T08:24:06Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>How to compute percent change field for values that are computed using conditional logic around a date parameter</title>
      <link>https://community.tableau.com/thread/126921</link>
      <description>&lt;!-- [DocumentBodyStart:f2ed6ed6-feed-4ef7-a743-719074f8c7d5] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi all-&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;In the attached worksheet, I've set a date parameter that allows the user to focus on a specific week.&amp;#160; Rather than filter the sheet, I calculate each field relative to the date parameter.&amp;#160; My cost field for the current week is calculated as &lt;em&gt;IF [Date]=[Week Select] THEN [Cost] END &lt;/em&gt;and the cost field for the previous week is calculated as &lt;em&gt;IF [Date]=[Week Select] - 7 THEN [Cost] END, &lt;/em&gt;etc... &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;After calculating a rate field for the current and previous weeks, I'd like to show the percent change in rate week over week.&amp;#160; It seems like I can't calculate a field based on conditional logic that points to two different dates.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;The entries in my data don't appear consistently each week, so a LOOKUP() may not work.&amp;#160; In the table calc menu, the &lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;option for computing across the table isn't available.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;I'd like to keep the date parameter functionality, but I'm willing to change the format of my data if necessary.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you.&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f2ed6ed6-feed-4ef7-a743-719074f8c7d5] --&gt;</description>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">conditional</category>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">calculations</category>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">percent</category>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">table</category>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">change</category>
      <category domain="https://community.tableau.com/tags#/?containerType=14&amp;container=2003">logic</category>
      <pubDate>Fri, 07 Apr 2017 08:24:06 GMT</pubDate>
      <author>tableaucommunity@tableau.com</author>
      <guid>https://community.tableau.com/thread/126921</guid>
      <dc:date>2017-04-07T08:24:06Z</dc:date>
      <clearspace:dateToText>2 years 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

