Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
SolvedPrivate

Translate SQL Query to MDX

Posted on 2015-01-15
1
Medium Priority
?
39 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:Auerelio Vasquez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

618 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