Crystal 2008 section export group selection - crystal-reports

I'm working in SAP BO Crystal 2008 with data tables from an ERP system.
Here is what I have. The table contains General Ledger journals, detail entries. Grouped by Journal number showing General Ledger account number, year, month and value. Each journal sums to 0 as it includes debit and credit entries.
This is what I am trying to select:
All journals which contain a specific GL Code. I need all journal entries for other GL codes as long as the specific code I am looking for (7000-00) is included in the journal.
This is an extract of the data:
378 GL Code Journal value in/exclude
2015 1 7000-00 378 855.15 include
2015 1 7200-00 378 -855.15 include
2015 1 3200-00 379 -41.06 exclude
2015 1 3210-00 379 -0.47 exclude
2015 1 3220-00 379 -26.51 exclude
2015 1 7200-00 379 exclude
380
2015 1 7000-00 380 866.75 include
2015 1 7200-00 380 -866.75 include
2015 1 3200-00 381 -2.88 exclude
2015 1 3210-00 381 -0.27 exclude
2015 1 3220-00 381 -1.84 exclude
2015 1 7200-00 381 4.99 exclude
As you can see I have made the Group Header Journal number show if the journal group contains 7000-00 but how can I supress the data for any journals that do not contain 7000-00?
i.e. I want to see data from Journal 378 bit not 379. I want to see 380 but not 381 etc.
Any help would be appreciated. I think this needs a formula in section expert but am at a loss of how to do it.
Thanks
Guys

Make a group using Journal and place all your fileds that you wish to see in detail section.
now create a below formula #count and place it at the end of the detail section.
if (Code =7000-00)
then 1
else 0
Take the sum of count in group footer using insert summary.
Now for supress condition of group header, details and group footer
if (sum({#count},{Journel}))>0
then false
else true
Change the formula as per your report.

Related

How to create a filter for columns in a dashboard?

I have a table which looks like this
id login_id trend_type sep oct nov
1 abc#abc.com Billing 10 34 43
1 abc#abc.com Visits 20 43 56
1 abc#abc.com Revenue 30 12 12
1 pqr#pqr.com Billing 40 23 54
1 pqr#pqr.com Visits 50 21 47
1 pqr#pqr.com Revenue 60 98 12
I want to create a dashboard where I can display graphs of all these Trend Types and add a filter for the user so they can select the month for which they want to view the graphs.
I have tried this solution -
https://community.tableau.com/thread/228965
but I wasn't successful.
Tableau really likes data that is taller rather than wider. In this case, you need to do a PIVOT on the month data. A pivot will create a column for the months and another column for the values. Your data will have more rows now but fewer columns.
When you bring the data into Tableau, on the Data Source screen, highlight the three month columns and select pivot.
You can also change the name of the Pivot Field Names (to Month) and Pivot Field Values (to Amount or another appropriate name).
Click on the orange Sheet 1 on the bottom left. Next, create a calculated field to create a full date. (Tableau doesn't know what 'sep' is.)
[Pivot Field Names] + "-01-2019"
This field just creates a string that Tableau can parse (eg 'sep-01-2019'). Now tell Tableau it is a Date field by changing the field type (click on the Abc next to the Dimension name).
At this point, you can create a viz and add filters. Here is an example.

RT not summing for group

I have to suppress duplicate details and have created a manual running total including the suppression formulas by group. The issue is I have three receivings with the same item, same date, same location but different receiving numbers (not duplicates); which do appear on the report. I must use previous and next functions to have a correct running total of the detail where the duplicates are suppressed but where there is three groups (same item) the center group shows a RT of $0. I have tried "or" instead of "and" but then the groups with duplication show incorrect running totals. I have tried previous only but that also present incorrect running totals. Any suggestions?
Example
Grp Receiving# Date Item# Running Total
1 222 Nov 21 789 $200
2 333 Nov 21 789 $ 0
3 444 Nov 21 789 $200

How to fix Number of rows in detail section and insert blank rows if number of record less than rows fixed in detail section

I want to print three pay slips in an A4 size page. Page header and footer are fixed number of rows.
I want Detail section to print 8 records. If records are less than 8, remaining line should be blank printed and 3 pay slip print on one page.
Input parameters are Month and Year. I grouped each pay slip with personnel_id and placed the personel_id, name and bank account no. on group header section.
In detail section
Earnings: Total
Basic pay 20000
Arrear 1000
Qualification Pay 500
Deduction:
Medical Fee 2000
Club Fee 1000
In Group footer
Total Earning 21500
Total Deduction 3000
Net Pay 18500
Sometimes Earning has only one record and sometimes deduction has only one record.
I want to fix detail section with 8 or 10 rows and also 2 or 3 pay slips in one A4 size page.
Thanks.
Sample Data
E=Earnings
D=Deductions
Personnel ID EDname Cur_amount EDCode EDtype P_Month P_Year
17777-7 Basic Pension 20000 401 E 4 2014
17777-7 Arrear 1000 402 E 4 2014
17777-7 Qualification Alw. 5000 403 E 4 2014
17777-7 Medical Fee 2000 501 D 4 2014
17777-7 Club Fee 1000 502 D 4 2014
18888-8 Medical Fee 1500 501 D 4 2014
18888-8 Club Fee 700 502 D 4 2014
Report format on one page id just like below
Personnel_id:18888-8 Pay Slip
Name: xyz Month April, 2014 //`Group Header`
Account_No. 123444
Deduction:
Medical Fee 1500.00
Club Fee 700.00 // `Detail Section`
Total Earning: 0.00 // `Group Footer`
Total Deduction: -2200.00
Net pay -2200.00
Personnel_id:17777-7 Pay Slip
Name: ABC Month April, 2014
Account_No. 123456
Earnings:
Basic Pension 20000.00
Arrear 1000.00
Qualification Alw. 5000.00
Deduction:
Medical Fee 2000.00
Club Fee 1000.00
Total Earning: 21500.00
Total Deduction: 3000.00
Net pay 18500.00
according to your formula result of first pay slip is
Personnel_id:18888-8 Pay Slip
Name: xyz Month April, 2014
Account_No. 123444
Earnings:
Basic Pension
Arrear
Qualification Alw.
Deduction:
Medical Fee 1500.00
Club Fee 700.00
Total Earning: 0.00
Total Deduction: -2200.00
Net pay -2200.00
needed remaining 6 blank lines in detail section after Club fee
since detail section is fixed to 8 rows..
Simple way is to create 8 detail sections and place each field in one detail section.
Write a formula that will extend to the end of the detail section. Here write your code to print a line or leave it if you need a empty space.
if ISNULL(databasefiled)
then "--------------------------------------------------"
else totext(databasefield.value)
1)First of all fix height of detail section
by right click on detail section ->section expert->New Page Before checked->beside button of (x+2) write formula of ->
IF Remainder (RecordNumber, 8) = 0 THEN
TRUE
ELSE
FALSE
2)under detail section (suppose section3) is your detail section
then leave report section blank with needed space and else for footer put it in
page footer .. i think this will solve your problem.. mine is solved..

Crystal Crosstab - access summarized values

I am trying to access the summarized fields in a crosstab in order to determine which is the greatest value in a row.
My data displayed is as follows:
Jan Feb Mar Quarter
clerk 1 shoes 0 3 1 4
clerk 1 pants 5 10 10 25
What I need to display on the report is that the major item sold by Clerk 1 is pants.
I am table to do this on a monthly basis but not summary level. Any ideas?
Thanks, Holdfast
You need to insert Embeeded Summary at grand total level and write maximum or minimum formula to retrive, but one issue here is when you insert embeeded summary then you will get extra row at each level of the cross tab.
Note: This is possible in CR 2008 and I have tested in CR 2008

Transposing Row Data as Columns in Crystal Reports

I have the following data returned from a stored procedure
Staff Category Amount
----- ------- ------
Bob Art 123
Bob Sport 777
Bob Music 342
Jeff Art 0
Jeff Sport 11
Jeff Music 27
All Categories will always be returned for all Staff even is the Amount is zero
What I want to do on my Crystal Report is output this:-
Staff Art Sport Music
----- --- ----- -----
Bob 123 777 342
Jeff 0 11 27
I effectively want to Transpose the data in the Category rows as headers or columns in my report.
I do not want to use a Cross Tab as I have other things I need to add which will not fit nicely into a Cross Tab
Any thoughts on how I can do this in Crystal? I'm using version 11
Should be able to achive this in your sproc with a PIVOT Table. A helpfile on PIVOT tables can be found here
Group the report by staff and place staff, Art, Sport, Music as text fields in Group header.
now in details section place data as
Staff, formula 1 (If Category='Art' then Amount), formula 2 (If Category='Sport' then Amount), formula 3 (If Category='Music' then Amount)
If Staff has only one value then its ok else place Staff in Group footer and take sum of all values in group footer (Don't remove Formula 1,2,3 from details)