<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Crystal Reports Forum : Technical Questions</title>
        <link>https://www.crystalreportsbook.com/forum</link>
        <description>This is an XML content feed of; Crystal Reports Forum : Technical Questions : Last 10 Posts</description>
                    <item>
                <title>Cross Tab Report- Suprressing unwanted columns</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=2645&amp;PID=75423#75423</link>
                <description>The best way I found to handle such scenarios is to create a grouping formula where the viable data would be grouped as one label (like &amp;#34;Display&amp;#34;), while the rest in another (like &amp;#34;Ignore&amp;#34;).
&lt;br /&gt;You then insert this formula at the top-level column of the crosstab and in the sort order choose &amp;#34;Specified Order&amp;#34; and select your &amp;#34;display&amp;#34; valued group while ignoring the &amp;#34;Other&amp;#34;.
&lt;br /&gt;This method serves several purposes, mainly does not require adjustments to the selection logic and not having suppressed empty columns which still occupy space in the crosstab.</description>
                <pubDate>Thu, 05 Feb 2026 06:29:19 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=2645&amp;PID=75423#75423</guid>
            </item>
                    <item>
                <title>Isolating Part of a Date Field</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75421#75421</link>
                <description>Thanks.  The issue that gave rise to my question ended in December, but could come up again.  I&amp;#039;ll be sure to remember this!</description>
                <pubDate>Mon, 30 Jun 2025 04:07:06 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75421#75421</guid>
            </item>
                    <item>
                <title>Isolating Part of a Date Field</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75420#75420</link>
                <description>Long past the ask.
&lt;br /&gt;
&lt;br /&gt;I would have used mid({field}, 11, 1) &amp;#61; 8 or 6.
&lt;br /&gt;Would have made the mid({field}, 11, 1) a local variable as I hate typing.
&lt;br /&gt;
&lt;br /&gt;Just a thought</description>
                <pubDate>Fri, 27 Jun 2025 08:15:19 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75420#75420</guid>
            </item>
                    <item>
                <title>Converting multiple rows (CPT Code per Encounter)</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23058&amp;PID=75419#75419</link>
                <description>Hi,
&lt;br /&gt;
&lt;br /&gt;I am sure that you found an answer.
&lt;br /&gt;What I would have tried is to make a subgroup for the encounter and have that grouped by CPT code and only display the header or footer of the CPT group.
&lt;br /&gt;
&lt;br /&gt;Just a thought</description>
                <pubDate>Fri, 27 Jun 2025 08:12:44 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23058&amp;PID=75419#75419</guid>
            </item>
                    <item>
                <title>Converting multiple rows (CPT Code per Encounter)</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23058&amp;PID=75416#75416</link>
                <description>
&lt;br /&gt;I have been asked to try to covert unique records such as MRN that’s been grouped in crystal already, but the issue is that its listing the CPT code for the same encounter in multiple rows. Checking to see if there is a simple way to convert those multiple cpt code rows into its own respective column.  See example below……
&lt;br /&gt;
&lt;br /&gt;Currently as
&lt;br /&gt;
&lt;br /&gt;Patient 1 (Grouped)     Enc # 111111     CPT 714.5
&lt;br /&gt;     Enc # 111111     CPT 700.5
&lt;br /&gt;     Enc # 111111     CPT 800.0
&lt;br /&gt;Patient 2 (Grouped)     Enc # 222222     CPT 900.4
&lt;br /&gt;          
&lt;br /&gt;
&lt;br /&gt;Would like to convert to
&lt;br /&gt;
&lt;br /&gt;Patient 1 (Grouped)     Enc # 111111     CPT 714.5 
&lt;br /&gt;CPT 700.5     CPT 800.0  ALL ON ONE ROW
&lt;br /&gt;Patient 2 (Grouped     Enc # 222222     CPT 900.4 ALL ON ONE ROW          
&lt;br /&gt;                    
&lt;br /&gt;                    
&lt;br /&gt;
&lt;br /&gt;Thank you! Any advice would be greatly appreciated! 
&lt;br /&gt;</description>
                <pubDate>Mon, 27 Jan 2025 10:22:53 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23058&amp;PID=75416#75416</guid>
            </item>
                    <item>
                <title>Isolating Part of a Date Field</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75412#75412</link>
                <description>I have a need to compare values in a table, but only report on those where a part of the data is a mismatch.  The data in the field in question would be in the format of 010-4XXXX-8XX.  This is for properly recording the general ledger account number for invoices.  I&amp;#039;m only interested in instances when the 8 in this field isn&amp;#039;t the same in all line items for each invoice number.  There will be cases where some of the entries for the invoice have an 8 there and other entries for the same invoice will have a 6 there.  The rest of the digits in the field are irrelevant.  I only need to report on those where there&amp;#039;s a 6 and an 8.  All sixes or all eights are correct.  There will be at least two, and maybe more, line items in the table.  The constant in the table is the invoice number.
&lt;br /&gt;
&lt;br /&gt;No clue how to query for this.  Any suggestions?  Thanks,</description>
                <pubDate>Mon, 30 Sep 2024 04:22:33 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23054&amp;PID=75412#75412</guid>
            </item>
                    <item>
                <title>Grouping totals by consecutive dates</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23050&amp;PID=75411#75411</link>
                <description>I realize this is a somewhat old post and I hope you were able to figure this out.
&lt;br /&gt;
&lt;br /&gt;It looks like you&amp;#039;re trying to get the daily and weekly sums of the number of units.  If that&amp;#039;s the case, here&amp;#039;s what I would do:
&lt;br /&gt;
&lt;br /&gt;1. Add two groups on the date field - the first one is at the weekly level and the other is at the daily level.
&lt;br /&gt;2. Suppress the details section and both group header sections
&lt;br /&gt;3. Create a sum of MANUM using the following as a template an put it in the Daily date group footer:
&lt;br /&gt;&lt;pre class=&quot;BBcode&quot;&gt;&lt;br /&gt;sum({table.Unitsfield}, {table.datefield}, &amp;#34;daily&amp;#34;)
&lt;br /&gt;&lt;/pre&gt;
&lt;br /&gt;Put the date field and this formula in the daily date group footer.
&lt;br /&gt;4.  Create a similar summary formula for the &amp;#34;weekly&amp;#34; date group footer that will contain the &amp;#34;group of XX units for date range for same MANum&amp;#34; text.
&lt;br /&gt;
&lt;br /&gt;-Dell</description>
                <pubDate>Wed, 10 Jul 2024 06:49:19 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23050&amp;PID=75411#75411</guid>
            </item>
                    <item>
                <title>Grouping totals by consecutive dates</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23050&amp;PID=75407#75407</link>
                <description>&lt;div&gt;I have a report that I would like to  sum on consecutive dates and show that total, then restart the sum and begin again within the same MANum group .&lt;/div&gt;&lt;div&gt;The report looks like this&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GH #1 County&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GH #2 Service code&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GH #3 MANum unique Id  contains the reset formula ttlunits:&amp;#61; 0&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Details  fields: Number of Units, rate, begin date and the below formula&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GF #3 MANum contains sum of all units and the sum of consecutive units&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GF #2 Service Code&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;GF #1 County&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;example output:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7/1/2023   10 units&lt;/div&gt;&lt;div&gt;7/2/2023 5 units&lt;/div&gt;&lt;div&gt;group of 15 units for date range for same MANum&lt;br /&gt;&lt;/div&gt;&lt;div&gt;gap&lt;/div&gt;&lt;div&gt;7/5/2023  5 units&lt;/div&gt;&lt;div&gt;7/6/2023 3 units&lt;/div&gt;&lt;div&gt;Group of 8 units for date range for same MANum&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I use this formula in the details section:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;whileprintingrecords;&lt;br /&gt;numbervar ttlunits;&lt;br /&gt;if onfirstrecord&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;)&lt;br /&gt;else &lt;br /&gt;if not onlastrecord and&lt;br /&gt;dayofweek({Billings.Begin Date}, crSunday) in [1 to 7] and&lt;br /&gt;{Billings.Begin Date} &amp;#61; previous({Billings.Begin Date}) &amp;#43;1 and&lt;br /&gt;{Billings.Begin Date} &amp;#61; next({Billings.Begin Date}) - 1&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;)&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;if not onlastrecord and&lt;br /&gt;dayofweek({Billings.Begin Date}, crSunday)&amp;#61;1 and&lt;br /&gt;{Billings.Begin Date} &amp;#61; previous({Billings.Begin Date}) &amp;#43;3 and&lt;br /&gt;{Billings.Begin Date} &amp;#61; next({Billings.Begin Date}) - 1&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;)&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;if not onlastrecord and&lt;br /&gt;dayofweek({Billings.Begin Date}, crSunday) in [1 to 7] and&lt;br /&gt;{Billings.Begin Date} &amp;#61; previous({Billings.Begin Date}) &amp;#43; 1 and&lt;br /&gt;{Billings.Begin Date}&amp;lt;&amp;gt; next({Billings.Begin Date}) - 1&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;    )&lt;br /&gt;else&lt;br /&gt;if not onlastrecord and&lt;br /&gt;dayofweek({Billings.Begin Date}, crSunday) in [1 to 7] and&lt;br /&gt;{Billings.Begin Date}&amp;lt;&amp;gt; previous({Billings.Begin Date}) &amp;#43; 1 and&lt;br /&gt;{Billings.Begin Date} &amp;#61; next({Billings.Begin Date}) - 1&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;)&lt;br /&gt;else&lt;br /&gt;if {Billings.Begin Date} &amp;lt;&amp;gt; next({Billings.Begin Date}) - 1&lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; 0;&lt;br /&gt;)&lt;br /&gt;else&lt;br /&gt;if  onlastrecord &lt;br /&gt;then (&lt;br /&gt;ttlunits:&amp;#61; ttlunits&amp;#43;{Billings.Number of Units}&lt;br /&gt;)&lt;br /&gt;else&lt;br /&gt;&lt;br /&gt;ttlunits:&amp;#61; {Billings.Number of Units}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the most part this formula works but there are some anomolies IE:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Units      date           formula calculation&lt;br /&gt;&lt;/div&gt;&lt;div&gt;24      7/1/2023               24&lt;/div&gt;&lt;div&gt;25      7/2/2023               49&lt;/div&gt;&lt;div&gt;gap&lt;/div&gt;&lt;div&gt;24      7/5/2023               73&lt;/div&gt;&lt;div&gt;24      7/6/2023               97   should be 48&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Any help would be greatly appreciated and thank you in advance.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Steve&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description>
                <pubDate>Mon, 08 Jan 2024 06:13:19 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23050&amp;PID=75407#75407</guid>
            </item>
                    <item>
                <title>Null value</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23049&amp;PID=75406#75406</link>
                <description>I have some basic formulas I use for reporting that don&amp;#039;t seem to work for all.
&lt;br /&gt;
&lt;br /&gt;The two fields below can have null values in them.  The default is null, if checked, value is &amp;#34;Y&amp;#34;, if checked and then unchecked, the value is &amp;#34;N&amp;#34;:
&lt;br /&gt;{CI_Item.UDF_PK_ORDERBYKIT}
&lt;br /&gt;{CI_Item.UDF_PK_ORDERBYSWK}
&lt;br /&gt;
&lt;br /&gt;I&amp;#039;m doing a very simple calculation for &lt;strong&gt;ORDER TOTAL&lt;/strong&gt;:
&lt;br /&gt;if {CI_Item.UDF_PK_ORDERBYSWK} &amp;#61; &amp;#34;Y&amp;#34; then ({SO_SalesOrderDetail.QuantityOrdered} - {SO_SalesOrderDetail.QuantityShipped})*{CI_Item.UDF_PK_QTYPERSHRINK}
&lt;br /&gt;else if {CI_Item.UDF_PK_ORDERBYKIT} &amp;#61; &amp;#34;Y&amp;#34; then ({SO_SalesOrderDetail.QuantityOrdered} - {SO_SalesOrderDetail.QuantityShipped})*{CI_Item.UDF_QTYPERBOX}
&lt;br /&gt;else ({SO_SalesOrderDetail.QuantityOrdered} - {SO_SalesOrderDetail.QuantityShipped})
&lt;br /&gt;
&lt;br /&gt;Most of the items in my report will work, but will make any new items &lt;strong&gt;ORDER TOTAL&lt;/strong&gt; &amp;#61; 0
&lt;br /&gt;
&lt;br /&gt;if also created null value type formulas to force the N and Y and substitute them into the above formulas and have the same result.  I&amp;#039;ve used this in reports over and over and have no idea why this doesn&amp;#039;t work here.
&lt;br /&gt;
&lt;br /&gt;My null value type formulas look like this:
&lt;br /&gt;OrderByBoxIsNull:  
&lt;br /&gt;if isnull({CI_Item.UDF_PK_ORDERBYKIT}) then &amp;#34;N&amp;#34;
&lt;br /&gt;else If {CI_Item.UDF_PK_ORDERBYKIT} &amp;#61; &amp;#34;N&amp;#34; then &amp;#34;N&amp;#34;
&lt;br /&gt;else &amp;#34;Y&amp;#34;
&lt;br /&gt;
&lt;br /&gt;OrderBySWKIsNull:
&lt;br /&gt;if isnull({CI_Item.UDF_PK_ORDERBYSWK}) then &amp;#34;N&amp;#34;
&lt;br /&gt;else If {CI_Item.UDF_PK_ORDERBYSWK} &amp;#61; &amp;#34;N&amp;#34; then &amp;#34;N&amp;#34;
&lt;br /&gt;else &amp;#34;Y&amp;#34;
&lt;br /&gt;
&lt;br /&gt;When I put these fields in the report they show up correctly on 90% of the items, but the rest show 0.
&lt;br /&gt;
&lt;br /&gt;What am I missing?  Thanks for the help!
&lt;br /&gt;I have limited knowledge of what the Exceptions for Nulls selection does.  Currently, that is what is selected in the formula editor.</description>
                <pubDate>Thu, 30 Nov 2023 07:31:58 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23049&amp;PID=75406#75406</guid>
            </item>
                    <item>
                <title>Most Recent Date</title>
                <link>https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23047&amp;PID=75404#75404</link>
                <description> &lt;img src=&quot;smileys/smiley5.gif&quot; align=&quot;middle&quot; /&gt; Good morning, an employee is attached to a particular cost centre code in our org. If they move to different department they are attached to new cost centre code. 
&lt;br /&gt;Cost centres and the effective date are stored in two separate tables. 
&lt;br /&gt;I have tried to use Maximum({Eff_Date}) but this gives the error &amp;#34;Boolean required&amp;#34;
&lt;br /&gt;I have a group for the cost centre code and one for the effective date but I cant seem to get a formula working using &amp;#34;Maximum&amp;#34; Does anyone have experience with this?</description>
                <pubDate>Wed, 01 Nov 2023 01:19:18 GMT</pubDate>
                <guid isPermaLink="true">https://www.crystalreportsbook.com/forum/forum_posts.asp?TID=23047&amp;PID=75404#75404</guid>
            </item>
            </channel>
</rss>
