olap

Connect to SSAS OLAP Cube Using Python

你离开我真会死。 提交于 2021-02-10 18:42:02
问题 Looking for resources to learn how to connect and fetch data from SSAS OLAP Cube. Found I can do it with XMLA lib, but found no resources to explore and learn. 回答1: If you want to use python to connect SSAS cube, you could refer to SSAS via Python and olap.xmla for more details. Zoe 来源: https://stackoverflow.com/questions/53607258/connect-to-ssas-olap-cube-using-python

Ever a need for CurrentMember.Item(0)

白昼怎懂夜的黑 提交于 2021-02-10 16:59:37
问题 The custom measure in the following is taken from the book MDX Cookbook (Tomislav Piasevoli): WITH MEMBER [Internet Sales PP] AS Sum ( Generate ( { [Date].[Calendar].[Date].&[20080105] : [Date].[Calendar].[Date].&[20080125] } ,{ ParallelPeriod ( [Date].[Calendar].[Calendar Year] ,1 ,[Date].[Calendar].CurrentMember.Item(0) ) } ) ,[Measures].[Internet Sales Amount] ) SELECT { [Measures].[Internet Sales Amount] ,[Internet Sales PP] } ON 0 ,[Product].[Color].MEMBERS ON 1 FROM [Adventure Works];

PostgreSQL function returning a data cube

混江龙づ霸主 提交于 2021-02-10 06:31:28
问题 First off, the iceberg-cube query is defined as in Let's say I have a relation item,location,year,supplier,unit_sales , and I would like to write a plpgsql functions as a wrapper around the query in the image, to specify the parameter N , like so: create or replace function iceberg_query( percentage integer ) returns cube /* Code here */ as $$ declare numrows int; begin select count(*) into numrows from sales; select item, location, year, count(*) from sales group by cube(item,location,year)

PostgreSQL function returning a data cube

回眸只為那壹抹淺笑 提交于 2021-02-10 06:31:28
问题 First off, the iceberg-cube query is defined as in Let's say I have a relation item,location,year,supplier,unit_sales , and I would like to write a plpgsql functions as a wrapper around the query in the image, to specify the parameter N , like so: create or replace function iceberg_query( percentage integer ) returns cube /* Code here */ as $$ declare numrows int; begin select count(*) into numrows from sales; select item, location, year, count(*) from sales group by cube(item,location,year)

MDX Calculated Measure Count

泄露秘密 提交于 2021-02-07 10:55:47
问题 I'm attempting to add a calculated measure to a simple MDX query. Although I have managed simple calculated measures before I clearly don't understand MDX sufficiently to make this work. Anyway, what I am trying to do is count the number of distinct orders per each of our truck routes. I have tried counting the Order Dimension Keys but all this does is produce the total number of orders in the system rather than the number of orders per route. Can someone help me out? I feel that once I

Gremlin OLAP queries on AWS Neptune

蓝咒 提交于 2021-02-05 03:14:09
问题 In the AWS Neptune documentation it says it is Apache TinkerPop Gremlin compatible but it only refers to online transaction processing (OLTP) type of graph traversal queries. I haven't seen anything about long-running online analytical processing (OLAP) GraphComputer queries. Is it possible to execute OLAP queries on graphs stored in AWS Neptune graph database service? 回答1: I was at ReInvent and had a chance to talk to Brad about it. For the immediate future it’s all OLTP. only one query per

Gremlin OLAP queries on AWS Neptune

三世轮回 提交于 2021-02-05 03:11:08
问题 In the AWS Neptune documentation it says it is Apache TinkerPop Gremlin compatible but it only refers to online transaction processing (OLTP) type of graph traversal queries. I haven't seen anything about long-running online analytical processing (OLAP) GraphComputer queries. Is it possible to execute OLAP queries on graphs stored in AWS Neptune graph database service? 回答1: I was at ReInvent and had a chance to talk to Brad about it. For the immediate future it’s all OLTP. only one query per

Gremlin OLAP queries on AWS Neptune

孤街浪徒 提交于 2021-02-05 03:09:10
问题 In the AWS Neptune documentation it says it is Apache TinkerPop Gremlin compatible but it only refers to online transaction processing (OLTP) type of graph traversal queries. I haven't seen anything about long-running online analytical processing (OLAP) GraphComputer queries. Is it possible to execute OLAP queries on graphs stored in AWS Neptune graph database service? 回答1: I was at ReInvent and had a chance to talk to Brad about it. For the immediate future it’s all OLTP. only one query per

How to store metrics for my web app?

主宰稳场 提交于 2021-01-28 01:02:52
问题 I need to store more metrics for my web app. User behavior and other conditions needs to be tracked over time and compared. Some records have a timestamp associated with it, some don't. So an on-demand query for metrics might not be suitable all the time. I think what is needed is a snapshot (daily?) of certain analytics queries (via a cronjob?) that I write and then stored somewhere (DB? file?). Right now I'm worried about the size of these snapshots if I were to save them in the DB. How