on 07-09-2010 8:06 PM
Apologies as it has been a long week..
I have a metric that is to be sourced from two tables and can;t seem to get it to parse...
Case
WHEN Tbl1.dim = 'A'
THEN sum(tbl2.cnt)
where tbl1.obja = tbl2.obja
ELSE 0
END
Tried case and decode... ugh
Hi,
You CASE statement is missing a THEN operator.
You wrote:
Case
WHEN Tbl1.dim = 'A'
THEN sum(tbl2.cnt)
where tbl1.obja = tbl2.obja
ELSE 0
END
The right syntax will look like:
Case
WHEN Tbl1.dim = 'A' THEN sum(tbl2.cnt)
where tbl1.obja = tbl2.obja THEN ...write your expression...
ELSE 0
END
Regards
Didier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael, what is the error message? Is there any join between these 2 tables?
-
If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.