<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communitytest.tessitura.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Sorting First Performance Name by Date Instead of Alphabetically</title><link>https://communitytest.tessitura.com/topical_groups/analytics-coffee/w/wiki/764/sorting-first-performance-name-by-date-instead-of-alphabetically</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>Sorting First Performance Name by Date Instead of Alphabetically</title><link>https://communitytest.tessitura.com/topical_groups/analytics-coffee/w/wiki/764/sorting-first-performance-name-by-date-instead-of-alphabetically</link><pubDate>Wed, 27 Nov 2019 02:45:21 GMT</pubDate><guid isPermaLink="false">fd08b0f2-65fa-4b2b-916a-cce3e88b61d0:40108cb7-eeb6-40eb-b194-6658e4f9e8be</guid><dc:creator>Heath Wilder</dc:creator><comments>https://communitytest.tessitura.com/topical_groups/analytics-coffee/w/wiki/764/sorting-first-performance-name-by-date-instead-of-alphabetically#comments</comments><description>Current Revision posted to Wiki by Heath Wilder on 11/27/2019 2:45:21 AM&lt;br /&gt;
&lt;p&gt;&lt;a href="/topical_groups/analytics-coffee/f/discussions/23488/sorting-first-performance-name-by-date-instead-of-alphabetically"&gt;From&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href="/topical_groups/analytics-coffee/f/discussions/23488/sorting-first-performance-name-by-date-instead-of-alphabetically"&gt;https://community.tessituranetwork.com/topical_groups/analytics-coffee/f/discussions/23488/sorting-first-performance-name-by-date-instead-of-alphabetically&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="rendered-content "&gt;
&lt;div&gt;
&lt;div class="author"&gt;
&lt;div class="meta"&gt;&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="/members/chriswallingford8511"&gt;Chris Wallingford&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;Tessitura Network&lt;/span&gt;&lt;span&gt;&amp;nbsp;Sept 21 2019&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="meta"&gt;&lt;span class="user-name"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;
&lt;p&gt;Analytics v 15.x doesn&amp;#39;t currently have a sort value for Production Season other than the name of the Production Season itself. However, you can create a value formula that will produce one based on the earliest performance date in each production season:&lt;/p&gt;
&lt;p&gt;MIN( DDiff( [Days in Performance Date], NOW( [Days in Performance Date] ) ) )&amp;nbsp;&amp;nbsp; --positive numbers on current/future productions, sort ascending&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;-1 * MIN( DDiff( [Days in Performance Date], NOW( [Days in Performance Date] ) ) )&amp;nbsp;&amp;nbsp; --positive numbers on past productions, sort descending&lt;/p&gt;
&lt;p&gt;This takes the minimum difference in the count of days between the date of the performances in the production season and today. This will be a negative number for past performances and a positive number for future performances. In essence, this sorts based on the first performance date in each production season. To sort by the last performance date in each production season, the formula can be modified to use MAX instead of MIN:&lt;/p&gt;
&lt;p&gt;MAX( DDiff( [Days in Performance Date], NOW( [Days in Performance Date] ) ) )&lt;/p&gt;
&lt;p&gt;Using these values assumes that production season is the only dimensional field on rows/categories in the widget.&lt;/p&gt;
&lt;p&gt;I happen to have a sample:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/470/ProductionSeasonSortandBudget.dash"&gt;ProductionSeasonSortandBudget.dash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-01-14/pastedimage1574821943701v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then for a column chart to use this sort value, requires that you not be using a Break By in your chart. Add, for example, the sort value on your chart. Put it into the first position among the values. Sort by this value, and if desired you can rename it to something less visible (like simply a period, &amp;quot;.&amp;quot;). Set the color of the value to white. Then click on the hamburger for the value, and change the Series Type to Line. This will&amp;nbsp; render the white line invisible behind the rest of the chart elements, but still enforce the sort. Here&amp;#39;s an example with Zone rank and there are examples of this in the pre-built dashboards.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-01-14/pastedimage1574821943702v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;Chris&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="114"&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;b&gt;Chris Wallingford&lt;/b&gt;&lt;br /&gt;Director, Business Intelligence&lt;br /&gt;Tessitura Network&lt;br /&gt;office: +1 888.643.5778 x553&lt;br /&gt;&lt;a href="mailto:chris.wallingford@tessituranetwork.com"&gt;chris.wallingford@tessituranetwork.com&lt;/a&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="rendered-content "&gt;
&lt;div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>