Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Picking results only for this hour

$
0
0

How can I change the following mdx to give me only records for the 4th hour of the days within my range of dates. Thanks much

with MEMBER [Measures]. [h] as [Dim_DateTime].[HourofDay].CurrentMember.Name 
		Select { h,
		[Measures].[Value Actual], 
		[Measures].[Value Actual Count],[Measures].[Value Expected Count]
		}on columns,NonEmpty([Dim_DateTime].[Calender].[HourofDay].&[2012]&[4]&[20]&[4]: 
		[Dim_DateTime].[Calender].[HourofDay].&[2012]&[5]&[24]&[4]*
		[Dim_TimeZoneConvert].[Time Zone Key].[Time Zone Key] *
		[Dim_Item].[Item Id].[Item Id]
		)on Rows
		from   (
				Select  {[Dim_Item].[Item Id].&[63678],[Dim_Item].[Item Id].&[63710]} on columns
				 from [My Cube])


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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