Skip to Content
author's profile photo Former Member
Former Member

Calculating month,quarter, year

Hi Experts,

I am creating webi report source as universe. Here i am getting week object from universe. I need to create calculate month, quarter, year using week.

Can anyone suggest me how to do.

Thanks

Anusha.P

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 17, 2015 at 08:01 AM

    Hi Anusha,

    ¿You need to derive month, quarter & year from week at the webi level?

    ¿What is your dbms?

    ¿Could you provide examples of those week values?

    Regards,

    Fernando

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2015 at 08:19 AM

    Hi Anusha,


    Are you getting date dimension in your universe?

    If yes then you can use following functions to get month,quarter & year

    Like

    Month = FormatDate([Date];"mmm")

    Quarter = if FormatDate([Date];"MM") inList("04";"05";"06") then "Q1"

    else if FormatDate([Date];"MM") inList("07";"08";"09") then "Q2"

    else if FormatDate([Date];"MM") inList("10";"11";"12") then "Q3"

    else if FormatDate([Date];"MM") inList("01";"02";"03") then "Q4"

    Likeyou can get year by using Year function

    =Year([Date])

    Thanks,

    Swapnil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 20, 2015 at 04:33 AM

    HI Anusha,

    why don't you create a derived table with aggregates like month and year objects are aggregates derived from fact table.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.