Note that there are some explanatory texts on larger screens.

plurals
  1. POCrystal Reports Crosstab Calculation or Dynamic Columns
    primarykey
    data
    text
    <p>I have the following data in sql. </p> <pre><code>Date |Customer|DespatchOrder|Value|ApprovedCredit 08/10|Axe |AGB-01 |50 |200 08/12|Axe |AGB-02 |75 |200 08/13|Axe |AGB-03 |80 |200 08/15|Axe |AGB-04 |10 |200 08/09|Vex |VSE-01 |50 |150 08/10|Vex |VSE-02 |60 |150 08/13|Vex |VSE-03 |40 |150 </code></pre> <p>With some manipulation in sql I have managed to display my data in a crosstab in crystal reports like in the examples below:</p> <pre><code>AXE Date |ApprovedCredit|Total|AGB-01|AGB-02|AGB-03|AGB-04 08/09|200 |0 |0 |0 |0 |0 08/10|200 |50 |50 |0 |0 |0 08/11|200 |50 |50 |0 |0 |0 08/12|200 |125 |50 |75 |0 |0 08/13|200 |205 |50 |75 |80 |0 08/14|200 |205 |50 |75 |80 |0 08/15|200 |215 |50 |75 |80 |10 VEX Date |ApprovedCredit|Total|VSE-01|VSE-02|VSE-03 08/09|120 |50 |50 |0 |0 08/10|120 |110 |50 |60 |0 08/11|120 |110 |50 |60 |0 08/12|120 |110 |50 |60 |0 08/13|120 |150 |50 |60 |40 08/14|120 |150 |50 |60 |40 08/15|120 |150 |50 |60 |40 </code></pre> <p>The problem that I have, I cannot find a way to calculate my overlimit column inside of a crosstab, the over limit is calculated by approvedcredit - Total(Column inside of crosstab)</p> <pre><code>AXE Date |ApprovedCredit|Total|OverLimit|AGB-01|AGB-02|AGB-03|AGB-04 08/09|200 |0 |0 |0 |0 |0 |0 08/10|200 |50 |0 |50 |0 |0 |0 08/11|200 |50 |0 |50 |0 |0 |0 08/12|200 |125 |0 |50 |75 |0 |0 08/13|200 |205 |5 |50 |75 |80 |0 08/14|200 |205 |5 |50 |75 |80 |0 08/15|200 |215 |15 |50 |75 |80 |10 VEX Date |ApprovedCredit|Total|OverLimit|VSE-01|VSE-02|VSE-03 08/09|120 |50 |0 |50 |0 |0 08/10|120 |110 |0 |50 |60 |0 08/11|120 |110 |0 |50 |60 |0 08/12|120 |110 |0 |50 |60 |0 08/13|120 |150 |30 |50 |60 |40 08/14|120 |150 |30 |50 |60 |40 08/15|120 |150 |30 |50 |60 |40 </code></pre> <p>Please help if you have any idea how to do this, I have tried to create my report without a crosstab, but was not successful with the dynamic column headers. I would like to keep on using the crosstab due to the dynamic nature of this report and sometime there can be more than 10 DespatchOrders but if there is no way to do this using a cross tab please help with alternative.</p> <p>I found away to create the over limit column inside of Crystal Report using a Calculated Member with a value formula</p> <pre><code>ApprovedCredit - GridValueAt(CurrentRowIndex, 0 ,0) </code></pre> <p>The GridValueAt function is now supported by crystal reports xi neither is a calculated member. Just another brick wall</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload