Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

SSAS Tabular Model in Excel Pivot Table issue

$
0
0

When I query a SSAS Multidimensional cube using an Excel pivot table, the "Show Fields" dropdown box shows a list of the measure group tables available in the cube. When I select a particular measure group, the "Fields" section will only display the related dimension tables. This makes it very easy for users to only select the dimensions and attributes that they can actually use.

However, when I query a SSAS Tabular database using an Excel pivot table, the "Show Fields" dropdown box shows a list of all of the tables in the tabular model including those with measures and those without.  This is not very useful when you have a large number of tables. The bigger problem however is when I select a table that has measures. When I do this, the "Fields" section will only show the table that I selected. It will not show the related tables like it does for SSAS multidimensional. Users do not have any way to determine which tables are related to the particular measures they have selected. 

Do the SSAS tabular and Excel teams plan to address this problem? Are there any workarounds for this issue besides creating Perspectives?

Thank you.

David


davidg12


Cube process failing after migration to the new server

$
0
0

Hi All,

I migrated the SSAS Data base from (restore on my current server SQL SERVER 10.5) . When i process the cubes or dims they are failing. Dims in the DSV are named queries and they run good in SSMS of the new server. When i process they are failing for silly errors.

Example of one errror while processing DIM (

SELECT 
  DISTINCT
 [T_0].[CaseStatus] AS [tuses0_0]
   FROM [dbo].[DIM_CaseStatuses] AS [T_0])

Error Message:

OLE DB error: OLE DB or ODBC error: Query (5, 34) Parser: The syntax for 'AS' is incorrect. (
  SELECT 
  DISTINCT
 [T_0].[CaseStatus] AS [tuses0_0]
   FROM [dbo].[DIM_CaseStatuses] AS [T_0] )..

Please see the version below

CURRENT VERSION

Microsoft SQL Server Management Studio10.50.6560.0
Microsoft Analysis Services Client Tools10.50.6560.0
Microsoft Data Access Components (MDAC)6.1.7601.17514
Microsoft MSXML3.0 6.0 
Microsoft Internet Explorer8.0.7601.24000
Microsoft .NET Framework2.0.50727.8793
Operating System6.1.7601

NEW SERVER VERSION:

Microsoft SQL Server Management Studio14.0.17285.0
Microsoft Analysis Services Client Tools14.0.1016.283
Microsoft Data Access Components (MDAC)10.0.14393.0
Microsoft MSXML3.0 6.0 
Microsoft Internet Explorer9.11.14393.0
Microsoft .NET Framework4.0.30319.42000
Operating System6.3.14393

Please suggest. The DIM Named queries run good in the new server SSMS

Thanks

SSAS Tabular - Excel filtering date

$
0
0

Hi everybody

I have a dimdate in my SSAS tabular; it's marked as a date in the model; and I have a field as date.

In excel ( Sorry the screenshot is in french)

If i put the field date in row label, it's working as a date,  I can filter and navigate as a date.

If I put in report filter, it's no longer working as a date ( filtering as text)

Do you know why it's working like this ( Excel 2010 ) ?

How to have this working correctly ?

Thanks in advance

After upgrade to SQL server 2017

$
0
0

Hi

I have upgraded to SQL server 2017 my SSAS tabular model. Since I noticed a change in my Excel 2010 clients.

When you select a table (Fields in relationship Pivot), the table is no longer filtered.

Do somebody has noticed this and how to avoid this ?

Thanks in advance

SSAS Tabular | Query for Company Table (Edit Table Properties)

$
0
0

I used Power Query to Load data (SSAS Multidimensional) into SSAS Tabular (Level 1400) and below is the M Code (I think: Is this M code below?) for the Company table.

Is this M code below? Is any part of it MDX? Would you briefly break out the different parts of the query below and what parts are M and what parts are MDX?

My question is how would I add a filter to the query below such that "Company.Company" = "KSA Lighting"?

I just want to add a filter to the query to select only 1 specific Company.

let
   Source = #"AnalysisServices/busintel02 busintel local",​
   AgencySalesCube = Source{[Name="AgencySalesCube"]}[Data],​
   AgencyReports1 = AgencySalesCube{[Id="AgencyReports"]}[Data],​
   AgencyReports2 = AgencyReports1{[Id="AgencyReports"]}[Data],​
   #"Added Items" = Cube.Transform(AgencyReports2,​
       {​
           {Cube.AddAndExpandDimensionColumn, "[Company]", {"[Company].[Company].[Company]"}, {"Company.Company"}}​
       })​
in​

   #"Added Items"

Regards,

Ryan Casey
www.aimyourdata.com





Extract Info from cube

$
0
0

Hello,

I have the following cube:

"https://ibb.co/kiyHhU"

I'm new to this type of implementations and I want to know how can I, for example, create a calculation to calculate the number of reproved students ?

I have to filter the grade (in factAvaliacoes) by final grande (DimTipoAval), but how canI do that ?

Basically I want to create a calculation with a measure filtered by one or two dimensions.

Current session is no longer valid due to structural Changes in the database

$
0
0

We are using SQL Server 2016 and Tabular model 1200. I have created a model with perspectives on it and built a live connected power bi report on one of the perspectives. When I click refresh then some of the random visuals breaks and if see details it's showing me the following error. I never faced this kind of error prior implementing the perspectives in the model. Can any one help me with this ? It's a production issue. If I hit refresh for Couple of times then it's working.

Error Message




Get count and percentage from flag measure

$
0
0

I have the following measure :

Case  
    When ([Dim Tipo Aval].[Designacao Aval].CurrentMember, [Measures].[Avaliacao]) < 10
    Then 0  
    When  ([Dim Tipo Aval].[Designacao Aval].CurrentMember, [Measures].[Avaliacao]) >= 10
    Then 1
End

wich leads to a table with 1 and 0 (if the students have passed or not). How can I count how many times the value one exists ? and calculate the percentage given the total ?

the fact table contains the grande and I have a dimension for the type of evaluation


MDX with YTD and PARALLELPERIOD slow?

$
0
0

Hi,

I am running the following MDX query and I think the query runs slow, it takes 8 seconds for 28462 rows and 9 columns.
The raw fact data is about 1.000.000 rows containing data on a monthly base over two years (24 months).

According to my SQL Profile trace the formula engine takes 99% of the time to execute, the storage engine only 1%.

I allready did the following:

1. Usage Based Optimization Aggregation and checked if the aggregation is used in SQL Profiler (this is the case).
2. Tried to rewrite the MDX in differente way's.
3. Set NON EMPTY BEHAVIOR on the calculated measure.
4. Checked the configratution of my DateTime dimension
5. Checked attribute relationships

According to this article: https://sqldusty.com/2014/03/07/do-you-know-why-your-mdx-query-is-slow/ my MDX query is not optimal because the formula engine takes most of the time calculating the results.
At the moment I don't know why it's taking 8 seconds and what I can do to improve the performance.
The query should run withing preferably <= 3 seconds so the SSRS reports is available within an acceptable time.

The server has 4 vCores + 24GB Memory.

MDX Query

SELECT NON EMPTY
    {
        [Measures].[Aantal Prognose t/m], --YTD Measure
        [Measures].[Omzet Prognose t/m], --YTD Measure
        [Measures].[Aantal Prognose Vorig Jaar t/m], --PARALLELPERIOD Measure
        [Measures].[Omzet Prognose Vorig Jaar t/m] --PARALLELPERIOD Measure

    }
On 0,
NON EMPTY
    [Opendatum].[H - Openjaar - Openperiode].[Openperiode Omschrijving]
    *
    [Specialisme].[Specialisme].[Specialisme].Members
    *
    [Zorgactiviteit].[H - Tarieftypegroep - Tarieftype - Declaratie].[Declaratie].Members
    *
    [Zorgproduct].[Zorgproduct].[Zorgproduct].Members
    *
    [DBCDiagnose].[H - Diagnosegroep - Diagnose].[Diagnose].Members

ON 1
FROM Productie
WHERE
([Opendatum].[Openjaar Periode Nummer].&[201808],[Omzetprognosegroep].[Omzetprognose Groep1].&[Overige productie])

Defintion of the measures used in the MDX query:

Measure: "Aantal prognose t/m"

AGGREGATE(YTD([Opendatum].[H - Openjaar - Openperiode - Opendatum].CurrentMember), [Measures].[Aantal Prognose])

Measure: "Omzet prognose t/m"

AGGREGATE(YTD([Opendatum].[H - Openjaar - Openperiode - Opendatum].CurrentMember), [Measures].[Omzet Prognose])

Measure: "Aantal Prognose Vorig Jaar t/m"

(PARALLELPERIOD([Opendatum].[H - Openjaar - Openperiode - Opendatum].[Openjaar],1,[Opendatum].[H - Openjaar - Openperiode - Opendatum]),[Measures].[Aantal Prognose t/m])

Measure: "Omzet Prognose Vorig Jaar t/m"

(PARALLELPERIOD([Opendatum].[H - Openjaar - Openperiode - Opendatum].[Openjaar],1,[Opendatum].[H - Openjaar - Openperiode - Opendatum]),[Measures].[Omzet Prognose t/m])

   

One Measure Group is not showing any data after sucessful processing

$
0
0

Hi,

I have made some changes in the Solution: dpdated data source view, created new measures and then deployed it.

After sucessful processing of Cube, when I browse the data, one measure group shows the data as expected and one measure group is not showing data in any of the meaures.

Any help would be much appreciated.

Best Regards,

Tahir

PS: I have already checked the visibility properties for cube, measure group and measures levels.


Thanks, TA

SSAS Tabular Scalability - Number of Measures & Number of Fact Tables

$
0
0

We have two major issues with SSAS tabular at the moment and would appreciate any advice or assistance to resolve:

Tabular model:  40GB, 30 dimensions, a couple with a few million rows, 15 fact tables +-30 million rows.

Server: Azure VM Machine - Standard DS14-8_v2 (8 CPU E5-2673 v3 @ 2.40GHz , 112 GB memory)

Number of Measures

Increasing the number of measures in the BIM file slows down development in Visual Studio when working with the BIM file and Power BI users find it impossible to add custom measures for their reports with long waits on edits of custom measures. This appears related to the sequence point algorithm on the SSAS service which takes longer and longer as more measures are added to the model.

Number of Fact Tables

As we have added additional fact tables, we have noticed a slow down in query response times. We created two identical tabular models, one fully populated and one with only the sales fact populated. We ran the same query over sales fact on both models, this generated the same query plan and row counts, but the CPU timing on the full model was higher on each step of the query plan and overall a significant difference in query response time, we assume that this is related to relationship management done by the SSAS service on the query.

We have done a lot of work on the DAX and will be upgrading the hardware and software (SQL 2017), but these two issues appear to be serious blockers to growing a consolidated solution. We are now considering splitting the model into multiple tabular models, to overcome these two issues, which will reduce measures and facts in a single tabular model and bring performance back up, but this will create complexity with reporting across the tabular models.  Has anyone experienced these issues, any solutions, suggestions or advice other than splitting the tabular model?

how to organize Calc. columns and measures in folders, both in Power BI and in SSAS Tabular

$
0
0

Hi, i would like to ask & confirm how to organize Calc. columns and measures in folders, both in Power BI and in SSAS Tabular.


Please confirm/correct or complete:


Organize Calculated columns in Folders - SSAS - use the folders attribute (these attributes will appear in a folder in PBI)

Organize Measures in Folders - SSAS - use the same technique as before


Organize Calculated columns in Folders - PBI Desktop - Is it possible ??????

Organize Measures in Folders - SSAS - use the technique of creating an empty table, and then change the "home folder" ? of the measure to the new table.


Regards

get how many times a student did a quiz

$
0
0

Hello,

I'm new to SSAS and I want to know the best way to get how many times a student did a quizz. The data (in the fact table) is divided in this specific form:

id_fact | quizz_id | id_student | id_aval

1 | 1 | 2 | 20

2 | 2 | 2 | 18

3 | 1 | 1 | 15

So I what I want from the result is:

the student with id 1 did 1 quizz;

the student with id 2 did 2 quizzes;

Thanks;

About one measure has decimal format , but user want different precision.

$
0
0

I have client ask if can convert one measure to different precision . like below .

 
CategoryAverage Unit Priceformat convert
Accessories       19.6920
Bikes                1,255.081255.08
Clothing       32.0932
Components     251.40251.4

i try use scope to focus on some product category , but it didn't work

SSAS Excel Depndency Filters

$
0
0

Good day,

i would to only display attributes where theres data, i have an item class and item

when i filter on Item class then i only want item related to the filtered class to be available for filter/selection

I dont really want insert into heirarchy and want to use as slicers

when in excel filters item attributes are available regardless of other filters

any ideas outisde of a structure?

Regards


Unable to Deploy Cubes - Error : Failed to save modifications to the server. Error returned: 'Internal database error: Library used incorrectly. SQLite Error Code=21. An error occurred while attempting to delete a row from the system table 'Table' in the

$
0
0

Hi, 

I am trying to deploy the cube which i have made some modification on adding few columns to it.

after that i am unable to deploy them but able to process it.

and now i have deleted those columns but still unable to deploy.

Can anyone give me some inputs.

Error :

Failed to save modifications to the server. Error returned: 'Internal database error: Library used incorrectly. SQLite Error Code=21.
An error occurred while attempting to delete a row from the system table 'Table' in the metadata database.

Please do guide me !!


Cannot see the change setting when i try to process my dimension

$
0
0

Hi All previously when i used 2008 BIDS i could see the change settings to custom process my dims, like ignore the duplicate key errors, now i cannot see the settings. The current version i am using is

Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.03056

Installed Version: Professional

Microsoft Visual Studio Tools for Applications 2015   00322-40000-00000-AA509
Microsoft Visual Studio Tools for Applications 2015

Visual Basic 2015   00322-40000-00000-AA509
Microsoft Visual Basic 2015


Visual C# 2015   00322-40000-00000-AA509
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA509
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   7.0.20622.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   2.5.6.4958
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Analysis Services   14.0.1016.232
Microsoft SQL Server Analysis Services Designer 
Version 14.0.1016.232

SQL Server Data Tools   14.0.61712.050
Microsoft SQL Server Data Tools

SQL Server Integration Services   
Microsoft SQL Server Integration Services Designer
Version 14.0.1000.169

SQL Server Reporting Services   14.0.1016.232
Microsoft SQL Server Reporting Services Designers 
Version 14.0.1016.232

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

I am attaching what i am seeing when i click on the process the dimesnions. Please suggest, is there a patch.

Thanks

SSAS Pivot Tables Grand Total

$
0
0

Hi All,

I am facing a problem where I got Stuck and I cannot see a way to solve.

So basic I have a small environment 2 currency and for that I use a Fact Rate table with Dates between USD and EURO to give me my sales in EUROS. With this I am able to see the sales amount in USD and EURO.

My rate fact Tables have the relations to the Sales dates only what is working fine.

All the tests I am doing as convert the USD Amount  with the EURO rate are fine, take in consideration I have a couple of rates per day. My big issues is when I use the excel with a Pivot table the Grand Total are wrong but if I sum all the Lines the values are Correct, so what I analyze and I check it is the Grand Total appears that is using only the Last Rate and ignore all the previous ones.

Any suggestion.

Thank you 


DG

SSAS cube Calculation for time to date

$
0
0

Hi Folks, 

We have a measure Called NumberOfOrders we need to calculate the measure on date.  Which is the Calculated measure 

I have used the below Expression, but In Excel Pivot Report if I applied the filters which measure isn't working. 

Any ideas please!

Expression:

IIF ( NOT ([Date].[Fiscal Year - Month].CurrentMember IS [Date].[Fiscal Year - Month].DefaultMember),
SUM(NULL:[Date].[Fiscal Year - Month].CurrentMember, ([Measures].[NumberOfOrders])),
IIF (NOT( [Date].[Calendar Year - Month].CurrentMember IS [Date].[Calendar Year - Month].DefaultMember),
SUM(NULL:[Date].[Calendar Year - Month].CurrentMember, ([Measures].[NumberOfOrders])),
IIF(NOT([Date].[Fiscal Year - Week].CurrentMember IS [Date].[Fiscal Year - Week].DefaultMember),
SUM(NULL:[Date].[Fiscal Year - Week].CurrentMember, ([Measures].[NumberOfOrders])),
IIF(NOT([Date].[Fiscal Calendar].CurrentMember IS [Date].[Fiscal Calendar].DefaultMember),
SUM(NULL:[Date].[Fiscal Calendar].CurrentMember, ([Measures].[NumberOfOrders])),
SUM(NULL:[Date].[Calendar Date].CurrentMember, ([Measures].[NumberOfOrders]))
)
)
)
)

Query To Retrieve Key Columns and Name Columns of All Attributes and Dimensions

$
0
0

I'm trying to put together a "data dictionary" of our cube environments, and am having difficulty finding a query for a simple problem.

I'm just trying to find a query that will list the following:

- All cubes in a database

- All dimensions/fact tables in each cube

- For each dimension, list their attributes AND their key columns (i.e., an Employee dimension has an attribute called Employee Name, and the underlying SQL Server table is called EMP and the SQL column is EMP_FULL_NAME).

I've found a software product that does this, but the output is in Word. I'd like to run queries and then put results into Excel.

Any help is appreciated.

Thanks! 


A. M. Robinson

Viewing all 14337 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>