ssas-tabular

Subtotal <> sum of the rows

做~自己de王妃 提交于 2021-01-28 11:17:40
问题 I'm a relative neophyte with DAX so bear with me. In the simplest terms, I want to double the measure amount for all regions that are not Europe, then sum the result. Here is some example DAX: DEFINE measure Fact[test] = CALCULATE (IF(SELECTEDVALUE('Dim'[Region]) = "Europe", Fact[Revenue],Fact[Revenue] * 2)) EVALUATE( SUMMARIZECOLUMNS( ROLLUPADDISSUBTOTAL('Dim'[Region], "RegionSubtotal"), "Original Measure", Fact[Revenue], "New Measure", Fact[test] ) ) Region RegionSubtotal Original Measure

Cube refresh with Automation Account in Azure SSAS

坚强是说给别人听的谎言 提交于 2021-01-28 06:05:37
问题 I'm currently trying to create an automation runbook to process a cube in Azure. I've tried multiple PowerShell scripts like this one : $AzureCred = Get-AutomationPSCredential -Name "RefreshTest" Add-AzureRmAccount -Credential $AzureCred | Out-Null Invoke-ProcessASDatabase -databasename "MKTGCube" -server "AzureServerName" -RefreshType "Full" -Credential $AzureCred With that kind of error (despite the fact that I installed the SQLServer module). Invoke-ProcessASDatabase : The term 'Invoke

How to connect SSAS to Python

 ̄綄美尐妖づ 提交于 2021-01-07 01:33:10
问题 Want to fetch data in Python Pandas DataFrame from SSAS connection, how to do? I tried below code import olap.xmla.xmla as xmla provider = xmla.XMLAProvider() connect = provider.connect(location='http://localhost/OLAP/msmdpump.dll',username='test',password='test') source = connect.getOLAPSource() But when importing its gives error "No module named xmla". So, I try to run "pip install xmla" but it giving error "No module name client" Please suggest what to do and how to import SSAS data in

Continuous integration and Deploy SSAS tabular to Azure Analysis Services

∥☆過路亽.° 提交于 2020-03-02 12:16:50
问题 I am trying to deploy SSAS Tabular model to Azure Analysis Server through MS Build and Release process. I am able to successfully execute Invoke-ProcessASDatabase. But I am having problem with Deploying new objects to the Azure Server. I am using Command Line to deploy the tabular model using below command "C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\Microsoft.AnalysisServices.Deployment.exe" and it fails with error - Authentication failed: User ID and Password

AAS tabular model in DirectQuery mode performance benefits

允我心安 提交于 2020-02-25 04:33:18
问题 Suppose you have 10 pretty big fact tables (each 50-100 GBs) that should be queried with Power BI. They doesn't fit into Azure Analysis Services RAM (reasonable price). So in order to use tabular model and AAS you have stay with the following schema: (1) Power BI Desktop -> Azure Analysis Services -> [DirectQuery] -> SQL Database But as far as I know from this article, AAS tabular model doesn't cache any aggregated results (means won't imply any additional performance optimizations). Moreover

Optimizing Dax & model for “where date between” type queries

放肆的年华 提交于 2020-01-24 09:46:11
问题 I am building a model to allow reporting on two seperate datasets, for this example we'l say a Students dataset & a Staff dataset. The datasets are pretty seperate and the only real link between the two is Date, so from a model perspective, there is a Students star schema & a Staff Star Schema. The data displayed is snapshot type data, answering questions like: - For a selected date, show all active employees - for a selected date, show all enrolled students This means that when a single date

SSAS tabular - Switch among the datasource connections

家住魔仙堡 提交于 2019-12-24 19:28:53
问题 Its obvious that we need to import the data from a data source into a model of SSAS tabular. Imagine we have two data sources connections for two different environments ENV1 and ENV2. Both environment contains same tables but with different data. Is it possible if I want to switch to ENV2 while I am working on ENV1 in SSAS tabular. Is there any alternative available for this requirement? Thanks in advance, Lalith Varanasi. 回答1: It sounds like you want to have one data source, but to update

I am getting an error while connecting to Azure SSAS server in Power-BI through Import mode

允我心安 提交于 2019-12-24 08:10:56
问题 I am getting an error while connecting to Azure SSAS server in Power-BI. In Power-BI, I am selecting SQL Server Analysis Services database as a data source and I am selecting Import mode. then it is throwing me an error- "The server parameter must be a valid hostname or HTTP URL." If I use 'Live connection' mode then I am able to connect but I want to do it from 'Import' mode. so how can I get HTTP URL for SSAS server? 回答1: If I understand your question, you're connecting to Azure Analysis

Testing DAX calculation with NBi

一个人想着一个人 提交于 2019-12-24 02:55:09
问题 I'm doing some research on automated test tool for our SSAS Tabular project. I found NBi and thought it is really cool. I attempted to set it up and successfully ran some basic tests. However, when I attempted to test dax calculation, it says "Function not found" (see screenshot). It sounds like it does not support SUM, but given that SUM is a basic function I would imagine it should work. Since I'm new to this tool, I wanted to double check if I've done something wrong or it is simply what

Default filter in Power BI - Row Level Security not applied through LOOKUPVALUE

岁酱吖の 提交于 2019-12-22 09:57:25
问题 TL;DR: When using LOOKUPVALUE() against a table with Row Level Security, the RLS is not applied and all values are seen I have a requirement to have a 'default' value (location) picked in a Power BI report, based on the user. I am reporting against Azure Analysis Services (tabular model 1400) It appears that the way to implement default values in Power BI is to dynamically rename a value to something static, and pick that static value as a filter. So user Bob has default location Location1 so