Home > SQL Analysis Services > LastNonEmpty on SSAS 2005 Standard

LastNonEmpty on SSAS 2005 Standard

 

     Method 1:

     CASE WHEN NOT IsEmpty([Measures].[MeasurePutToColumn])
          THEN
[Measures].[MeasurePutToColumn]
          ELSE [Time].[Calendar].PrevMember

     END

     Method 2:

     IIF(  NOT IsEmpty([Measures].[MeasurePutToColumn])
          ,
[Measures].[MeasurePutToColumn]
          ,[Time].[Calendar].PrevMember

        )

 

Advertisements
Categories: SQL Analysis Services
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: