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] :
Quote:
|
Right([Measures].[Codigo Data Venc Titulo],2) + "/" +
|
Mid([Measures].[Codigo Data Venc Titulo], 5, 2) + "/" +
Left([Measures].[Codigo Data Venc Titulo],4)
[Measures].[Text2] :
Quote:
|
iif(IsEmpty([Measures].[Codigo Data Venc Titulo]),
|
NULL, [Measures].[Text1])
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***