Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Different results when running query on sql server and in SSRS

$
0
0

I have a fairly simple mdx query. which gives different result when run in sql management server and when run from within SSRS

Any idea what could cause this.

This is the query I'm running (Btw SQL server returns the correct result SSRS doesn't)

SELECT NON EMPTY {
	[Measures].[Kosten op project], 
	[Measures].[Kosten realiteit met open] , 
	[Measures].[Kosten realiteit], 
	[Measures].[Hours Project], 
	[Measures].[Hours Amount Total], 
	[Measures].[Hours Total], 
	[Measures].[Hours History], 
	[Measures].[Uren voorcalculatie - v0], 
	[Measures].[Kosten voorcalcutatie - v0], 
	[Measures].[Uitgifte uit voorraad], 
	[Measures].[Stuklijst verbruik], 
	[Measures].[Openstaande aankopen], 
	[Measures].[Geleverde aankopen], 
	[Measures].[Gefactureerde aankopen - Kosten op project], 
	[Measures].[Historiek], 
	[Measures].[Kosten recente prognose], 
	[Measures].[Uren recente prognose],
	[MEASURES].[Voor - na v0], 
	[MEASURES].[Voor - na recentste prognose], 
	[MEASURES].[ADUVERSION]} 
ON COLUMNS, NON EMPTY { (
	[Dim Proj Activity].[Dim Proj Activity].[Dim Proj Activity].ALLMEMBERS * 
	[Project group].[Dim Proj Group].[Dim Proj Group] * 
	[Project category].[CATEGORYID].[CATEGORYID].ALLMEMBERS * 
	[Dim Proj Activity].[PROJCOSTTYPE].[PROJCOSTTYPE].ALLMEMBERS 
			) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( 
SELECT ( [Dim Time].[Kalender -- Jaar - kwartaal - maand - dag].[Dag].&[1900-01-01T00:00:00] : 
	[Dim Time].[Kalender -- Jaar - kwartaal - maand - dag].[Dag].&[2014-06-10T00:00:00]) ON COLUMNS FROM ( 
SELECT ( -{ [Project category].[CATEGORYID].&[INV] } ) ON COLUMNS FROM ( 
SELECT ( -{ [Dim Proj Activity].[Dim Proj Activity].&[-2] } ) ON COLUMNS FROM ( 
SELECT ( -{ [Dim Proj Activity].[Sort Order Budget].&[0] } ) ON COLUMNS FROM  ( 
SELECT ( Filter( [Project].[PROJID].[PROJID].ALLMEMBERS, 
	Instr( [Project].[PROJID].currentmember.Properties( 'Member_Caption' ), '56958' )  = 1  )  ) ON COLUMNS FROM [WIP])))) 
WHERE [Project].[Project].currentmember) 
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS



Viewing all articles
Browse latest Browse all 10045

Trending Articles



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