Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Data Modules and Relative Time

    Posted Thu May 14, 2020 10:26 AM

    Hey all,  I am currently starting to evaluate heading towards developing Data Modules.  In 11.1.5 I am currently building a Data Module and using the Relative Time feature.  I have used it against a few measures and it's great because it does all the YTD, CY, PY, measures quickly.

    What I have noticed though is on the Current Year measure, I get an error:

    XQE-PLN-0095 A null value cannot be used with the comparison operator 'LessThan'.

    I'm not sure how to resolve this, or where I can fix this.  The relative time is a look up so when the measures are generated they can't be modified.  And it appears I can't just remove it.

    Any help on this would be much appreciated.

    Thanks!



    ------------------------------
    Jeff Jones
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Data Modules and Relative Time

    Posted Thu May 14, 2020 05:11 PM

    Could you provide more context about where you encountered the problem please.

    Where do you get this error?
    Is this in a filter expression?

    Obviously I've moved on to testing primarily in the stream which is currently under development but I did not encounter problems similar to what you report

    I've attempted some tests in R5 just now but was not able to trigger an error

    For example ,this filter works.
    SLS_SALES_FACT.QUANTITY.Current_Year in_range {:20}

    I tried that because there was a bug logged which mentions the xqe error, and it used that operator, that you mention but it was closed as not being reproducible.



    ------------------------------
    IAN HENDERSON
    ------------------------------



  • 3.  RE: Data Modules and Relative Time

    Posted Fri May 15, 2020 08:59 AM
    Sure, so I get this error when creating a report from the data module. It is one of the automatically generated measures when linking the fact table to the relative time table.  What is interesting is the YTD measure works just fine.I've looked at the expressions these are built off of and I don't see any 'LessThan' being used.  I'll need to do some more digging on my end, see if I can spot the issue.  If I could hide it from users, I would, but those automatically generated measures do not allow me to do that.


    Automatically generated measures from relative time


    ------------------------------
    Jeff Jones
    ------------------------------



  • 4.  RE: Data Modules and Relative Time

    Posted Fri May 15, 2020 02:06 PM
    Edited by System Admin Fri January 20, 2023 04:20 PM

    I created a new cm data base for my 11.1.5 server, imported the samples deployment, and imported a deployment which contains some of my test modules, which use relative time.

    I created a report and dashboard for a module and used current year. I did not get an error.

    I took one of the sample modules, banking events, and imported the Gregorian calendar and set up relative time for all the measures.

    I created a report and dashboard for this module and used current year.  I did not get an error.

    I even put my measures into a folder for the sample module. (Funnily enough they are in a folder in my test module).

    This would suggest that your report is slightly more complex and, somewhere in that extra complexity, something is generating the problem you see.

    dashboard


    report


    ------------------------------
    IAN HENDERSON
    ------------------------------



  • 5.  RE: Data Modules and Relative Time

    Posted Fri May 15, 2020 06:46 PM
    Awesome!  Unfortunately, mine was just pulling only that one in, but I think you're right, there must be something else going on.  I did create a Fiscal Calendar using the provided sample report, because we're on a slightly different fiscal year.  Perhaps that might be causing an issue.  It was pretty easy to do, but I'll check that. 

    Thanks for your help!

    ------------------------------
    Jeff Jones
    ------------------------------