We help IT Professionals succeed at work.
Get Started

Calculating Day of the week - Cognos 10.2

Last Modified: 2015-10-08
Hello Experts,

I am a newbie to Cognos. I am using Cognos version 10.2.

I have a column named "Transaction_Date" in my data, using this i am trying to calculate "Day of the week"( i.e 1 is the first day of the week as indicated by the second parameter (1 to 7, 1 being Monday and 7 being Sunday).

I used the below mentioned syntax to get the results:

_day_of_week ([Time Metrics].[Transaction Date]],1)

But I am getting an error message as mentioned below:

Parsing error before or near position: 52 of: "_day_of_week ([Time Metrics].[Transaction Date]],1)"

I am clueless how to proceed further, since the syntax seems okay...

It would of great help if any one can help me to get the results.

Looking forward for the positive response!

Watch Question
Top Expert 2016
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE