ssas-tabular

DAX Calculated Relationship

十年热恋 提交于 2019-12-12 04:17:52
问题 Month, MyMeasure Nov-15, 150 Dec-15, 150 Jan-16, 200 Feb-16, 200 -- projections into the future not desired Mar-16, 200 -- projections into the future not desired Apr-16, 200 -- projections into the future not desired I have a measure which uses an ALL function to remove the relationship to the date table and calculate a distinctcount in a modified context. Which is great but now the measure extends into the future until the end of the date table. I need to apply another filter after the

Reprocess SSAS tabular cube after failure

一曲冷凌霜 提交于 2019-12-12 03:35:49
问题 So we process the SSAS tabular cubes every night and the other night the processing of the cube failed. Now what I want to do is implement a system that would trigger an automatic reprocess after failure. Is there a way to do that in SSAS Tabular? 回答1: Nothing built into SSAS will automatically restart processing on error. In SQL Agent, the Job Step Properties dialog has an Advanced tab with a Retry Attempts property. If you change that to 1, then it will automatically retry the step (the

How to create a DAX measure that extracts Information from the metadata of Tabular model in SSAS or Power BI.?

喜你入骨 提交于 2019-12-12 01:28:40
问题 I have just started learning the SQL Server and Power BI. I'm working on a project and for that i need to create a Measure for the Power BI report that will dynamically extracts the information about all the tables (like Table Name, Last Updated, Dependencies, etc) used in the Tabular solution. I couldn't find any satisfactory answer anywhere. Is there anyone here who could help? 回答1: If you are using an SSAS tabular data model or multi-dimensional cube, you can use DMVs to extract meta data

Reprocess tabular cubes after failure using Informatica

ぐ巨炮叔叔 提交于 2019-12-11 23:36:03
问题 So we process the SSAS tabular cubes every night and the other night the processing of the cube failed. Now what I want to do is implement a system that would trigger an automatic reprocess after failure. Is there a way to do that in SSAS Tabular? If not, then can I do it using Informatica. Because as of now we call SSIS packages using Informatica to process the cubes. Thanks! 来源: https://stackoverflow.com/questions/34644420/reprocess-tabular-cubes-after-failure-using-informatica

Changes not saved to database when updating the M expression for an SSAS tabular model with .NET

廉价感情. 提交于 2019-12-11 17:57:34
问题 Scenario: we have a table with partition and we have to update the partition query using .NET We use the code below to replace the existing M Expression with a new one, but the changes are not updating at the database level (Analysis Tabular). Are there any syntax errors or problems in this code? TOA.Partition partition = m.Tables.Find(Table).Partitions[1]; OverrideCollection oc = new OverrideCollection { Partitions = { new PartitionOverride { OriginalObject =partition, Source = new

YTD Average in DAX

空扰寡人 提交于 2019-12-11 16:14:42
问题 Need to calculate YTD Average and LYTD Average in DAX , Our Fiscal year starts from Apr. So if my current day is 5th of the June 2017 then lytd_AVG would be from Apr to June would be (MTD Aprn 17) + (MTD May 17) + (MTD June 17)/3 and LYTD_AVG would be (MTD Apr 16) + (MTD May 16) + (MTD June 16)/3 Assuming my current date is 06-03-2017, the YTD avg would be 60 回答1: Assuming your data is given monthly (since you have no sample data), for YTD you should be able to use something that looks like

How to build and deploy SSAS tabular from VSTS through CI/CD locally and to Azure Analysis services

寵の児 提交于 2019-12-11 06:16:33
问题 I am working on a SSAS Tabular project in Visual Studio 2017 where I want to automate build and deploy (and testing) locally and in azure analysis services. The project is connected to an Azure Devops project and it works. But I am struggling a lot when it comes to build and deploy the project in azure devops. I have followed a blog on this topic (https://notesfromthelifeboat.com/post/analysis-services-1-deployment/) and author has created some powershell scripts that works on my computer

Tabular Analysis Service Azure connect and process via c#

本秂侑毒 提交于 2019-12-11 05:56:48
问题 I have a rather strange problem. First of all I want to mention that the following code works with no problems on-premise i.e. in the local intranet. We pushed some Cubes to Azure and I tried to do following in my application: using (Server s = new Server()) { s.Connect(cubeConnectionString); Database db = s.Databases.FindByName(cubeName); db.Model.RequestRefresh(RefreshType.Full); db.Model.SaveChanges(); } So i tried it by using the Azure connection string. It failed with: System.Reflection

MDX - NON EMPTY function faster?

浪尽此生 提交于 2019-12-11 02:53:05
问题 I was under the assumption that NON EMPTY clause must be avoided whenever possible. So, I was in for a shock when I accidentally found that it actually made the query much faster! Sample this: select [Measures].[Count Of Requests] on 0, ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --19 seconds on a hot cache select [Measures].[Count Of Requests] on 0, non empty ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --5 seconds on a

Connecting to the Tabular Instance of an Azure-hosted SQL Server Analysis Services Server

社会主义新天地 提交于 2019-12-10 23:15:51
问题 I have set up an Azure Virtual Machine with a SQL Server 2016 Standard Edition image. I have installed an instance of Analysis Services Tabular on the machine and configured endpoints such that I can access it from my local machine. I have deployed SQL Server, SSAS Multidimensional, and SSAS Tabular databases to this machine. I am able to connect to the relational databases, and when I connect to Analysis Services I either use the IP Address or DNS name, and I am able to connect to SSAS