Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Cognos Analytics v11.2.1: ParamDisplayValue is seen as an unknown function.

    Posted Tue May 03, 2022 04:28 AM
    Hi,

    I'm creating a report with a prompt page using a value prompt with the following values:

    In my report page, Page1, I am able to get the correct result with report expressions:
    ParamDisplayValue('pPeriod') and ParamValue('pPeriod')

    When I try to use ParamDisplayValue in a filter, I receive the following error message:
    XQE-GEN-0032 The function 'ParamDisplayValue' is an unknown function.
    Text to expand:
    [Month key] = #ParamDisplayValue('pPeriod')#

    Using [Month key] = #ParamValue('pPeriod')# is irrelevant, but it does not throw any error such as unknown function.

    Any idea?

    Best regards,



    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Cognos Analytics v11.2.1: ParamDisplayValue is seen as an unknown function.

    Posted Tue May 03, 2022 04:57 AM

    You probably just need your filter to be:

    [Month key] = ?pPeriod?



    ------------------------------
    Chris Turner
    ------------------------------



  • 3.  RE: Cognos Analytics v11.2.1: ParamDisplayValue is seen as an unknown function.

    Posted Tue May 03, 2022 05:07 AM
    Hi Chris,

    I really need to use ParamDisplayValue in this case.

    Best regards,



    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------



  • 4.  RE: Cognos Analytics v11.2.1: ParamDisplayValue is seen as an unknown function.
    Best Answer

    Posted Wed May 04, 2022 04:07 AM
    Hi Patrick, 

    ParamDisplayValue works only in the layout and not queries. For queries you have to use ParamValue method. In your case though, you can change the prompt to use Month Key as the useValue and then use ?pPeriod? or ParamValue('pPeriod') in query filter. 

    Regards
    Kiran

    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------



  • 5.  RE: Cognos Analytics v11.2.1: ParamDisplayValue is seen as an unknown function.

    Posted Wed May 04, 2022 09:45 AM
    Hi Kiran,

    Thank you for the clarification. I was sure it was also available in the query, so my mistake!

    Thank you also Jean-Philippe.

    Best regards,

    ------------------------------
    Patrick Neveu
    Positive Thinking Company
    ------------------------------