analysis services
23 TopicsErroneous Results from COUNTROWS() in Context-transition
Unless I'm missing something, I'm pretty sure this isn't supposed to happen: EVALUATE CALCULATETABLE ( CALCULATETABLE ( ADDCOLUMNS ( VALUES ( Users[User ID] ), "Test Expression 1 - CORRECT", CALCULATE ( CONCATENATEX ( FILTER ( VALUES ( 'Privilege Conflicts'[Privilege 2 ID] ), 'Privilege Conflicts'[Privilege 2 ID] IN VALUES ( Privileges[Privilege ID] ) ), 'Privilege Conflicts'[Privilege 2 ID], " | " ) ), "Test Expression 2 - INCORRECT", CALCULATE ( COUNTROWS ( FILTER ( VALUES ( 'Privilege Conflicts'[Privilege 2 ID] ), 'Privilege Conflicts'[Privilege 2 ID] IN VALUES ( Privileges[Privilege ID] ) ) ) ) ), CROSSFILTER ( 'Users and Privileges'[Privilege ID], Privileges[Privilege ID], BOTH ) ), Users[User ID] IN { 102, 103 } ) Results: Notice how, for User ID = 102, the results in the test expressions are inconsistent, despite the fact that they are semantically basically the same. For reference, note that the following produces expected results: EVALUATE CALCULATETABLE( CALCULATETABLE( { ( -- Test Expression 1 - CORRECT CALCULATE( CONCATENATEX( FILTER( VALUES( 'Privilege Conflicts'[Privilege 2 ID] ), 'Privilege Conflicts'[Privilege 2 ID] IN VALUES( Privileges[Privilege ID] ) ), 'Privilege Conflicts'[Privilege 2 ID], " | " ), Users[User ID] = 102 ), -- Test Expression 2 - CORRECT (inconsistent with prior query) CALCULATE( COUNTROWS( FILTER( VALUES( 'Privilege Conflicts'[Privilege 2 ID] ), 'Privilege Conflicts'[Privilege 2 ID] IN VALUES( Privileges[Privilege ID] ) ) ), Users[User ID] = 102 ) ) }, CROSSFILTER ( 'Users and Privileges'[Privilege ID], Privileges[Privilege ID], BOTH ) ), Users[User ID] IN { 102, 103 } ) Results: --- It appears that something might not be functioning correctly between the context-transition and COUNTROWS(), but not fully sure. marcorusso Jeffreywang --- Power BI version: 2.139.2054.0 Data model:567Views0likes2CommentsCannot load model
Hi, When I open my .pbix file in Power BI Desktop app, I immediately get this message: Interestingly, the associated PowerBI report in the workspace seems to be refreshing from the model (and linked datasources) regularly. I need to make changes to the model however, and I can't do so in PowerBI Desktop, because of the 'Cannot load model' window. None of the visualisations appear in the Desktop app when i close the error message. I have found this page that refers to 'Analysis Services' also, but I don't know whether this is the right place to go to to try and rectify and overcome the issue. Any help would be much appreciated.Solved1.3KViews0likes1CommentHow to do Row Level Security in PBI Report Server using live connection from SSAS cube
The data in SSAS cube. The cube has 1 flat table. No dimensions. All the relevant data is in this table. The reports are housed in the Power BI Report Server The table has a column called "ClientName" which lists the clients. The ClientName column has values like APPLE, GOOGLE, REDDIT etc. There are a about 8 clients like these. The goal of RLS is that we have a common report to be viewed by all users at all the clients' companies but the people at APPLE should only see data for the rows that have ClientName as Apple, and so on. We created 8 Active Directory groups for the 8 clients. And users from the client companies were added appropriately to them. For the actual RLS these are the steps I have followed. 1. Created Roles on the SSAS cube using SQL Server Management Studio. 2. Assigned only 'Read' permissions to the role 3. In the members tab, added the appropriate AD group to the role. 4. In the Filters tab, assigned the filter using DAX. For example for the Apple role, the expression was ='TABLENAME'[ClientName]="APPLE" A sample report was created with the ClientName column in a matrix visual. This report was uploaded to the Power BI report Server. In internal testing, this worked perfectly. We created a test cube that was identical to the production cube. Added a couple people from our own company to each of these AD groups. We assigned these AD groups to roles in the test cube. They were able to see only the ClientName assigned to them. We then tried testing with actual client users. Created a test report with a single visual as above with the report connected to the actual production cube. But they were able to see all the values in the column. I then tried to repicate the initial test by asking the initial internal users to test the first sample report. (Connected to test cube). But they were able to see all values in the column as well. Whenever I do "Analyse in Excel" in Visual Studio, I get the intended results in all the tests. (RLS is applied) Both on the test cube and the production cube I'm not sure what I'm doing wrong. Some more information: In Manage options for the report, Data Sources > Credentials > Authentication Type is Windows Authentication. And the option "use the following credentials" is selected. A username and password has to be entered in the field there. This was provided by the admin team. I'm not sure what the use of this is but thought I should mention. In Manage options for the report, Data Sources > Connection type is Analysis Services. The Connection String is appropriately edited as below Data Source=SERVERNAME;InitialCAtalog=CUBENAME;Provider=MSOLAP.8;IntegratedSecurity=SSPI;Impersonation Level=Impersonate; As far as I know, none of the users have been added to any of the administrators/developers AD groups. I'm not sure what I'm doing wrong. Please advise. ThanksSolved3.6KViews0likes7CommentsCreating a Slicer based on Range of Measure values - SSAS
Hi! I have created a Measure called [OverallBlendedScore]: (( [AveragePatientDTPScoreRank] * SELECTEDVALUE ( 'SliderDTP'[DTPWeight] ) ) + ( [AveragePatientCoreConditionCountRank] * SELECTEDVALUE ( 'SliderMedCondition'[MedConditionWeight] ) ) + ( [AverageSVIOverall] * SELECTEDVALUE ( 'SliderSVI'[SVIWeight] ) ) + ( [AveragePatientDrugCountRank] * SELECTEDVALUE ( 'SliderDrugCount'[DrugCountWeight] ) )) / [TotalSelectedWeights] I want to know how to create the range of values in [OverallBlendedScore] as a Slicer. The range of expected values is 0-100. I am using Analysis Services tabular model and Tabular Editor. I feel like I should create a new calculated table that provides the values, but not too sure. Any help is appreciated!583Views0likes1CommentTMSL Alter Column Description
I am a noob in TMSL and I need your help. I am trying to add a description to the column in Power BI Services with a command: { "alter ": { "object": { "database": "dataset_test", "table": "005_SHIP_TO_LOCATIONS", "column":"CREATION_DATE" }, "column": { "name": "CREATION_DATE", "description":"This is the new description" } } } The error I get is: Unrecognized command: alter . Check path '['alter ']', line 2, position 13. Could you help me to make it work? This is Power BI Premium and I TMSL works for table name modification, but I can't figure out how to change the column description.1.2KViews0likes1CommentHow to get M query from dataflows. Power BI Server Analysis Services DMV request
The target is to get all M codes from Power BI Service. dataflows take a big part in the Power BI data structure. I tried codes that work for datasets, but they apparently do not work for dataflow: SELECT * FROM $SYSTEM.TMSCHEMA_PARTITIONS and SELECT * FROM $SYSTEM.TMSCHEMA_EXPRESSIONS In The Power BI Workspace opened with Analysis services there is an entity named "Dataflows" with all the dataflow inside. I try running the same codes for this entity as for datasets, but the results are weird. Some codes show reference to a table itself, and 90% of tables are missing. Is there a way to get M Query for all tables inside dataflow (loaded and not loaded) using DMV queries? d_gosbell , lbendlin could you help with this issue?Solved2.4KViews0likes1CommentDMV request to Power BI Server Analysis Services for hidden tables in PowerQuery
I try to get the list of tables with M codes from PowerBI online Analysis Service. I managed to get the required data with the request: SELECT * FROM $SYSTEM.TMSCHEMA_PARTITIONS But it doesn't show any tables that were selected not to "Load" in PowerQuery. The purpose of this task is to get all data connections from a dataset and hidden tables are essential. Does anyone know how to get the hidden tables' codes?Solved5.6KViews0likes8CommentsDAX Measures in SSAS Tabular Model or PBIX Report File?
Hello, I tend to test DAX measures in a local report file and then graduate them to the centralized SSAS model for organization, ease of administration and re-use in other reports. The number of DAX measures in the model is growing quite quickly. One reason is that we do not have access to Calculation Groups yet (we are on SQL Server 2016), but also because I am keeping all DAX measures centralized in the model. How do you decide where to input your DAX measures, in the model or only in the PBIX report file? Thank you for your help.Solved1.5KViews0likes2CommentsSSAS Multidimensional & Tabular on Same Server
Hello, We are planning a migration of our SSRS server to an on-premise Power BI Report Server with the longer term plan to migrate everything to Azure & Power BI Service. There is guidance out there to not install SSAS Multidimensional & Tabular on the same server for performance reasons as they allocate and use the hardware differently, etc. My question is: What about for lighter workloads? We have a low user count. Over the past 2 years our SSRS server has served: 40 unique users per month at peak. On average 7 users per day with a peak of 21 on one of those days. Our data volume is quite low: Multidimensional cubes = 2GB. Tabular Model = 500 MB. Most of the rest of the reporting is via T-SQL procedures. If this is seen as a lighter workload scenario, could it be appropriate to install two instances of SSAS, one in each mode to buy time to then plan to move to the cloud? Or do you think it would make all performance horrendously slow, including any SSIS jobs? Thank you for any insights you may have. BradSolved2.9KViews0likes2Comments