Custom Report producing inconsistent data columns

Hello,
    I'm trying to create a detailed user report and it's not displaying properly.  The code is as follows:
SELECT v_GS_COMPUTER_SYSTEM.Name0 as 'Computer Name','Chassis'=CASE
WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('3') THEN 'Desktop'
WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('10') THEN 'Laptop'
WHEN v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 in ('1') THEN 'Virtual'
ELSE 'Unknown' END,
vru.User_Name0 as 'User Name', vru.Full_User_Name0 as 'Full Name', vru.department0 as 'Department',
vru.employeeNumber0 'Employee ID', vru.title0 as 'Job Title', vru.manager0 as 'Manager', vru.l0 as
'Location', vru.streetaddress0 as 'Street Address', vru.telephonenumber0 as 'Telephone Number',
vru.lastlogon0 as 'Last Logon Time'
FROM v_R_User vru
FULL JOIN v_R_System vrs ON vru.ResourceID = vrs.ResourceID
LEFT JOIN v_GS_COMPUTER_SYSTEM ON vrs.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID
LEFT JOIN v_GS_SYSTEM_ENCLOSURE ON v_GS_COMPUTER_SYSTEM.ResourceID = v_GS_SYSTEM_ENCLOSURE.ResourceID
ORDER BY v_GS_COMPUTER_SYSTEM.Name0
I suspect my joins are not quite right.  Here is a small snippet of the output.  I cut out large sections to give an idea of how it's jumping around with the output.

Your problem is you full join. User and computer does NOT join on
vru.ResourceID = vrs.ResourceID
They can only be joined by logon user details.  The catch is there are 4 different place to gather this info. Which one are you going to use?
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ

Similar Messages

  • Custom Report return no data

    Hi,
    i have a custom report, when i choose to log in the application with Arabic language and run the report it return no data, while it return data when i log with English language  ,
    i have English as basic lang and Arabic as installed lang and i am using R 12 .
    any help, many thanks.

    In Report Attributes tab, under Messages, you will see a section named "When No Data Found Message". In it, I added this javascript code. When no data was found, the javascript worked, and popped up a message box. You can replace the alert code below with a call to your javascript function.
    <script language="javascript">
    alert("no data found");
    </script>
    There is another way. In the Region Definition tab, there is a section called "Region Footer". In it, add this javascript:
    <script language="javascript">
    var i = #TOTAL_ROWS#;
    alert(i);
    </script>
    When variable i is zero, then you know that no data was returned.
    Hope this helps.
    Ravi

  • UCCX 10 CUIC Custom Report (using external data source)

    Hi.
    We have a customer where we are storing information in an external data source. We would like to built a report and import that report into their UCCX CUIC System in order for the customer to have the new report along side with the UCCX built-in reports. We need to add the external data source to CUIC but I'm not sure if the strip CUIC version of UCCX can allow that. Is that possible?
    I know that with CUIC Premium we can add third party data sources into the CUIC. The Premium CUIC NFR allows that and we can create the report but for it to work in UCCX we need to add the external data source to CUIC.
    What are my options? If any?
    Thanks in advanced,
    -Jose

    Hi Jose,
    You can basically build custom reports on a standalone CUIC server and import them to the CUIC on UCCX.
    But I am not sure if this datasource is continuously polling information from the DB and giving it to the report and if this is possible.
    Please refer to the link below for creating the custom reports on CUIC in UCCX:
    https://communities.cisco.com/docs/DOC-31936
    Regards,
    Arundeep

  • How to provide formulae for the columns in report based on date column

    Hi,
    How can we provide formulae for the columns in report, where each column is based on another Date Column.
    Can anyone suggest on this.
    Thanks

    Hi Manu,
    I think you a logical column X on which you created another Logical Column Y.
    Now you want 'Y' to be filtered based on Date Column.
    1. If, my assumption is right - You can do your requirement i.e. Filtering the logical col. 'Y' on Reports.
    Else,
    2. See - Your Logical column 'Y' While creating log. column 'Y' make sure you use any expression builder to filter across Date column. (i.e. using any case statements or where clause).
    Else,
    3. Make sure your First Logical column comes from Table by default (i.e. Create the same col. in d/b so it would be your Physic col. )
    Thank you.
    Edited by: GRK on Jan 28, 2013 7:48 AM

  • Custom report producing headers only

    Hello,
         I'm still relatively new to SQL coding.  I'm fairly certain my joins are where the problem lies.  Can anyone please scan my code and tell me why it's coming out blank?  I would appreciate it.
    SELECT DISTINCT v_R_System.User_Name0, v_R_System.Name0, v_R_User.Department0, v_R_User.EmployeeNumber0, v_R_User.Title0, v_R_User.Manager0,
    v_R_System.location0, v_GS_COMPUTER_SYSTEM.SystemType0, v_R_System.Hardware_ID0, v_R_System.Netbios_Name0, v_R_System.LastLogon0
    FROM v_R_System
    INNER JOIN v_R_User on v_R_User.ResourceID = v_R_System.ResourceID
    LEFT JOIN v_GS_COMPUTER_SYSTEM on v_GS_COMPUTER_SYSTEM.ResourceID = v_R_User.ResourceID
    WHERE v_R_System.ResourceID = v_R_User.ResourceID
    ORDER BY v_R_System.User_Name0

    SELECT DISTINCT vrs.User_Name0, vrs.Name0, vru.Department0, vru.EmployeeNumber0, vru.Title0, vru.Manager0, vrs.location0, v_GS_COMPUTER_SYSTEM.SystemType0, vrs.Hardware_ID0, vrs.Netbios_Name0, vrs.LastLogon0
    FROM v_R_System vrs
    INNER JOIN v_R_User vru
    ON vrs.ResourceID = vru.ResourceID
    LEFT JOIN v_GS_COMPUTER_SYSTEM vgcs
    ON vru.ResourceID = vgcs.ResourceID
    ORDER BY vrs.User_Name0
    With out some example data to work with, it'll be shots in the dark as to why you're getting no rows.
    However, there is a lesson in ALIASing available here. See how I added shortnames to your tables? You can then use those short names to reference columns in those tables. This will make your code shorter, and easier to read.
    Your where was redundant, as you already had the condition in your join. It's also good practice to keep the column your joining FROM on the left, and the column your joining TO on the right. 

  • Custom report missing proper data

    I've written a custom purchasing report but we just encountered a problem. For any item which hasn't been sold yet, the price and cost don't appear in the report.
    SELECT
    T0.ItemCode, T0.ItemName, T0.U_SES_PageNo, T0.OnHand, T0.IsCommited, T0.OnOrder,
    (SELECT Price FROM ITM1 WHERE ItemCode = T1.ItemCode AND PriceList = 1) [UnitPrice],
    (SELECT Price FROM ITM1 WHERE ItemCode = T1.ItemCode AND PriceList = 2) [UnitCost],
    UTQ = case when datepart(qq,OINV.DocDate) = 04
                 and datepart(yyyy,OINV.DocDate)=datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UPQ = case when datepart(qq,OINV.DocDate) = 03
                 and datepart(yyyy,OINV.DocDate)=datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UTY = case when datepart(yyyy,OINV.DocDate) = datepart(yyyy,GetDate())
           then INV1.Quantity else 0 end,
    UPY = case when datepart(yyyy,OINV.DocDate) = datepart(yyyy,GetDate())-1
           then INV1.Quantity else 0 end
      INTO ##TEMP
      FROM OINV
    INNER JOIN INV1
        ON OINV.DocEntry = INV1.DocEntry
    FULL JOIN OITM T0
        ON INV1.ItemCode = T0.ItemCode
    FULL JOIN ITM1 T1
        ON INV1.ItemCode = T1.ItemCode
    WHERE T0.CardCode = '[%0]'
    ORDER BY T0.ItemCode
    SELECT
    ItemCode AS 'Item Code',
    ItemName AS 'Description',
    U_SES_PageNo AS 'Page Number',
    CAST(OnHand AS INT) AS 'On Hand',
    CAST(IsCommited AS INT) AS 'Committed',
    CAST(OnOrder AS INT) AS 'On Order',
    CAST(SUM(UTQ)/10 AS INT) AS 'Units 4th Qtr',
    CAST(SUM(UPQ)/10 AS INT) AS 'Units 3rd Qtr',
    CAST(SUM(UTY)/10 AS INT) AS 'Units This Year',
    CAST(SUM(UPY)/10 AS INT) AS 'Units Prior Year',
    UnitCost AS 'Cost',
    UnitPrice AS 'Price'
    FROM ##TEMP
       GROUP BY ItemCode, ItemName, U_SES_PageNo, OnHand, IsCommited, OnOrder, UnitCost, UnitPrice
       ORDER BY ItemCode
    DROP TABLE ##TEMP
    What am I missing to make the report display the Price and Cost for an item which hasn't appeared on an invoice?

    I am wondering if maybe we haven't lost the scope of this problem.
    I am unable to get any of the code examples you provided working. I am unclear on which parts of my code I should be using and which parts of your code I should be using.
    We seem to be going over the problems with linking tables that "aren't linked" but in the first example I posted they are linked.
    Everything works fine except that price and cost do not display on certain items. The rest of the information exists, is linked, and working.
    This is the code I am currently using which results in the error: The multi-part identifier "OINV.DocDate" could not be bound.
    Again, the problem is that for any item which we haven't sold (the item has not appeared on an AR Invoice, that is how we are calculating "units sold" numbers), the Price and Cost do not appear. The item is listed in the report but the price and cost do not show. I am thinking this is because a price and cost do not exist on the AR Invoice Rows table.
    So the question is: How do we properly join the Items table to display cost and price using Item table and not Invoice table.
    All of the information from the Invoice table still needs to be there, and it is displaying fine. We just need a way to display price and cost based on the Items table and not the Invoice table.
    Edited by: Steve Blake on Nov 17, 2009 12:33 PM
    Edited by: Steve Blake on Nov 17, 2009 12:34 PM
    Edited by: Steve Blake on Nov 17, 2009 12:35 PM
    Edited by: Steve Blake on Nov 17, 2009 12:36 PM
    Edited by: Steve Blake on Nov 17, 2009 12:37 PM
    Edited by: Steve Blake on Nov 17, 2009 12:40 PM - Not sure why formatting won't work with the code in post

  • Customized report based on data from 2 different infoproviders.

    Hi Team,
    The scenario is as follows:
    We have an Datasource based on a ECC Table which contains data based on FISCAL YEAR and no period field such as X03, X06 & X09. these values are populated in INFOCUBE A. Also note that the ECC table itself does not contain any field which refers to Period.
    In my another INFOCUBE B, I have the value for the Period (ZZPERIOD) field on a Quaterly basis.
    Now the report requirement is:
    For the input value of ZZPERIOD = 201103, display value X03.
    similarly for X06 and X09.
    PLEASE ADVICE.
    Thanks & Regards
    Sneha

    I'm not sure you've understood my reply. Do you understand the notion of granularity? If not please read about this and understand it. Then you will have the answer you need.
    I'm assuming you have KFs in both cubes right? Now if Cube A is aggregated by Year - you cannot split these figures by anything other than Year.
    Just because you want to add other key figures from another cube (B) whose values sit at Cal Quarter does not mean that any coded rules you apply will result in correct figures when you drill down to Quarter. How do you propose to fix that? Answer: you can't, it's impossible without getting yourself in a lot of trouble with the business/your client.
    Your best bet is to add a characteristic into Cube A called 'Source of Data' and fill that in your transformations. Then you can load both data from A and B into the same cube A. When reporting, just use a restricted KF to pull out the values you want.
    If you drill down by Quarter of course Cube A KFs will be "not assigned" for the simple reasons I explained above.

  • Can't see HTML and Custom text format under data format tab in obiee.

    Hi,
    I want to add a java script to my report but I can't see HTML/Custom text format option under Data Format Tab--->"Treat Text as" menu.
    My report is a union report.
    For data column and numeric columns i can see custom option available but for text columns it is not visisble.
    Any idea why it is not showing and what should be done here.
    Any pointers are welcome.
    Please help,it is really urgent.
    Thank in advance!
    Edited by: 810008 on May 18, 2011 10:03 PM

    Hi,
    Select text column (varchar column) -> Treat Text as -> custom text format ->Remove @ (default) -> add [html]<script>sometext(‘@’)</script> followed by your javascript
    for eg:
    [html]<script>buildGoogleChart(‘@’)</script> <head> <script type="text/javascript"> function show_alert() { alert("Hello! I am an alert box!"); } </script> </head> <body> <input type="button" onclick="show_alert()" value="Show alert box" /> </body> </html>
    hope helps u.........
    cheers,
    Aravind

  • Date Column Defaulting to 12:00 AM When It Shouldn't

    I have a column called 'Archive Date'. All it is is a date field with a timestamp in the format dd/mon/yy HH:MI AM. When I added the table with this Archive Date column to my business area it looks fine. If I look at a list of values in today's date range, I see: (17-Nov-09 10:15 AM), (17-Nov-09 10:18 AM) and (17-Nov-09 10:23 AM). All still looks fine.
    But, when I create a report, the Archive Date column for all records from November 17th looks like this: (17-Nov-09 12:00 AM). Regardless of whether the list of values shows it should be 10:15, 10:18 or 10:23, they all show 17-Nov-09 *12:00 AM* in the report. It makes me think the report can't see the 3 distinct times and it's just plugging in 12:00 AM because it doesn't see a value. But, why would that be if the business area can see all 3 distinct times? Discoverer can even see the 3 times when I'm editing the workbook. It sees 17-Nov-09 10:15, 10:18 and 10:23 when I'm looking at the list of values from Edit Worksheet. But, when the report is run, it only shows 12:00 AM (which isn't even an option).
    Any ideas as to what's going on with this date column?
    Thanks!

    That didn't work either. I'm still getting the wrong timestamp.
    But, I did try something else, with more unexpected results. Just for the heck of it, I exported my workbook to excel (the workbook showing the 12:00 AM timestamps). When I opened the Excel file, it has the Archive Date with the correct times. Very strange. I export the workbook with all 17-NOV-09 12:00 AM timestamps in every Archive Date row, and in Excel it opens with the correct dates (17-NOV-09 10:15, 10:18 and 10:23 AM). So weird.
    That seems to reinforce that Discoverer can at least see the dates as they exist in the data warehouse, but for some reason, it insists on displaying 12:00 AM. And exporting the 12:00 AM results to Excel actually produces the correct times. Is this like some Java bug or something? I seem to get bit by Java problems more often than not.
    ***EDIT***
    I shouldn't say your suggestion didn't work entirely. It worked in that I am no longer getting 17-NOV-09 12:00 AM. But, it's returning a timestamp that does not exist for the given record. For example, all 3 Nov 17th timestamps (in the Discoverer report) are now showing 17-NOV-09 10:11 AM. 10:11 AM isn't even a timestamp available in the database for any record in the table. Why did it arbitrarily pick 10:11? It seems like your suggestion to create a TO_CHAR calculation from the column is on the right track, but the 10:11 AM thing is odd.
    Edited by: user527082 on Nov 17, 2009 4:29 PM

  • SSRS Report is missing data when exported to Excel via a subscription

    I have an SSRS report on a daily subscription that creates an Excel attachment and emails it  to a number of users. Some of the users are reporting that they cannot see all
    of the data in the Excel attachment.
    The report has a date column and 6 numeric columns, and the affected users cannot see the numerical columns - the fields are empty. The date column is displaying
    correctly along with all of the column headers.
    If however I change the format to XHTML, all data is displayed for all users.
    What's weird is that it is not affecting all users - for the affected users, the file size of the attachment is considerably smaller so it doesn't look like the
    issue is with their PC's - the data is not there to begin with.
    I've tried setting the DataElementOutput property on each of the fields to Output but no luck.
    I am using SQL Server 2008R2.

    Hi Wolfmeister,
    Glad to heard that the issue had been solved and thanks for your sharing.
    It will be very beneficial for other community members who have similar questions.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Style PDF Customer Report

    Hi there,
    I was wondering if there was a way to style the PDF export of the customer report. Right now, columns run into each other and the last column is cut off - an issue that could be alleviated by reducing font size/styling appropriately.
    Is there an easy method to generate a nice-looking report for printing?

    Thanks, Liam.
    Do you mean you can't?
    The report is pretty useless as it is - illegible and difficult to use.

  • RESCIS - Unable to select custom report from Selection Screen

    Hi all,
    we have developed a custom report for transaction "RESCIS-Evaluation of service charge settlement" but we have found that althought the report appears in selection screen field called "REPORT" it throws message RESCIS003 but the report is not shown.
    If we doesn't fulfill report field in selection screen, the program shows a second screen where a couple of ALVGrids are shown allowing the user to select the report that will be displayed. Here we are able to select our custom report and the data in it is displayed.
    We have analyzed the standard program that is executed via transaction RESCIS and we've found that the selection screen executes standard function RESC_GUI_ANYREPORTS_APPL that doesn't executes reports dinamically but statically. That means that SAP doesn't allows to execute custom reports directly from selection screen.
    I think this is a SAP error but afert opening an OSS message SAP sais that is not an error but a bad configuration or lack of knowledge for customizing it.
    Has anyone developed a custom report for RESCIS transaction?

    Hm what exactly did you want to change? Normally it is in REFX cases you should not copy standard REPORTS. In your case with transaction RESCIS, I myself do not see any need to add any functionality in this report because it is only a sum of all lists from your service charge settlement. What else do you want to see there?
    For displaying new fields in the separate lists maybe there is some BADI for it.
    Regards
    Michael

  • How to create custom reports.

    Hi ,
    Could you please let us know how to create custom reports which are data based and not analytics. Which is the best method , is it to devlop reports in sites or integrate with OBIEE reports. could you please let us know the best practices for this approach.
    Thank you,
    Sashank P.

    Hi Jiri ,
    Thanks a lot for your support. Below are my answers for the request:
    1) what data you want to report on? Is it data from a database? file system? Web service outputs?
    Ans : The Data would be mostly from Database only.
    2) what is the overall purpose of your solution?
    Ans: The overall purpose of this solution is to generate reports with sorting capability and should be able to export in different format documents.
    3) what is your architecture?
    Ans :
    4) why Sites?
    Ans: The customers login into our site and can be able to view the different reports and the present site is already a webcenter site. and the reporting capability is an enhancement .
    Can you please provide the right approach here. We have an option of using ADF or even we can use Webcenter Portals. So which would be the best approach to go. And can you please guide us any approach or examples for integrating Webcenter Portals and Sites and even integrating ADf with Sites.
    Thank you,
    Sashank P.

  • Adjusting Columns of a custom Report in Web UI

    Hello All,
    A custom report is displayed in Web UI using transaction launcher. However when we try to adjust the columns of the report, the column colapses and we are not more able to view the data in it.
    Did anyone faced a similar issue ? Could you pls help me fixing this issue ?

    I checked it with Firebug in Firefox. There I could see that no "XMLHttpRequest" were made, but standard requests.
    The solution was that someone messed up the technical profile and set "Disable automatic delta handling". Just have a look at your technical profile in SPRO.
    You can still enable/disable it on view basis though. Check tables BSPWD_ADH_DSBL for SAP and BSPWD_ADH_DSBLC for customer settings.
    cheers Carsten

  • Not able to save date column with custom date format. in OBIEE 11g

    Hi,
    I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
    But when I use this custom format and try to save the report in 11g its giving this below error.
    ''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
    You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
    This HTML might be present in column headings, table headings, text views, narrative views, the print header,
    or the print footer and must be removed before saving.''
    Please let me know what changes I need to do for this.
    Regards,
    Ambika Nanda.

    Hi ,
    privilage issues...check the security settings once..
    Thanks,
    Ananth

Maybe you are looking for