MDX详解文档


-
mdx详解。 mondrian.. mdx
Installation o Installation(the embedded version) Download Mondrian-em bedded version and Tomcat o Follow the instructions in install. html o Start tomcat(run the startup. bat) obrOwsehttp://localhost:8080/mondrian-embedded/ erWang(UNSW) 9318 MDX Motivation o Every input/ output in SQL must be relation SELECT Store state, SUM(sales) FROM F. Store. time WHERE F. storekey=Store. storekey AND F.timekey=Time. timekey GROUP BY Store. state CA111,111 IL|222,222 SELECT Store state, Time. quarter, SUM(sales) FROM F, Store. time WHERE F. storekey=Store. storekey AND F. timekey=Time. timekey GROUP BY Store state, Time.quarter CA|Q1|44,444 CA丨Q2|11,111 IL丨Q4|88,888 o Typical reporting/ analytical applications requires cross-tab Q1|Q2|Q3|Q4 IL I Wei Wang (UNSW) 9318 MDX Pivot and Unpivot o SQL can produce cross tab via the Case construct seLect Store, state AS state SUM (CASE WHEN Time. quarter='Q1 THEN sales END) As Q1 SUM (CASE WHEN Time. quarter='Q4' THEN sales END) As Q4 FROM F. Store. Time WHERE F. storekey=Store. storekey AND F.timekey=Time. timekey GROUP bY Store. state o PIvOT has been proposed to help o MDX can support these types of queries more natually and more efficientl SELECT [Time] [Year] [1997]. CHILDREN] ON COLUMNS I[Store. [Store State]. MEMBERS oN RO FROM [Sales] WHERE ([Measures] [Store Sales]) o Who speaks mdX? MS SQL Server 200? Analysis Service(SSAS), Essbase (now owned by Oracle), Mondrian,etc Wei Wang (UNSW) 9318 MDX Basic Concepts o Dimensions and Members a dimension may have several levels Each level has a number of members °Axes o Refers to the dimensions" of a query's result cube o An axis could contain several cube dimensions in com bination easures Attributes(of numerical values) to be aggregated and analyzed o They collectively forms the measures dimension o Default member: the top-level member(usu. ALL) Default measure: the first measure specified in the cube o One can specify the default members/measures or disallow the ALL level in the schema Tuple to define a slice of data from a cube .([Product] [Product Family] [Drink], [Store] [USA] [CA]) Set an ordered collection of zero, one or more tuples usually used to define axis and slicer dimensions °{[Time].[2007].[Q1],[Time].[2007].[Q2]} Wei Wang (UNSW) 9318 MDX Example All Products All Products Product family Drink Food Product name Portsmouth Skinner Washington Johnson Toby the product dimension Members of the product dimension Return a sets of members o [Product] [Product Family] [Skinner] o [Product] [Product Name]. MEMBERS= Portsmouth, Skinner, Washington, Johnson, Toby j o [Product] [Drink]. CHIlDREN= Portsmouth, Skinner, Washington J o [Product] [Drink] [Skinner]: [Washington]= Skinner, Washington I o DESCENDANTS([Product] [Food], [Product Name])= Johnson, Toby Wei Wang (UNSW) 9318 MDX FoodMart °The[ Sales]cube Measures: [Unit Sales], [Store Cost], [Store Sales], [Sales Count] [Customer Count], [Promotion Sales] SELECT [[Measures]. Members ON COLUMNS FROM [Sales Calculated measures: [Profit], [Profit last Period] [Gewinn-Wachstum] SELECT [AddCalculatedMembers( [Measures. Members)] ON COLUMNS FROM [Sales o Dimensions [ Store]:[ Store Country]→[ Store state]→[ Store City]→[ Store Name] [Time]:[Year]→[ Quarter]→[ Month] Example Use Mondrian's workbench to open./demo/FoodMart. xml erWang(UNSW) 9318 MDX MDX is not SQL Basic syntax One of the three ways to write comments select set o on COLUMNS, / block comment * Hset 1 on RoWs / line comment iset n on AXIS (n) WHERE (tuple)// called "slicer dimension" Note o No axis or the Where statement can share any of the same dimensions o JPivot cannot display results with>2 dimensions Key differences between MDX and SQL °“ Cube in, Cube out" for MD o set notation needs to be used after seleCt o From clause can name only one cube o The Where clause describes the slicer axis (i.e, all the axes that is not a query axis)and is filtered by its default members Wei Wang (UNSW) 9318 MDX Example A typical query SELECT [Time] [Year][1997], [Time] [Year][1998] ON COLUMNS [STore] [Store Name]. MEMBERS] ON ROWS FROM [Sales WHERE [Measures] [Store Sales]) Using the level. MEMBERS and member. CHILDREN functions select [[Time] [Year][1997]. CHILDREN ON COLUMNS i[Store] [Store City]. MEMBERS] ON ROWS FROM [Sales] WHERE [Measures] [Store Sales]) utput 19971998 Q1 Q2 Q3 Q4 HQ HQ Store 6 ? ? Store 6 ??? Store 7 Store 7 ? Wei Wang (UNSW) 9318 MDX

Essbase MDX查询语句 java api_course
2019-12-16谁用过Essbase java 的api 然后那个mdx的查询语句怎么写呀? 对应如下Excel中Essbase取数的行列 cude 或者谁有类似的Demo java api 的 感谢!
MDX怎么查询总行数_course
2017-06-08这个是一个简单的mdx查询,但是我现在想查询ROWS的总数,要怎么查呢?求助! SELECT {,,} ON COLUMNS, {.children} ON ROWS FROM
5KB
MDX例子
2007-11-03MDX例子,可供MDX入门的人员参考。
java环境怎么通过MDX取数?_course
2013-12-24java环境下,怎么通过MDX语句对sql server2008的数据立方体cube提取数据? 有经验的大神些,大概讲讲
185KB
mdx编程指引
2008-05-06mdx编程指引,具体请见压缩包
[原]MDX集合操作_course
2009-07-23无论是数据库还是数据仓库,集合( SET )操作都是一个最基本,也是最重要的操作之一.熟练各种集合的基本运算,是MDX的基本要求之一. MDX中,集合包括5种基本运算. 1.UNION 或 + 并集
mondrian,java,MDX问题 _course
2013-01-05select {.,.} ON COLUMNS, Crossjoin({FILTER(.MEMBERS,.CurrentMember.Name MATCHES '<%=sOrgID %>.*')},
C语言入门--必须基础17讲
2017-07-28适合没有基础的人群学习C语言,简单的入门教程。帮助小白理解什么是开发,什么是编程。做的很简单,很多细节没有详细讲解,不适合用来深入研究。学了这个,你能理解什么是编程,什么是C语言。
5.8MB
2020美赛C题题目.rar
2020-03-06Problem C: 电商里的数据财富 在电商市场中,亚马逊为消费者提供了对购买商品的评价(打分和评论)的服务。个人评级,又称为“星级评级”,意思是允许消费者使用1(低分差评,低满意度)到5(高分好评
-
下载
光敏温度检测控制电路
光敏温度检测控制电路
-
博客
html_css_选择器_ZHOU125disorder_
html_css_选择器_ZHOU125disorder_
-
下载
【054期】SPSS 中介效应与调节效应分析.docx
【054期】SPSS 中介效应与调节效应分析.docx
-
下载
【053期】SPSS 问卷法就不能得出因果关系?.docx
【053期】SPSS 问卷法就不能得出因果关系?.docx
-
博客
linux下用Kazam录屏视频在windows不能播放解决
linux下用Kazam录屏视频在windows不能播放解决
-
学院
计算机网络基础
计算机网络基础
-
博客
git 常用命令
git 常用命令
-
下载
Faceforensics++数据下载代码
Faceforensics++数据下载代码
-
学院
算法导论二(排序和顺序统计量)——编程大牛的必经之路
算法导论二(排序和顺序统计量)——编程大牛的必经之路
-
博客
.Net C# 抽象类
.Net C# 抽象类
-
博客
c++中<<和>>的使用
c++中<<和>>的使用
-
博客
Pytorch学习笔记 2.4:创建Tensor
Pytorch学习笔记 2.4:创建Tensor
-
学院
仿真钢琴-javascript实战
仿真钢琴-javascript实战
-
博客
文字的展开与收起
文字的展开与收起
-
博客
Day13 旋转数组的最小数字
Day13 旋转数组的最小数字
-
学院
【数据分析-随到随学】互联网行业业务指标及行业数
【数据分析-随到随学】互联网行业业务指标及行业数
-
博客
基于安卓的兼职app开发!万字长文轻松彻底入门Flutter,终获offer
基于安卓的兼职app开发!万字长文轻松彻底入门Flutter,终获offer
-
学院
Redis数据库入门与使用
Redis数据库入门与使用
-
下载
PID调整心法口诀.txt
PID调整心法口诀.txt
-
下载
Scrawlr.zip
Scrawlr.zip
-
下载
区块链技术发展与展望.pdf
区块链技术发展与展望.pdf
-
博客
Linux中 shell 外部传参
Linux中 shell 外部传参
-
下载
installer_r15-windows.exe
installer_r15-windows.exe
-
学院
Laya 2.0 开发3D小游戏 入门教学
Laya 2.0 开发3D小游戏 入门教学
-
学院
UnitySocket异步聊天室
UnitySocket异步聊天室
-
下载
Eclipse_hadoop.zip
Eclipse_hadoop.zip
-
下载
【036期】SPSS 效度分析.docx
【036期】SPSS 效度分析.docx
-
下载
【052期】SPSS 问卷数据建模前传.docx
【052期】SPSS 问卷数据建模前传.docx
-
博客
编译Android版本Python
编译Android版本Python
-
下载
dnSpy6.1.8-net48-win64.zip
dnSpy6.1.8-net48-win64.zip