Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

SSAS Calculated Measures showing null

$
0
0

I have built a cube in SSAS (BIDS 2010).  I have about 20 calculated measures in my cube.  As of yesterday, everything looked fine, except one of  my measures (budget_hoursnumeric(18,2) ) was off slightly because of rounding.  I added an additional column (budget_hours_longnumeric (35,20)) to my fact table.  I refreshed the data source view.  I then went to my cube, right clicked the "budget scheduled hours" measure (the name of the measure in the cube that associated to the "budget_hours column in my fact table) and chose "edit measure".  I selected as the source column thebudget_hours_long   column as my source and clicked ok.  I processed the cube just fine, but when I went to the browser and dragged all the measures to display, I noticed that about half of my calculated measures showed up as (null). 

I assumed, it was related to changing the source for the budget scheduled hours measure I changed, so naturally I edited the measure and changed the source back to what it was.  I processed the cube, opened the browser, showed the measures, and it still showed (null) for the same calculations. 

What I can't explain is that some of the calculations that don't work, have nothing to do with the column I changed.  I don't remember making any other changes before the measures started showing (null), but don't trust my memory enough to be sure.  Again, These calculations all worked fine up until I made the source change.  Here are some examples of the calculations that work and that are broken (they are pretty straight forward calculations):

CALCULATIONS THAT STILL WORK:

COST Variance Percantage (Not sure why this is blue)


CASE WHEN [Measures].[Budget Performed Costs] = 0 THEN 0
     ELSE ( ([Measures].[Budget Performed Costs] - [Measures].[Actual Costs]) / [Measures].[Budget Performed Costs]
          )
END

SCHEDULE VARIANCE:   [Measures].[Budget Performed Costs] - [Measures].[Budget Scheduled Costs]

CALCULATIONS THAT DONT WORK

SCHEDULE Variance YTD:      [Measures].[Budget Performed Costs YTD] - [Measures].[Budget Scheduled Costs YTD]

Actual Costs YTD

sum(

   PeriodsToDate

      (

        [Fiscal Period Week].[Fiscal Year - Period - Week Hierarchy].[Fiscal Year],

        [Fiscal Period Week].[Fiscal Year - Period - Week Hierarchy].CurrentMember

      )

      ,

      [Measures].[Actual Costs]

)

Any IDEAS????


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>