Crystal reports - charting query

Hi.
I have a database with the following fields:
'companyname' which contains the values:
company1
company2
company3
company4
company5
company6
'value' which contains the company values:
11
14
16
13
72
26
and a 'date' field.
I have created a CReport that displays information between the dates specified. I am displaying a bar chart with the company names on the x-axis and values on the y axis.
So i specify a 'from' and 'to' date to display the data and it returns a graph with data.
On the x-axis is company3, company4, company5.   This then means that company1, company2 and company6 have a value of zero between the dates specified, thus the graph doesnt display those company names.
Im wondering how i can get it to display all the company names (company1 to company6) and for company 1, company2 and company6, just display a value of zero?
Please can you help me with this?
thank you.
J

If the rest of the report is dependant on filtering the data based on the date but you still want to show company names that have no data for that date range then you could insert a subreport that returns all data (or filters it down to the 6). Create a formula that outputs the value if the datefield falls within the date range and outputs 0 if it does not. Use this formula as the value field in the chart.

Similar Messages

  • Error Bars - Can Error Bars be added to Crystal Report Charts

    I am trying to add or create "error bars" in my cystral report chart (graph).  I can add "error bars" in an Excel sheet chart (graph) but I cannot find the functionality in crystal reports.
    Is it possible to "error bars" to a crystal report chart.  If so, how?

    Hi,
    I don't see that this functionality or this kind of chart exists in CR.
    I would suggest that you log an Enhancement Request at http://ideas.sap.com and let our developers look into this.
    -Abhilash

  • Migrating from Crystal Reports Charts using TopN and "Other" to Reporting Services

    I am currently migrating several Crystal Reports that have charts.  The chart series is set to use the TopN values in a count, and combine the rest of the series into one series titled "Other".  I see how to filter the chart using TopN, however I need to still show the rest of the data grouped as "Other".  I think the solution I need is to create a group expression that uses some sort of IIF function to create the "Other" group, but I haven't found a function that I can use to get the results I need.  Any ideas?
    Scott

    We were looking at report deployment options and evaluating SSRS vs Crystal Report Server.  There were several reasons we decided to go with SSRS:
    Cascading Parameters
    Ability to use multiple data sets in one report
    SSRS seemed more user-friendly than CRS
    There were a few other considerations I can remember now, but the final reason was price.  My company already had the licenses for SQL Server.  However, even if that was not a consideration I still would have gone with SSRS.
    Hope this info helps.
    Scott

  • Crystal Report Chart Problem: No trendlines with regression

    Hi,
    I have a severe problem with chart trendlines in Crystal Reports 2008 (12.3.0.601).
    Trendlines with regression do not work, whereas  average and moving average work on charts with data axis but not with numerical axis.
    Does anyone has an idea, how to solve it.
    Best regards
    Michael

    hi,
    Try to create a bar chart with Year, Quarter as dimensions and Sales revenue as measure.
    Now your chart has legend which shows quarter values.
    Right Click the Legend value Q1 -> Series Options -> Trendline.
    Choose the required regression type: Linear/ Polynomial/ Logarthmic/ exponential/ Moving Average.
    This will show the required trend line.
    Regards,
    Vamsee

  • Crystal Report Chart not showing up in Web Portal

    I have a created a chart using Crystal Reports(runs fine in Crystal) and published it on our Report Server. When I went to look at the report on our Web portal, the text objects were visible however the chart was not. Portal is in JSF technology (IceFaces) on JBoss server.
    Anyone know why this happening?
    I founded post
    [Re: Crystal Viewer in Servlet does not show graphics|Re: Crystal Viewer in Servlet does not show graphics]
    I have this in web.xml
    <context-param>
             <param-name>crystal_image_uri</param-name>
             <param-value>/my_app_name/crystalreportviewers115</param-value>
    </context-param>
    But in URL like this one
    /my_app_name/crystalreportviewers115/crystalimagehandler.jsp?dynamicimage=crystal7652571164231307864.png
    I haven't file "crystalimagehandler.jsp" I also didn't found "crystal7652571164231307864.png" file. how to resolve this problem?

    Yes I did. I created file "crystalreportviewers115" in my "WEB-INF" and coped there all file from "C:\Program Files\Business Objects\Common\4.0\crystalreportviewers12\".
    In tutorial which i founded [here|http://devlibrary.businessobjects.com/businessobjectsxir2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/Tutorials2.html#1459845] they saying that I must copy file "crystalreportviewers115" but in my case I have "crystalreportviewers12" and:
    - ChartSupport
    - java
    - managed
    In my case i haven't file "crystalreportviewers115" but "crystalreportviewers12".
    In eclipse the structure of my app (its "Dynamic Web Project") looks like:
    - myapp:
    _______ src
    _______ crystalreportviewers115
    _______ WebContent:
    _________________ WEB-INF
    Any advice?

  • Image toolbar appears over Crystal reports chart in Infoview

    I am publishing Crystal reports developed across a Universe in my BusinessObjects Enterprise XI Release 2 InfoView. I have done few line charts in the Crystal reports. I am running on Internet Explorer 7 but my clients are running on Internet Exploreer 6.0. When my clients view Crystal reports (in Infoview) on their browser, the charts are identified as images in their infoview by Internet Explorer 6 browser and it keeps showing the Image toolbar ( the small toolbar which popups over the images in IE 6 prompting you to Save this image/Open this image/Save In My Pictures toolbar etc..)
    Please try this link http://www.microsoft.com/windows/ie/ie6/using/howto/customizing/phototoolbar.mspx to know what an image toolbar is.
    This little feature got included in Intenet Explorer 6 by which any image identified by the web browser will automatically popup this Image toolbar. It won't happen in Internet Explorer 7.0.
    If i am developing a website and do not want this image toolbar appearing over my images in my site I can code accordingly. But i am clueless about the Crystal Reports/Business Objects Infoview environment and how to get rid of this toolbar.
    The one option i got is to ask my users who use IE 6.0 to go to Tools->Internet Options->Advanced tab->Multimedia ->uncheck the checkbox Enable image toolbar. Unfortunately my users login under citrix environment and their default browser settings will be restored every day morning they login.
    Any ideas?

    Hi Michael,
    Unfortunately BusinessObjects does not control these settings when accessing the InfoView.  It sounds like it'll need to be addressed by the system administrator to disable that option in IE through user profiles/applications.
    Regards,
    Wallie

  • Crystal Reports Charting Issue with SAP Function Module

    I created a custom SAP Function module that returns 2 tables. The first table (summary table) contains two columns, column "a"  contains a grouping and column "b" is a quantity.  The second table is the detail and is linked to the first table by the grouping, column "a" , in both tables.  I can bring the function module into Crystal Reports, but cannot create a drill down using a pie chart off the summary table.  When I go into the Chart Expert - Data Tab only the Advance button is active and the Group, Cross-Tab, and OLAP buttons are deactivated.  First of all, is it possible to do this using a SAP Function Module, if yes, what am I doing wrong.

    hello Jhess,
    i am not sure if you found an answer for your question yet. if you have a Group and a Summary on your report (i.e. the Sum of your Quantity field) then group charts should be enabled.
    cheers,
    jamie

  • Crystal Report Database Query

    Hi I would like to ask regarding queries from the database. I have 2 main tables that gets their images from 1 master table.
    First is TASK table and Second is ASSET table. Both tables are relational.
    Each Task has Asset connected by Task_Asset_ID.
    But both tasks and each assets may have also images from the Image table thru Assignment table. But I am wondering how could I query the data to show tasks with images and assets with images in one row.
    For example
    Task 1 may have Green.jpg
    Asset 222 may have Red.jpg
    Knowing that Task and Asset are relational, is it possible to show them in one row in crystal report?
    Task
    TaskID
    TaskName
    Task_Asset_ID
    1
    Task1
    111
    2
    Task2
    222
    3
    Task3
    111
    Asset
    AssetID
    AssetName
    111
    Asset1
    222
    Asset2
    Images
    imgID
    ImgName
    1
    Red.jpg
    2
    Yellow.jpg
    3
    Blue.jpg
    4
    Green.jpg
    Assignment
    AssID
    TaskOrAssetID
    ImgID
    Type
    1
    1
    4
    X
    2
    222
    1
    Z
    3
    3
    3
    Z
    4
    111
    2
    X

    Ok, this is going to get a bit complicated, but this is possible.  The problem is that the Assignment table records can have either TaskID or AssetID, so you're going to have to use some tables twice with aliases.
    Here's what I'd do...
    In the Database Expert:
    1.  Add all of the tables to your report.
    2.  Add a second copy of Assignment and Images - when you do this, Crystal will warn you that the table is already in the report and ask if you want to "alias" it.  At that point it will add the table with "_1" at the end of the table name.  So, you'll have Assignment_1 and Images_1.
    3.  On the linking tab, create the following links:
         Task.Task_Asset_ID to Asset.AssetID
         Task.TaskID to Assignment.TaskOrAssetID - make this a left outer join (see below)
         Assignment.ImgID to Images.ImgID - make this a left outer join
         Asset.AssetID to Assignment_1.TaskOrAssetID - make this a left outer join
         Assignment-1.ImgID to Images_1.ImgID - make this a left outer join.
    To make a left outer join, right-click on the join and select "Join Options".  Select "Left Outer" and save the join.  Left outer joins will provide data even when there is no matching value in the table that you're linking to - the values from that table will be null.
    In your report:
    1.  Put the following column headers on the report:
         Task Name
         Task Image
         Asset Name
         Asset Image
    2. Put the following fields in the details of the report:
        {Task.TaskName}
        {Images.ImgName}
        {Asset.AssetName}
        {Images_1.ImgName}
    3. Sort the data by Task Name and Asset Name.
    -Dell

  • Crystal report command query

    Hi expert,
    regarding crystal report query,im still new in crystal report,actually i want to make report join with table opor,por1,opor,oitm,oshp,nnm1,ocrn,por10 and octg.im face difficulty when want to join por10.then i join with por10.docentry = por1.docentry with table por1 and por1.visorder = por10.aftlinenum and im not sure it correct or not.im just want to make condition like this
    if (T1.U_CSUS_Size = '') and (t2.LineType = 'T') then it will show (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp + ' ' + t1.U_CSUS_Size) else (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp) and joining (from POR1 T0 
    INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
    inner join por10 T2 on T0.docentry = T2.docentry and T0.visorder = T2.aftlinenum)
    for 'u_csus_.....' is for udf i created.can i know how easier step for this condition.i also already try alot of query.sometime can make duplicate column.
    regards,
    Arif
    Edited by: Ahmad Arif on Jan 10, 2012 4:03 AM

    Dear Anmad Arif
    Try the below query
    SELECT
                          (CASE WHEN  (T1.U_CSUS_Size = '') and (t2.LineType = 'T') THEN
                    (t0.U_CSUS_ItmCode + ' ' + t0.U_CSUS_ItmDescp + ' ' + t1.U_CSUS_Size)AS NVARCHAR(1000))
                   else T1.[Dscription] End) AS [Description],                      
                    T1.VisOrder,
                    (CASE WHEN T1.[Quantity]<=0 THEN  NULL ELSE T1.[Quantity] END) AS Qty,
                    CAST(ISNULL(T3.UserText, '''') AS VARCHAR(MAX)) As ItemDesc,
                        T1.Currency, T3.SuppCatNum,
                        (CASE WHEN T1.linetotal<=0 THEN NULL ELSE T1.linetotal END)  as amount,
                    (CASE WHEN T1.[price]<=0 THEN NULL ELSE T1.[price] END) AS  Rate,
                    T3.UserText,
                    T0.DocEntry,
                    ISNULL(T1.U_Unit, T3.SalUnitMsr) AS SaleUnit,
                    ISNULL(T3.BuyUnitMsr, '''') AS PurchaseUnit,T1.VisOrder,'' LineSeq,'' aftLineNum,
                    ISNULL(T0.U_QText,'') AS QText,T1.U_QRR as QRR
              FROM     OPOR T0
                    RIGHT OUTER  JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry
                        RIGHT OUTER  JOIN OITM T3 ON T1.ItemCode = T3.ItemCode
                        LEFT OUTER JOIN dbo.OSCN AS T4 ON (T0.CardCode=T4.CardCode AND T1.ItemCode=T4.ItemCode)     
              WHERE   T0.Docnum = '4063'
    UNION ALL
              SELECT  CAST(ISNULL(T1.LineText, '') AS VARCHAR(MAX)) AS [Description],
                    T1.AftLineNum,
                    NULL Qty,
                    null,
                    null ,NULl ,NULL,
                    null Rate,
                    NULL,
                    T0.DocEntry,
                    null,
                    null,T1.OrderNum,T1.LineSeq,AftLineNum,'' AS BPCatlog,
                    null
              FROM     OPOR T0
                    RIGHT OUTER  JOIN POR10 T1 ON T0.DocEntry = T1.DocEntry
              WHERE   T0.Docnum = '4063'
                         And T1.LineText IS NOT NULL 
    Note : Change the DocNum= DocKey When you use Crystal report  As per your requied
    Regards
    Kamlesh

  • Crystal Report-BW Query free characteristics missing

    Hello,
    I am working on a crystal report against BW query, I am using SAP menu to build the report. I see that free characteristics not coming into the crystal report.
    Question1: Is this an issue or is it designed to work this way?
    Question2: As an alternative for this In BW query I have changed all the free characteristics into rows, now I am able to see all the fields but the data is becoming flat, when I try to role up the data for cretain fields it does not work correctly. Example: Role up of Rates (%). With database delegation option in webi role up work fine there but what about in crystal?
    Thanks

    Hi,
    you are most likely using the old driver. make sure in the Settings in the SAP Toolbar you activate the option to use the MDX Driver.
    ingo

  • How to bring Picture from OHEM table into Crystal Report using query

    Hi expert
    i had a query and which is attached to a crystal report, and its working fine,
    the thing what i need is to bring the picture which is stored in OHEM table, (Employee Photo)
    to the report. in the query i had attache the picture field. but not able to see it over the Crystal reprot
    The below given is the query
    select OHEM.empID,isnull(OHEM.firstName,'')+' ' +isnull(OHEM.middleName,'')+ ' '+isnull(OHEM.lastName,'')AS [Employee Name],
    OHPS.name AS [Position],OUDP.Name AS [Department],OUBR.Name AS[Branch],OHEM.U_SponsName,OHEM.U_EMPOLD_ID,OCRY.Name AS [Nationality],
    OHEM.U_JoinDate As [Joining Date (G)],OHEM.U_JoinDateH As [Joining Date (H)],OHEM.birthDate, (CAST(DATEDIFF(day,OHEM.birthDate,GETDATE())/(365) AS int)) As [AGE],(CAST(DATEDIFF(day,OHEM.startDate,GETDATE())/(365) AS int)) As [Year],
    OHEM.startDate As [Emp Contract Start Date (G)],OHEM.U_CEDate As [Emp Contract End Date (G)],OHEM.U_ConType As [Emp Contract Type],
    OHEM.U_ContDur AS [Emp Contrat Duration],OHEM.U_CRDate As [Emp Cont Renewal Date (G)],OHEM.U_IQId AS [Iqama ID],OHEM.U_IQIsDate As [Iq Issue Date (G)],
    OHEM.U_IQExDate As [Iq Expiry Date (G)],OHEM.U_IQIsDateH As [Iq Issue Date (H)],OHEM.U_IQExDateH As [Iq Expiry Date (H)],OHEM.U_InsType As [Insurance Type],
    OHEM.U_InsExpDate AS [Insurance Exp Date],OHEM.U_InsName As [Insurance Company],OHEM.U_DestiCity As [Destination City],
    OHEM.U_TicketType As[Ticket Type],OHEM.U_TicketClass As [ Ticket Class], OHEM.U_TravelDate As [Travel Date],OHEM.passportNo,OHEM.U_PassportIsDate AS [Passport Issue Date],
    OHEM.passportEx AS [Passport Expiry Date],OHEM.U_BSal As [Basic Salary], OHEM.U_HoAllow As [House Allowance],OHEM.U_TrAllow As [Transport Allowance],
    OHEM.U_FoodAllow AS [Food Allowance],OHEM.U_CarAllow AS [Car Allowance],OHEM.U_OthAllow As [Other Allowance],OHEM.U_BonusAllow As [Bonus],
    OHEM.U_VacStartDate1 AS [First Vacation Start Date], OHEM.U_VacEndDate As[ First Vacation End Date],OHEM.U_VacResDate As [First Vacation Resume Date],
    OHEM.U_VacDur AS [First Vacation Duration],OHEM.U_VacStartDate2 As [Second Vacation Start Date],OHEM.U_VacEndtDate2 AS [Second Vacation End Date],
    OHEM.U_VacDur2 As [Second Vacation Duration],OHEM.U_VacResDate2 AS [Second Vacation Resume],OHEM.U_VacStartDate3 AS [Third Vacation Start Date], OHEM.U_VacEndtDate3 As[ Third Vacation End Date],
    OHEM.U_VacRestDate3 As [Third Vacation Resume Date],OHEM.U_VacDur3 AS [Third Vacation Duration],OHEM.U_VacStartDate4 AS [Fourth Vacation Start Date],
    OHEM.U_VacEndDate4 As[ Fourth Vacation End Date],OHEM.U_VacResumeDate As [Fourth Vacation Resume Date],
    OHEM.U_VacDur4 AS [Fourth Vacation Duration],OHEM.U_VisaDuration AS [Visa Duration],OHEM.U_VisaStartDate AS [Visa Start Date],
    OHEM.U_VisaEndDate AS [Visa End Date],OHEM.U_VisaType As [Visa Type],OHEM.picture,OHEM.remark,OHEM.attachment,OHEM.mobile AS [Mobile],OHEM.homeTel AS [Residence Tele],OHEM.email AS [E-Mail] from OHEM
    left outer join OHPS ON OHEM.position=OHPS.posID
    left outer Join OUDP on OHEM.dept=OUDP.Code
    left outer join OUBR on OHEM.branch=OUBR.Code
    left outer join OCRY on OHEM.citizenshp=OCRY.Code
    Pls suggest how to make it appear the photo in the crystal report
    regards

    Hi,
    Please refer this how to guide which may give some idea for creation formula:
    http://www.pioneerb1.com/wp-content/uploads/2012/04/How-to-work-with-Crystal-Reports-8.8.pdf
    Thanks & Regards,
    Nagarajan

  • Custom data labels in Crystal Reports charts

    Hi,
    I have a problem with charts in Crystal Reports. The notation prescribe e.g.  that positive values appears a plus (+21) and negative values a minus (-21).
    The problem is, that I canu2019t assign custom values to the data labels (e.g. the value is 20 but I want to show +20 or 18 or something else).
    Furthermore, its a problem that I can't scaling depending on a formula field. This is required that all charts in the report have the same scale and are dynamically depending on the values in the report.
    I need a solution to both problems, or a workaround.
    Thanks in advance
    Kevin

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Crystal Report chart with VB6 help...

    Hello!....I m using crystal report with visual basic 6.......i develop a report in crystal report in which i add a chart control......when i see preview in crystal report and move mouse over chart then on Tool tip i get each data point shown on mouse movement......
    but when i open this report in VB...and run project and move mouse over it the i only get "CHART"...for whole movement.....how i can get data values for mouse movement in VB6??.....thanks in advance........

    How and Why...
    In Crystal Report Designer the viewer is built into the executable and therefore has direct access to the report objects. The Charting dll is also a third party dll which we have hooks into in CR Designer and can get and pass the required info from the charting dll to the internal viewer. It's all processed on the local PC.
    In code there are limitations as to what the ActiveX and other viewers have access to due to WEB issues. When viewing reports from a WEB app we are passing each page to the browser in a proprietary "picture" format of each page therefore there is no way to capture where the mouse is when it's over a chart object, it is an embedded picture also. Same for non-web applications, it's a limitation of the browsers and viewers mostly.

  • Crystal report license query

    1)      Do Company A (which is a group of companies consisting of Company 1 u2026.. Company N), require the Developer License only, and distribution to its group company  is free?
    2)      If u2018Company 1..Company Nu2019 are sub-companies of Company A then does 'Company 1', u2026.. , 'Company N' require full engine of Crystal Report 2008 or just the run time engine is sufficient?
    Do they require license for the same, even if they just use the run time engine?
    3)      In case where 'Company 1',u2026., 'Company N' purchase a license, in that case, does 'Company A' still needs to purchase the developer license?
    4)      According to you what would be the best license option, so that there is no burden on 'Company 1',u2026.., 'Company N' and also on parent company A?
    Pls advise
    Thanks
    simmy

    These questions are better posed to the sales team; 866-681-3435
    To start with, the licensing is different for web apps and win apps. Also licensing is different depending on what version of CR you are using. I'll set you up with a few resources and if these do not answer your questions, you will have to contact sales for more info.
    For CR 2008 see the following:
    http://www.sap.com/solutions/sapbusinessobjects/sme/reporting/crystalreports/licensing/index.epx
    /people/blair.wheadon/blog/2009/02/05/announcing-crystal-reports-developer-advantage-runtime-license
    https://ecohub.sdn.sap.com/irj/ecohub/solutions/crystalreportsdevadvantage#pricing
    For bundled versions of CR see the following:
    http://support.microsoft.com/kb/317789
    Also, see the following forum thread from Blair Wheadon who is a PM for CR:
    CR 2008 Licensing Question
    Ludek

  • Crystal report design query

    Hello,
    I am using Crystal reports 10 to design a report using an SQL database source.
    There are 2 tables causing problems in that once fields from both of them are added to the detail section, the data is duplicated.  The reason for this is table2 has a field (rulename) which can have multiple outcomes such as the basic example below:
    table1.id,table2.rulename,table2.decision
    1,postcodecheck,accept
    1,secuitycheck,notchecked
    1,creditcheck,notchecked
    2,postcodecheck,accept
    2,secuitycheck,accept
    3,creditcheck,accept
    3,postcodecheck,accept
    3,secuitycheck,decline
    3,creditcheck,notchecked
    If I group the report by table1.ID it removes the duplicated records but only displays one of the 'rulename', usually accepts.   A record sort of this field either retain the same result or replaces it with any table2.decision outcome of 'notchecked'.  A more lengthy task would be to create formula fields for each rulename but having quite a few of this means its a very manual job.
    Is there a better way to do this?  I have not used the select expert because I want to display all decisions (table2.decisions).
    Also if I create a crosstab report, each record is counted by the number of rulenames per ID, again duplicating each record (table1.id)
    Thanks,WA

    Hi Wasim,
    Just try to check whether u have used proper link or not.
    Database Expert->Link.
    Regards,
    Misra P.

Maybe you are looking for

  • Sony BRAVIA KDLV32XBR2 and mini

    does anyone know if Sony BRAVIA KDLV32XBR2 will work with mini? i have a philips lcd tv, but it's haveing some problem to desplay color. the only good thing about the philips is i could connect both mini and g4 to it (hdmi and vga)and use the remote

  • OBIEE 11.1.1.5 VirtualBox Image....

    Hi, I've downloaded the VirtualBox Image for OBIEE 11.1.1.5 - Sample Applications v107. I have Windows 7 64 bit in one partition and Windows Server 2008 Standard Edition in another partition. 1. Which OS is good for installing this VirtulalBox Image?

  • BPM Monitoring/Troubleshooting

    Is there a way to monitor / troubleshoot a completed BPM process and understand thru which steps or branch did the process flow happen? In Manage Processes: Process Instances -> When one clicks on the Show Process Flow button, the graphical process v

  • Is there a FAQ module in Muse CS6?

    Hi, I am looking for a FAQ module that I can use in Adobe Muse? Is there something like that or can I only apply it after I published my site on Business Catalyst? Thank You

  • VTrak E/J-Class for OS X Max Capacity

    Hi all Recently I cam to own a "VTrak E-Class for OS X". What is the maximum HDD size I can use on it? The web-site is not clear about it. The only information I could find is the maximum number of bays (HHDs) I can have attached to it (using a Class