ssas

SSAS Aggregation on Distinct ID

◇◆丶佛笑我妖孽 提交于 2019-12-31 07:13:05
问题 I wish to change the default aggregation from SUM to SUM on Distinct ID Values. This is the current behaviour ID Amount 1 $10 1 $10 2 $20 3 $30 3 $30 Sum Total = $90 By default, I am getting a sum of $90. I wish to do the sum on distinct ids and get a value of $60. How would I modify the default Aggregation Behavior to achieve this result? 回答1: Design your data as a many-to-many relationship: create one table/view having one record per ID and the amount column from the data shown in your

Media queries PX vs EM vs REM

筅森魡賤 提交于 2019-12-29 04:19:29
问题 Can anyone explain why my media queries break when converting them FROM px TO ems In the body of my document, I have included the following rule font-size: 62.5%, Therefore I would assume that I could convert my media query to FROM 650px to 65em? Changing my media queries to ems breaks the layout As an alternative, can I convert the media query to REMS with a pixel fallback ?? that said, I have no idea how to do this @media screen and (min-width: 650px) { body { font-size: 62%; background

ssas attribute key cannot be found even though it exists and is not due to duplicates

China☆狼群 提交于 2019-12-28 16:31:28
问题 I was trying to rebuild my cube after making some changes the other day to the table/column names in the fact and dimension tables. The process cube action kept returning the following error message: The attribute key cannot be found when processing: Table: 'MyFactTableName', Column: 'MyDimensionKey', Value: 'SomeValue'. The attribute is 'MyDimensionKey'. The other answers to similar questions referred to attributes with duplicate values, and cases where the attribute value was null in the or

IIS7下配置SSAS通过HTTP远程连接

大城市里の小女人 提交于 2019-12-28 07:55:34
http://www.cnblogs.com/zhangzt/p/4046259.html IIS7下配置SSAS通过HTTP远程连接 淘宝 问答 学院 博客 资源下载 高端培训 登录 注册 全部问题 文章 话题 人物 输入关键字进行搜索 搜索: 发起问题 Toggle navigation 首页 商业智能 微软BI Cognos BIEE SAP BO 数据库 ETL 意见反馈 发起问题 IIS7下配置SSAS通过HTTP远程连接 SSAS发布 SSAS远程连接 安装环境 操作系统:Windows7、Windows Server2008 IIS版本:7.5 IIS7下配置SSAS通过HTTP远程连接详细的步骤如下 : 1、首先到分析服务器的SQLServer安装目录中找到如下目录和文件,路径如下:D:\Program Files\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\bin\isapi 2、在D盘新建一个olap文件,把上述的isapi内的所有东西全部copy进去。 3、在IIS中新建一个应用程序池,名称为olap,托管模式选择经典,如下设置 4、在IIS默认网站下新建一虚拟目录,名称为olap,物理路径选择第二步新建的d:\olap的文件夹,具体操作如下图 5、在虚拟目录OLAP上点右键,选择"转换为应用程序"

Use CSV or Text file as a data source for SSAS cube

心不动则不痛 提交于 2019-12-25 16:59:11
问题 Can we have a CSV or Text file as a data source for SSAS cube. I deal with lots of data and maintain SSAS cubes (ROLAP) for analyzing the same. The data(~2 GB) comes in every hour as a formatted text file which I upload to a DB which acts as a data source for the cube. The cube then fetches this data from the DB and processes it. I would like to process the cube directly using the text file. This can save a lot time. 回答1: I've never really tried this, but I think this is possible if you have

New Column with numbers

橙三吉。 提交于 2019-12-25 09:36:00
问题 Goal: Create a new column, named test , containing numbers in SSAS only inside of DSV design view. If StatePrinceCode's column has value NSW it shall have value 1 etc. StateProvinceCode test ------------------------------ NSW 1 QLD 2 SA 3 Problem: How should I enable to do it? I tried using IIF and case statement but it doesn't want to do it due to text value. It only works with numbers only. Information: - I strongly believe that you need to create a named calculation as a extra column to

Ordering by a generic calculated measure results in infinite recursion? (MDX)

邮差的信 提交于 2019-12-25 07:39:41
问题 I need to write a calculated measure that would show a share of Measure1 comparing to the total sum by any given dimension. I managed to do it like this: CREATE MEMBER CURRENTCUBE.[Measures].[Test] AS [Measures].[Measure1] / ( AXIS( 1 ).ITEM( 0 ).DIMENSION.LEVELS( 0 ).ITEM( 0 ), [Measures].[Measure1] ) But due to the generic nature of [Test] , it is not possible to order a dimension by this measure. SELECT [Measures].[Measure1] ON 0, ORDER( [Dimension1].MEMBERS, [Measures].[Test] ) ON 1 FROM

Clr Assembly must have main file specified error

给你一囗甜甜゛ 提交于 2019-12-25 05:04:13
问题 This is the first dll I have made. It's purpose is to grab territory names from a database and return as an mdx set. The dll compiled perfectly fine, but when I go to deploy the dll as an assembly in bids to my cube, I get the following error: Clr Assembly must have main file specified error The dll is supposed to be like a ssas stored procedure so I can set permission in a role for ssas. Thanks! Ethan 回答1: I finally figured out a solution! I believe that because of the msmgdsv.dll being of

Two independent measures based on two time hierarchies

人盡茶涼 提交于 2019-12-25 04:17:13
问题 I've got a simple cube with a fact table which has a date field among others and connected it with a time dimension which has 2 hierarchies. What I want to do is create one measure that will be filtered only by the one time hierarchy and a second one for the second time hierarchy. Basically this: Measure1 ----> Cannot be affected by filtering of time_hierarchy2 and gets filtered only by time_hierarchy1 And the same for Measure2. With what I've tried so far I can't do this because whenever I

MDX query: How to compare year to date figures from the current year with year to date figures from the previous year?

元气小坏坏 提交于 2019-12-25 03:53:26
问题 With the below MDX queries I am attempting to return a comparison of sales figures. I want to compare YTD with LYTD, defined as follows: YTD: 01 Jan this year (01/Jan/2011) until today (17/Aug/2011) LYTD: 01 Jan last year (01/Jan/2010) until today's date last year (17/Aug/2010) Both periods should contain the same number of days (give or take one day for leap years). So far I have tried using the YTD() function to get this year's data but I have not had much success with wrapping the YTD()