Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Relative Date

    Posted Fri May 10, 2024 09:49 AM

    Hi 

    I am looking to create a report that compares sales figures based on a selected calendar period. I have developed a sales model using relative dates, but I am facing difficulties in meeting the following requirements. For instance, if the current month is April,

    I want to compare my sales figures with the same month of the previous year (which can be done using Relative Date Calendar).

    Additionally, I want to compare the current year's sales figures (sum of sales from January to April) with the same period of the previous year.

    These selection is dynamic and based on the calendar date selection.

    Can anyone help me with how I can achieve the second scenario using Relative Calendar?

    Thank you

    Thank you 



    ------------------------------
    Anil Mendis
    ------------------------------



  • 2.  RE: Relative Date

    Posted Mon May 13, 2024 05:52 AM

    I am looking to create a report that compares sales figures based on a selected calendar period. I have developed a sales model using relative dates, but I am facing difficulties in meeting the following requirements. For instance, if the current month is April,

    I want to compare my sales figures with the same month of the previous year (which can be done using Relative Date Calendar). 

    Additionally, I want to compare the current year's sales figures (sum of sales from January to April) with the same period of the previous year.

    These selection is dynamic and based on the calendar date selection. 

    Can anyone help me with how I can achieve the second scenario using Relative Calendar

     

     

    1. Set relative period to April (_as_of_date global parameter)
    2. Using YTD and Prior YTD for your kpi

     

    Une image contenant texte, capture d'écran, Police, nombre  Description générée automatiquement

     

    Cordialement

     

     

    Jean-Philippe Violet

    Client Technical Professional for BI & DataViz

    Cognos Analytics Solution

    Mobile : +33 (0)6 12 37 68 03

    Email : jean-philippe.violet@fr.ibm.com

     

     

    Unless otherwise stated above:

    Compagnie IBM France
    Siège Social : 17, avenue de l'Europe, 92275 Bois-Colombes Cedex
    RCS Nanterre 552 118 465
    Forme Sociale : S.A.S.
    Capital Social : 664 069 390,60 €
    SIRET : 552 118 465 03644 - Code NAF 6203Z





  • 3.  RE: Relative Date

    Posted Mon May 13, 2024 11:11 AM

    Hi Jean Phillipe,

     

    Have a look at this article: https://pmsquare.com/analytics-blog/2020/1/10/creating-custom-calendars-in-cognos-analytics-111.

     

    It will assist you to create new relative time periods and even whole new calendars.

     

    In this case it looks as if it will not be necessary to create a new calendar, but only to add a new filter to the Gregorian Calendar Data Module.

     

    Regards,

     

    Adriaan

     






  • 4.  RE: Relative Date

    Posted Mon May 13, 2024 04:50 PM

    Hi Adrian,

    This is good article to create Custom Calendar.

    Thank you

    Anil Mendis 



    ------------------------------
    Anil Mendis
    ------------------------------



  • 5.  RE: Relative Date

    Posted Mon May 13, 2024 04:49 PM

    Hi Jean,

    Thanks for your reply. It helped me to achieve my requirement.

    Thank you

    Anil Mendis



    ------------------------------
    Anil Mendis
    ------------------------------