If Then Else Query in Cognos 10.0

Hello Experts,

I have data with column  Fiscal Year; Fiscal Week; Fiscal Month; Transaction Date; Order Amount - C$

I used below mentioned syntax to calculate "Day of the Week"

_day_of_week ([Transaction Date],1) ( i got the results 1 for Monday; 2 for Tuesday ........ 7 for Sunday).

Then i used below mentioned syntax to get only Monday's in the new column.

If ([Day]='1') then ('Monday') else (' ') ( Here also i got the results)

Now, I want Amount for only Mondays:

For E.g.:
Order amount  Only Mon Only Mon amount
 $100                                  Monday                   $100
$30                                     Monday                    $30

I tried using the below mentioned syntax to get above mentioned results, But not successful:( (Getting weird reults)

when ([Day]='1')
then ([Order Amount - C$])
else (null)

It would great if anyone can help on this request. Please do let me know if you need any further clarification.

Ganesh VijaykumarAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lcohanDatabase AnalystCommented:
you need to  give a filter on the query where Only Mon <> ' '
Ganesh VijaykumarAuthor Commented:

I am sorry i didn't get you... Could you please help me with the syntax.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ganesh VijaykumarAuthor Commented:
Thanks for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.