Re: iif() problem
- From: Deepak Puri <deepak_puri@xxxxxxxxxxxxxxx>
- Date: Wed, 20 Apr 2005 14:42:26 -0700
There is a well-known issue when combining a string with NULL in iif(),
which you may be encountering. Using a second measure to "hide" the text
may work, like:
[Measures].[Text1] :
>>
Right([Measures].[Codigo Data Venc Titulo],2) + "/" +
Mid([Measures].[Codigo Data Venc Titulo], 5, 2) + "/" +
Left([Measures].[Codigo Data Venc Titulo],4)
>>
[Measures].[Text2] :
>>
iif(IsEmpty([Measures].[Codigo Data Venc Titulo]),
NULL, [Measures].[Text1])
>>
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***
.
- References:
- iif() problem
- From: Cristiano Moraes da Silva
- iif() problem
- Prev by Date: calculated member for a dimenstion
- Next by Date: Date format problem in OLAP
- Previous by thread: iif() problem
- Next by thread: metadatascripter doesn't install on W2003
- Index(es):
Relevant Pages
|