I have an SSRS dataset that is driven off of an MDX query. Here is the query:
WITH MEMBER [Measures].[Total Fee % Complete] AS IIf ( ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Estimate Line Total] ) = 0, NULL, ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Actual Line Total] ) / ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All]] [Measures].[Estimate Line Total] ) ) MEMBER [Measures].[Total % Complete] AS ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Recognized Amount] ) / ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All]] [Measures].[Estimate Line Total] ) SELECT NON EMPTY { [Measures].[% Complete] ,[Measures].[Forecasted % Complete] ,[Measures].[Overage \ Under] ,[Measures].[Estimate Line Total] ,[Measures].[Actual Line Total] ,[Measures].[Actual Extended Amount] ,[Measures].[Variance] ,[Measures].[Recognized Amount] ,[Measures].[$ Variance] ,[Measures].[Calculated Member] ,[Measures].[Invoice OOP + Markup] ,[Measures].[Total Labor Amount] ,[Measures].[Total Invoice Amount] ,[Measures].[Total Fee % Complete] ,[Measures].[Total % Complete] ,[Measures].[NEW % Variance] } ON COLUMNS ,NON EMPTY { [DIM PROJECT].[Client].[Client].ALLMEMBERS* [DIM PROJECT].[Division].[Division].ALLMEMBERS* [DIM PROJECT].[Product].[Product].ALLMEMBERS* [DIM PROJECT].[Job Number].[Job Number].ALLMEMBERS* [DIM PROJECT].[Job Component Number].[Job Component Number].ALLMEMBERS* [DIM PROJECT].[Component ID].[Component ID].ALLMEMBERS* [DIM PROJECT].[Component Description].[Component Description].ALLMEMBERS* [DIM PROJECT].[Client PO Number].[Client PO Number].ALLMEMBERS* [DIM PROJECT].[Job Status].[Job Status].ALLMEMBERS* [DIM PROJECT].[Project Start Date].[Project Start Date].ALLMEMBERS* [DIM PROJECT].[Project End Date].[Project End Date].ALLMEMBERS* [DIM FUNCTION].[Function Category].[Function Category].ALLMEMBERS* [DIM ESTIMATE].[Estimate Status].[Estimate Status].ALLMEMBERS } DIMENSION PROPERTIES MEMBER_CAPTION ,MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT StrToSet (@DIMPROJECTComponentID ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTProduct ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTDivision ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTClient ) ON COLUMNS FROM ( SELECT {[DIM ESTIMATE].[Estimate Status].&[Approved]} ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTJobStatus ) ON COLUMNS FROM ( SELECT { [DIM FUNCTION].[Function Category].&[FEE] ,[DIM FUNCTION].[Function Category].&[OOP] } ON COLUMNS FROM [ESTIMATES] ) ) ) ) ) ) ) CELL PROPERTIES VALUE ,BACK_COLOR ,FORE_COLOR ,FORMATTED_VALUE ,FORMAT_STRING ,FONT_NAME ,FONT_SIZE ,FONT_FLAGS;
When I view the properties of the dataset the fields all appear. In designing the report, all the fields appear as well. The problem is when I add a new field to the query calledJOB TYPE:
WITH MEMBER [Measures].[Total Fee % Complete] AS IIf ( ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Estimate Line Total] ) = 0, NULL, ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Actual Line Total] ) / ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All]] [Measures].[Estimate Line Total] ) ) MEMBER [Measures].[Total % Complete] AS ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All], [Measures].[Recognized Amount] ) / ( [DIM FUNCTION].[Function Category].&[Fee], [DIM PROJECT].[Job Number].[All], [DIM PROJECT].[Job Component Number].[All], [DIM PROJECT].[Job Status].[All]] [Measures].[Estimate Line Total] ) SELECT NON EMPTY { [Measures].[% Complete] ,[Measures].[Forecasted % Complete] ,[Measures].[Overage \ Under] ,[Measures].[Estimate Line Total] ,[Measures].[Actual Line Total] ,[Measures].[Actual Extended Amount] ,[Measures].[Variance] ,[Measures].[Recognized Amount] ,[Measures].[$ Variance] ,[Measures].[Calculated Member] ,[Measures].[Invoice OOP + Markup] ,[Measures].[Total Labor Amount] ,[Measures].[Total Invoice Amount] ,[Measures].[Total Fee % Complete] ,[Measures].[Total % Complete] ,[Measures].[NEW % Variance] } ON COLUMNS ,NON EMPTY { [DIM PROJECT].[Client].[Client].ALLMEMBERS* [DIM PROJECT].[Division].[Division].ALLMEMBERS* [DIM PROJECT].[Product].[Product].ALLMEMBERS* [DIM PROJECT].[Job Number].[Job Number].ALLMEMBERS* [DIM PROJECT].[Job Component Number].[Job Component Number].ALLMEMBERS* [DIM PROJECT].[Component ID].[Component ID].ALLMEMBERS* [DIM PROJECT].[Component Description].[Component Description].ALLMEMBERS* [DIM PROJECT].[Client PO Number].[Client PO Number].ALLMEMBERS* [DIM PROJECT].[Job Status].[Job Status].ALLMEMBERS*[DIM PROJECT].[Job Type].[Job Type].ALLMEMBERS* [DIM PROJECT].[Project Start Date].[Project Start Date].ALLMEMBERS* [DIM PROJECT].[Project End Date].[Project End Date].ALLMEMBERS* [DIM FUNCTION].[Function Category].[Function Category].ALLMEMBERS* [DIM ESTIMATE].[Estimate Status].[Estimate Status].ALLMEMBERS } DIMENSION PROPERTIES MEMBER_CAPTION ,MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT StrToSet (@DIMPROJECTComponentID ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTProduct ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTDivision ) ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTClient ) ON COLUMNS FROM ( SELECT {[DIM ESTIMATE].[Estimate Status].&[Approved]} ON COLUMNS FROM ( SELECT StrToSet (@DIMPROJECTJobStatus ) ON COLUMNS FROM ( SELECT { [DIM FUNCTION].[Function Category].&[FEE] ,[DIM FUNCTION].[Function Category].&[OOP] } ON COLUMNS FROM [ESTIMATES] ) ) ) ) ) ) ) CELL PROPERTIES VALUE ,BACK_COLOR ,FORE_COLOR ,FORMATTED_VALUE ,FORMAT_STRING ,FONT_NAME ,FONT_SIZE ,FONT_FLAGS;
Now suddenly, the fields have all disappeared from the properties dialog - even though I click "Refresh Fields" repeatedly. The fields also do not appear under the dataset node in the Report Data pane nor are they available when designing the report.
What happened?!?!?
That field does exist and no errors are thrown when I click OK when editing the query.
No idea what the heck is going on!!
Thanks!!
A. M. Robinson