<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://spotfirecommunity.tibco.com/community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Calculated Columns'</title><link>http://spotfirecommunity.tibco.com/community/search/SearchResults.aspx?o=DateDescending&amp;tag=Calculated+Columns&amp;orTags=0</link><description>Search results matching tag 'Calculated Columns'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: CALCULATED COLUMN / CUSTOM  EXPRESSION TO CALCULATE A DIFFERENCE BTEWEEN TWO COLUMNS</title><link>http://spotfirecommunity.tibco.com/community/forums/p/5338/19658.aspx#19658</link><pubDate>Thu, 14 Feb 2013 04:16:52 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:19658</guid><dc:creator>benbeall</dc:creator><description>&lt;p&gt;You can write a&amp;nbsp;custom expression like this:&lt;/p&gt;&lt;p&gt;Sum(If([Year]=2012,[Sales Value)) AS [2012], &lt;br /&gt;Sum(If([Year]=2013,[Sales Value)) AS [2013], &lt;br /&gt;Sum(If([Year]=2013,[Sales Value))&amp;nbsp; - Sum(If([Year]=2012,[Sales Value)) AS [Difference]&lt;/p&gt;&lt;p&gt;You will not need [Year] in the top axis, only (Column Names)&lt;/p&gt;</description></item><item><title>Re: Displaying Quarters in analysis but is not included in the raw data</title><link>http://spotfirecommunity.tibco.com/community/forums/p/5146/17704.aspx#17704</link><pubDate>Mon, 14 Jan 2013 05:22:23 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:17704</guid><dc:creator>manoj_lanser</dc:creator><description>Hi Sajal,

As soon as you put the date column in X-axis,For date column you can find Quarter(In-Built Function) ,Simply Select the function from Aggregation method.It will look 

like Quarter([Date Column]).If you want use this type of calculation ever where then simply make a calculated column Quarter([Date Column]).


Regards
Manoj</description></item><item><title>Dynamic crosstab with calculations on totals and conditional coloring of values in table</title><link>http://spotfirecommunity.tibco.com/community/forums/p/5151/17660.aspx#17660</link><pubDate>Sat, 12 Jan 2013 11:39:24 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:17660</guid><dc:creator>Conradwg</dc:creator><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt;I am hoping someone can provide some assistance on how to handle moving a current analysis performed in Excel into Spotfire. The current Excel analysis pivots data (Product type, Product ID, Problem, Date) into a table. Date&amp;nbsp;becomes the x-axis grouped by month and year. The y-axis utilizes Product Type, Product ID and Problem, with subtotals on Product Type and Product ID for each Problem. This part is easy to replicate in Spotfire with crosstabs.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt;Problem #1&lt;/span&gt;&lt;/u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt; Once the data is pivoted in Excel, I have calculations performed to create separate control limits for each row. The calculations are average (Cbar), LCL - Lower Control Limit ([Cbar - 3*sqrt(Cbar)] and&amp;nbsp;UCL - Upper Control Limit ([Cbar&amp;nbsp;+ 3*sqrt(Cbar)]. However, the calculations do not use the entire data set. The entire analysis contains 24 months of data.&amp;nbsp; The average and control limits are calculated based on the first 18 months of data only. In Spotfire I know&amp;nbsp;a new table can be created from the old that pivots the data.&amp;nbsp; I am not sure how to perform multiple &amp;quot;total&amp;quot; calculations on only a subset of the data.&amp;nbsp; Any recommendations?&lt;/span&gt;&lt;u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt;Problem #2&lt;/span&gt;&lt;/u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt; Once control limits are established for each row then each cell in&amp;nbsp;that row of the pivot table is compared to those limits and conditionally colored (e.g. red if outside of control limits). I am not sure how to handle this in Spotfire. In excel it is done via VBA code.&lt;/span&gt;&lt;u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt;Problem #3&lt;/span&gt;&lt;/u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt; Control chart tests are then performed on each row, including the subtotals, of the Excel Pivot table. This includes whether or not the (1) last x months of values are above or below the average and (2) last x months of values are in increasing order or decreasing order.&amp;nbsp;Indicators are placed in a column showing that a statistical trigger has occurred.&amp;nbsp; This allows the data to be filtered to show only the rows that have statistical triggers. I am not sure how to do this in Spotfire.&lt;/span&gt; 
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:10pt;"&gt;This analysis has to be done in table format as opposed to actual control charts because there are 1000&amp;#39;s of rows in the Pivot table. I am very interested in moving this into Spotfire so that filtering can be utilized in the visualization to dynamically control the content in the table.&amp;nbsp; So the calculations noted above have to be able to update based on applied filters.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Date difference excluding the weekends</title><link>http://spotfirecommunity.tibco.com/community/forums/p/1363/17127.aspx#17127</link><pubDate>Wed, 02 Jan 2013 10:00:53 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:17127</guid><dc:creator>michal.jakubik@miasolutions.sk</dc:creator><description>&lt;p&gt;Hi Zubair,&lt;br /&gt;yes - at the moment the function assumes Saturday and Sunday to be weekends. But it should not be a huge issue to change it (to Thursday and Friday - Arabic weekends?). Please let me know on michal.jakubik@miasolutions.sk and we will try to setup it as a separate deployment archive and I will let you know once it is ready for dowload. &lt;/p&gt;&lt;p&gt;If you would like to have it as a parameter in the method (with the working calendar), it would require some more custom development - will take some more time to develop and test it.&lt;br /&gt;We can discuss this via E-Mail.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Michal &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Date difference excluding the weekends</title><link>http://spotfirecommunity.tibco.com/community/forums/p/1363/16960.aspx#16960</link><pubDate>Sun, 30 Dec 2012 08:34:43 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:16960</guid><dc:creator>michal.jakubik@miasolutions.sk</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi Zubair,&lt;/p&gt;&lt;p&gt;not sure whether you solved your issue, but if you still need to solve this, have a look on http://www.miasolutions.sk/about-us/news/8-spotfire-extension-datetimediffwork&lt;/p&gt;&lt;p&gt;There you can (after registration) dowload the Spotfire Extension - Function that will solve your problems. You can exclude even the non-workingtime. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Michal &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to update &amp;quot;Columns from External Data&amp;quot;?</title><link>http://spotfirecommunity.tibco.com/community/forums/p/1864/15120.aspx#15120</link><pubDate>Wed, 21 Nov 2012 11:40:47 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:15120</guid><dc:creator>Dheep</dc:creator><description>&lt;p&gt;I haven&amp;#39;t noticed that problem. Providing they are of the ame format you shuodl be able to match them? ALl my calculated columns were available.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m still waiting for Tibco support to come back with regards to my original comment.&lt;/p&gt;</description></item><item><title>Top 5 ,Top 10,Top 15 in a drop down</title><link>http://spotfirecommunity.tibco.com/community/forums/p/4724/14065.aspx#14065</link><pubDate>Thu, 18 Oct 2012 09:03:46 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:14065</guid><dc:creator>Mohanraj Subramanian</dc:creator><description>&lt;p&gt;Hi Everyone,&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;Hi have a requirement like top 5, top 10 and top 20 in a drop down.And i have 5 Columns like sales,income,liabilities ,Expenses and Cashflow for every states.I have 5 different bar graph for every states what was my expenses ,cashflow, sales ,cost and liabilities.&lt;/p&gt;
&lt;p&gt;is there any possibilities like if i select top 5 in the drop down i should see only the 5 states which is having maximum expenses,sales , cost etc in different graph simultanously.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;</description></item><item><title>Performing a YTD Comparison on a Partial Year</title><link>http://spotfirecommunity.tibco.com/community/blogs/tips/archive/2012/10/13/creating-an-mid-year-adjusted-ytd-comparison.aspx</link><pubDate>Sat, 13 Oct 2012 19:36:00 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:13977</guid><dc:creator>Kevin Hanegan</dc:creator><description>&lt;p&gt;One common&amp;nbsp;question&amp;nbsp;we see a lot is how to compare and analyze data from one year to the next. There are a variety of ways to do this. Let’s assume we have data like shown below, which includes transactional data of sales by sales rep and by region for 2011 and 2012.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD.png" width="624" height="274" /&gt;&lt;/p&gt;
&lt;p&gt;If we want to analyze the results per region, for example, we could create a Bar Chart which shows Region on the Category-axis,&amp;nbsp; and&amp;nbsp; Sum ([Total]) on the Value-axis. We can additionally color by Year([Order Date]).&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD1.png" width="669" height="348" /&gt;&lt;/p&gt;
&lt;p&gt;You will notice that the sales are all less in 2012, in some places significantly less. If we take a look at the raw data, we can see it is because the results for 2011 are complete, but at this given point in time, we are still in 2012, so we don’t have data through the end of the year.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What if we want to compare how we are doing so far this year compared to the same time period last year?&amp;nbsp; Using a simple calculation, we can build a calculated column, called ‘Adjusted YTD’ which will show data only if the day of the year for 2011 is before today’s date in 2012.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if(DayOfYear([OrderDate])&amp;lt;=DayOfYear(DateTimeNow()),[Total],0)&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If today is October 14, 2012, it will output sales totals for all rows in 2011 where the date is October 14,2011 or earlier, but for October 15th,2011, for example, it will output 0.&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD2.png" width="299" height="278" /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;We can then update our Bar Chart to use the Adjusted YTD Calculated Column&amp;nbsp; on the Value-axis, so that we can properly show an Actual YTD comparison.&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD3.png" width="665" height="356" /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If we now want to show the just a single bar which shows the difference between the Adjusted YTD this year versus last year, we can use the following custom expression on the Value-axis:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Sum([Adjusted YTD]) - Sum([Adjusted YTD]) OVER (Previous([Axis.Color]))&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD4.png" width="687" height="353" /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Interested in learning more about calculations and custom expressions in order to generate your own analysis? Please consider taking our SP141 Computational Analytics training course. This is offered &lt;a href="http://admin.viewcentral.com/events/uploads/TIBCO/Classroom-Training_for_Spotfire-end-users.pdf" target="_blank"&gt;onsite&lt;/a&gt;&amp;nbsp;with a live instructor, and online, using our new &lt;a href="http://admin.viewcentral.com/events/uploads/TIBCO/Mentored-Online-Training_for_Spotfire-end-users.pdf" target="_blank"&gt;Mentored Online Training&lt;/a&gt; format. &lt;/p&gt;</description></item><item><title>Performing a YTD Comparison on a Partial Year</title><link>http://spotfirecommunity.tibco.com/community/blogs/stn/archive/2012/10/13/performing-a-ytd-comparison-on-a-partial-year.aspx</link><pubDate>Sat, 13 Oct 2012 19:36:00 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:13979</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;One common&amp;nbsp;question&amp;nbsp;we see a lot is how to compare and analyze data from one year to the next. There are a variety of ways to do this. Let’s assume we have data like shown below, which includes transactional data of sales by sales rep and by region for 2011 and 2012.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD.png" width="624" height="274" /&gt;&lt;/p&gt;
&lt;p&gt;If we want to analyze the results per region, for example, we could create a Bar Chart which shows Region on the Category-axis,&amp;nbsp; and&amp;nbsp; Sum ([Total]) on the Value-axis. We can additionally color by Year([Order Date]).&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD1.png" width="669" height="348" /&gt;&lt;/p&gt;
&lt;p&gt;You will notice that the sales are all less in 2012, in some places significantly less. If we take a look at the raw data, we can see it is because the results for 2011 are complete, but at this given point in time, we are still in 2012, so we don’t have data through the end of the year.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What if we want to compare how we are doing so far this year compared to the same time period last year?&amp;nbsp; Using a simple calculation, we can build a calculated column, called ‘Adjusted YTD’ which will show data only if the day of the year for 2011 is before today’s date in 2012.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;if(DayOfYear([OrderDate])&amp;lt;=DayOfYear(DateTimeNow()),[Total],0)&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If today is October 14, 2012, it will output sales totals for all rows in 2011 where the date is October 14,2011 or earlier, but for October 15th,2011, for example, it will output 0.&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD2.png" width="299" height="278" /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;We can then update our Bar Chart to use the Adjusted YTD Calculated Column&amp;nbsp; on the Value-axis, so that we can properly show an Actual YTD comparison.&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD3.png" width="665" height="356" /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If we now want to show the just a single bar which shows the difference between the Adjusted YTD this year versus last year, we can use the following custom expression on the Value-axis:&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Sum([Adjusted YTD]) - Sum([Adjusted YTD]) OVER (Previous([Axis.Color]))&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img border="0" hspace="-1" alt="" src="http://spotfire.tibco.com/community/images/AdjustedYTD4.png" width="687" height="353" /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Interested in learning more about calculations and custom expressions in order to generate your own analysis? Please consider taking our SP141 Computational Analytics training course. This is offered &lt;a href="http://admin.viewcentral.com/events/uploads/TIBCO/Classroom-Training_for_Spotfire-end-users.pdf" target="_blank"&gt;onsite&lt;/a&gt;&amp;nbsp;with a live instructor, and online, using our new &lt;a href="http://admin.viewcentral.com/events/uploads/TIBCO/Mentored-Online-Training_for_Spotfire-end-users.pdf" target="_blank"&gt;Mentored Online Training&lt;/a&gt; format. &lt;/p&gt;&lt;img src="http://spotfirecommunity.tibco.com/community/aggbug.aspx?PostID=13977" width="1" height="1" alt="" /&gt;</description></item><item><title>Alignment Of Values/Text in a Column</title><link>http://spotfirecommunity.tibco.com/community/forums/p/4660/13813.aspx#13813</link><pubDate>Thu, 04 Oct 2012 04:41:20 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:13813</guid><dc:creator>manoj_lanser</dc:creator><description>I have a column name as Total and it contains values like 2,7,10 but by default Spotfire 4.5 align them in Right.Is there any way to change the alignment to Center...?</description></item></channel></rss>