Hi,Brand new with cubes, so please excuse my ignorance. I have a cube that has overtime budgeted values.I have a SQL2005 Database that has all the 'actual' overtime values people worked. I am building a Dashboard in SharePoint 2013.So, I need to be able to show the actuals versus the budgeted overtime hours. I have queries for both values -For actuals:[code="sql"]USE BPCUTILSELECT [Entity] ,[Period] ,[Account] ,[Department] ,[Site] ,[ContractPeriod] ,[CPAMT] ,[PPAMT] ,[VALID] ,[PPX] ,[Recdate] ,[RecUser] ,[RecID] FROM [BPCUTIL].[dbo].[Load_Data_HIST] where account in ('5204','5202') order by recdate desc[/code]For the cube data - I captured a trace using a report that shows the budgeted overtime:[code="sql"]SELECT NON EMPTY {[TIME].[2013.0428],[TIME].[2013.1027],[TIME].[2013.1229],[TIME].[2013.0825],[TIME].[2013.0630],[TIME].[2013.0224],[TIME].[2013.TOTAL],[TIME].[2013.1124],[TIME].[2013.0929],[TIME].[2013.0728],[TIME].[2013.0526],[TIME].[2013.0331],[TIME].[2013.0127]} ON 0,NON EMPTY {[CATEGORY].[BUDGET2013]} ON 1 FROM [WSIFIN] WHERE ([ENTITY].[CONSOLIDATED],[RPTCURRENCY].[LC],[DATASRC].[TOTALADJ],[CONTRACTPRD].[ALL_CONTRACT_PER],[DEPARTMENT].[CONS_DEPARTMENT],[SITE].[S_CIA],[MEASURES].[PERIODIC],[ACCOUNT.H1].[OH_ALLOC_OFFSET])[/code]For my dashboard I need to use an SQL Query for pulling the data - Is it possible to write one query to pull from both places?
↧