Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  Report is not providing accurate data

    Posted 07/08/20 12:54 PM

    Creating a report where I need to provide the total time (units) and amount (rates) a Timekeeper (TK) is spending on an Invoice. 

    In the invoice each Timekeeper is associated with a Line Item. I.e., TK 1 is associated with Line Items, 3, 6, 10.

    While the report is pulling in the correct time (units) and Line Items. The report is applying the Line Items to all TKs that are in said invoice. 

    As an example, the below shows which Line Items should go to said TK:
    TK 1 is associated with Line Items, 3, 6, 10;
    TK 2 is associated with Line Items 2, 15, 5;
    TK 3 is associated with Line Items 1, 4, 8. etc

    But the report is giving each TK all of the line items. so the report is providing a row for each Line Item for the TK which results in the following:
    TK 1 is associated with Line Items,1,2,3,4,5,6,8,10, 15.
    TK 2 is associated with Line Items,1,2,3,4,5,6,8,10,15.
    TK 3 is associated with Line Items,1,2,3,4,5,6,8,10,15.

    Which defeats the purpose of the report.

    My ask is how do I correlate the TK with the correct Line Item? 

    I have used a cross join already. Still the same result. Is there an SQL Statement I should use or Query Calculation with SQL Statement to make this work?

    I need the report to show me only the line items associated with said TK.

    Thank you in advance.

    ------------------------------
    Wesley Fornero
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Report is not providing accurate data

    Posted 07/08/20 01:21 PM

    Hi Wesley,
    What does the data model look like for this data?
    Is there ever a chance that multiple TimeKeepers would work on the same line item ?

    // Henk



    ------------------------------
    HENK CAZEMIER
    ------------------------------



  • 3.  RE: Report is not providing accurate data

    Posted 07/09/20 03:31 PM
    Hi Wesley,
    You definitely have a data model issue - a cross join is not the solution.  As Hank mentions, the solution lies in the data model.  You can verify this by viewing the generated SQL if this is a Report.


    ------------------------------
    Albert Valdez
    albert@intelalytics.com
    ------------------------------



  • 4.  RE: Report is not providing accurate data

    Posted 07/09/20 04:00 PM

    Thank you guys I will take a look and see what I can do.

     

     

     

     

     

     

     

    This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail, and delete or destroy the message. Thank you.


    P Please consider the environment before printing this email