SolvedPrivate

Translate SQL Query to MDX

Posted on 2015-01-15
1
21 Views
Last Modified: 2016-02-18
Is there any way to translate the below query, to MDX format ? i'm having trouble with grouping.....

select Site, [Date Time],
COUNT([Agent Name]) cntAgents,
SUM([Available Time Net]) Sum(AvailTime),
Sum([Logged On Time Net]) SumLoggedOnTime,
SUM([Not Ready Time Net]) SumNotReadyTime,
SUM([Calls Answered]) SumCallsAnswered, SUM([Handled Calls Talk Time])
Sum(HandledCallsTalkTime)
from dbo.temp_AgentTimenet (this would be the cube [Agent Time Net]
where Site = 'WBD'
and  [Date Time] between '2014-08-01 00:00' and '2014-12-31 23:59'
group by [Site], [Date Time]
order by [Date Time]
0
Comment
Question by:basile
1 Comment
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40553025
It largely depends on how your cube is set up.

Try going to the Cube - Browser within SSMS and using the GUI to create the query, and then click on "Design Mode" to see the resulting MDX.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Log Backup 2 13
Mssql SQL query 14 28
SQL JOIN + SUBQUERY? 3 14
SQL 2008 Conversion failed 7 0
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now