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

Sub quries with MDX quries

$
0
0

Hi

can we use sub quries with in MDX.

also is there any way to use two diffrerent cube in same MDX query , both cube are on same server .

could any one please advise an idea . any sample mdx please share.

regards

Srini


Hierarchy in Grid is summing up percentage column

$
0
0

Dear Team,

I have a column which keep PERCENTAGE calculation based on 2 primary columns. This column is a  3 level as far as hierarchy is concerned, so far so good when I expand the Hierarchy in Grid report to 3rd LEVEL it shows the percent values from column as expected.

The problem comes when I drill-up to 2nd LEVEL or 1st LEVEL , here it shows the sum of all the PERCENTAGEs ( the values is showing as 989848% !!!)

 How can I show percentage of the 2nd (and 1st level) as relevant PERCENTAGE values in upper level to. Below screen shot is for your reference :

Any suggestions / hints will help a lot.

TIA

Improving performance variability for an Excel 2013 workbook connected to a SSAS 2012 tabular model

$
0
0

Hi,

I've build a SSAS 2012 Tabular model that has a fact table having some tens of millions of rows.

Moreover, I've created an Excel 2013 workbook in order to use a classic pivot table and some slicers/filters to query the tabular model.

I've noticed that for some slicer selections the response time is 1-2 seconds and for other selections the response time is 3-4-5 seconds.

Does this variability depend on volume data selected for the aggregation or do I need to run some checks?

Many thanks

Tabular Dax IsBlank Function

$
0
0

HI

I have a calculated column in my Tabular models fact table. The calculated column has a few nested if statements which then calls calculated measures which also calls an if statement. This formula was performing ok but then I needed to add anIF(IsBlank to the statement after which the performance got really bad. 

There is quite a few calcs that build on each other and I am not sure if it is just getting to complex.

Please see the below dax queries. The first query is performing fine and the second one is making the model deployment very slow. Any suggestions as to why this is happening? 

=if(IF(FactKPI[Actual] <= FactTargetKPI[Lo] && ISNUMBER(FactTargetKPI[Lo]),
        FactKPI[ActualLoLoLimit],
            IF(FactKPI[Actual] >= FactTargetKPI[High] && ISNUMBER(FactTargetKPI[High]),
               FactKPI[ActualHighHighLimit],3)))

=if(not(ISBLANK(FactKPI[Actual])),IF(FactKPI[Actual] <= FactTargetKPI[Lo] && ISNUMBER(FactTargetKPI[Lo]),
        FactKPI[ActualLoLoLimit],
            IF(FactKPI[Actual] >= FactTargetKPI[High] && ISNUMBER(FactTargetKPI[High]),
               FactKPI[ActualHighHighLimit],3)),BLANK())

Any help would be appreciated

Thanks, Drickus

How to not make Tables, Column and Data Available in Excel

$
0
0

Goal:
Not displaying the dimension table and its data in excel

Problem:
I was enable to deny access for the user roles in SSAS about denying access the data from the column but the next thing is that I do not know how dimension table and column not to be available in the excel.

Information:
*The datasource is SSAS
*I have made three user to have access to two tables only.

ssrs multiple values parameter with null using mdx query

$
0
0

Hi All,

I need to create a Parametrized ssrs Report  with parameter with option allow Blank value ("") and Allow multiple values.

but it give me below error .

I'm using MDX Query.

SELECT NON EMPTY { [Measures].[Vehicle Count], [Measures].[Driver Count] } ON COLUMNS, NON EMPTY { ([AD1 Age].[Age].[Age].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOSET(@ADGenderGender, CONSTRAINED) ) ON COLUMNS FROM [USDWH]) WHERE ( IIF( STRTOSET(@ADGenderGender, CONSTRAINED).Count = 1, STRTOSET(@ADGenderGender, CONSTRAINED), [AD1 Gender].[Gender].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

kindly help.

How to not make Tables, Column and Data Available in Excel

$
0
0

Goal:
Not displaying the dimension table and its data in excel

Problem:
I was enable to deny access for the user roles in SSAS about denying access the data from the column but the next thing is that I do not know how dimension table and column not to be available in the excel.

Information:
*The datasource is SSAS
*I have made three user to have access to two tables only.
* Totally, I have two roles that is

1. Manager
2. Employee.

Manager can see all dimension table and its data och column. The Employee can't view all table, column and data.
If you are a employee you cannot see the table, column but as a manager you can see all of them in Excel.

Excel report alters the Tabular Model cube for all users

$
0
0

Hi,

I run a tabular model SSAS cube that is processed once a day. That works just fine.

The problem I noted occured after creating an excel report. What I, for example, do is create a pivot table using one measure and a couple of dimension attributes. On one of the dimensions (Supplier) I filter on a specific item. I then remove the filter but the totals are still showing the sum for the specific supplier. And the measure is a basic sum so it is clearly wrong.

A refresh does nothing and even running the MDX created by Excel in SSMS yields the strange result. On the test server the same query yields correct results. A processing of the cube resets the problem and the figures are ok again. However I'm able to recreate the same problem again, even using other suppliers.

The problem affects all users. A collegue can start a new excel using a new connection and still be affected by the filter for the specific supplier. I.e. my excel report has affected the data in the cube.

For me this is very strange and I would be very happy if anyone could shed some light on the problem.

Thanks,
Martin


SSAS partition creation too slow

$
0
0

Hi,

At times I am getting issue in prod where the partition creation is too slow. Usually it takes less couple of minutes and on some days it takes couple of hours for that.

Can you please suggest some reason for that.??

Some Analysis-  I'm using lazy aggregation in cube. Can that be a reason for the slow partition? If yes can there be a way to handle this?

Thanks


madhur_ms

Previous day calculation in MDX

$
0
0

I am new with MDX query and came up with the following with a hardcoded date.

SELECT NON EMPTY { [Measures].[Rejected], [Measures].[Withdrawn], [Measures].[Expired], [Measures].[Approval Rate], [Measures].[Approved], [Measures].[Received], [Measures].[Processed Total] } ON COLUMNS, NON EMPTY { ([Application].[Channel Name].[Channel Name].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( { [Calendar].[Year Month Day].&[20131211] } ) ON COLUMNS FROM [AcquisitionApplication]) 
WHERE ( [Calendar].[Year Month Day].&[20131211] ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

Can somebody please help me with getting the previous day data based on the query I came up with? Any help will be greatly appreciated.

Thanks.

Problem when passing the row context to a measure - SSAS Tabular

$
0
0

Hi,

I need to implement such measure in a Tabular model:

myMeasure :=
SWITCH (
    VALUES ( myFACT[FLAG] );"1"; CALCULATE (
        SUM ( myFACT[Amount] );
        myFACT[FLAG] = "1"
    );"2"; CALCULATE (
        DIVIDE (
            SUM ( myFACT[Val1] );
            SUM ( myFACT[Val2] )
        );
        myFACT[FLAG] = "2"
    )
)

Inside the project I've no issues about the syntax, but when I've tried to use the measure inside Excel I've an issue related to "a table of multiple values was supplied where a single value was expected".

I need to reference to the context row of the fact table.

How can I solve this issue?

I need assistance with an inpersonation issue

$
0
0

I'm having  an issue with impersonation on my data source. I've got it set to inherit. When I go to deploy my cube it fails with the error ODBC error: Login failed for user 'CORP\[my computer name]'.

I'm not sure why it's passing my computer name. The only option that works is to give it a specific account which I know isn't best practice.

Formatting attribute in dimension table

$
0
0
I have date and float in attribute in a dimension table. If deploy my cube and I try to create a report with RS, I can't format this data. The value seems to be a String so I have to do a CDate or a CDbl before formating it.
I have no problem when I try to format my measures.

Thanks for your help.
Cheers,

SQL updates

$
0
0

I want to update stock table of stock qty.

Stock(table) I have serialNo,Itemcode,Expirydate,qty,avgprice

We take physical stock recently. So I want to update the variant of  physical stock qty.

So here I have Itemcode,ExpiryDate,qty

Note Itemcode and qty will appear depends up on the expiry date.

So can any one help me to how to update more than 2000 Item with single query.

Physical stock varient they are giving as  excel sheet.

Plz let me give a good solution for it.

How to make simple updation instead of doing one by one update as manual in system.

Give me simple query.

Execel sheet of physical data I can  import another table . With joinging any update query we can make it.


AK

Understanding of “Process” and “local cube”?

$
0
0

What is the definition of "Process" and "local cube" based on the pictur's selection?


Get only all Selected Members

$
0
0

I am working with SSAS 2012.

I build my cube, so far everything is ok. I only have one problem.

I want to get all Selected Members in my list in excel.

Here is the example: https://drive.google.com/file/d/0B8onHvwlltS4U3oyYVVRbFZVd1k/edit?usp=sharing

I tried to MDX expressions and none returned my what I want.

Generate((Existing [SKU].[Month].[Month]),  [SKU].[Month].Currentmember.name, ", ")
Generate(Nonempty( [SKU].[Month].[Month]),  [SKU].[Month].Currentmember.name, ", ")

I want the result to be like this: February, January, May!

For the 3 lines in the excel

Line1=February,January,may Line2=February,January,may Line3=February,January,may

My cube contains 9 month.

My current selection as per the image is only 3 month.

I want the mdx to return to me the selected month in every line of the excel sheet.


Ramzy N.Ebeid


Understanding of the terminology “Inherit”

$
0
0

What is the definition of "Inherit" based on the picture?

MDX - How to use IIF function in-line to eliminate null values

$
0
0

Hi all,

I have a MDX query as follows;

WITHMEMBER [Measures].[Production Previous] AS SUM(([Measures].[Production Amount], [Date].[Calendar].CURRENTMEMBER)) - SUM(([Measures].[Production Amount], PARALLELPERIOD([Date].[Calendar].[Year], 1, [Date].[Calendar].CURRENTMEMBER))), FORMAT_STRING = "#,#0.00"

MEMBER [Measures].[Production Achievement] AS [Measures].[Production Previous] / [Measures].[Production Amount], FORMAT_STRING = "Percent"  

SELECT{[Measures].[Production Amount], [Measures].[Production Previous], [Measures].[Production Achievement]} ON COLUMNS,
{[Date].[Calendar].[Year].MEMBERS} ON ROWS
FROM [Procuction Analytics]

calculated member [Measures].[Production Previous] returns null values and I want to replace these null values with 0. I could writeIIF([Measures].[Production Previous] = null, 0, [Measures].[Production Previous]) as another calculated member and use this member in the query but is there a way to achieve this without creating a second calculated member?

I am still learning MDX and I cannot think of a solution by myself.

Thanks and best regards...

The Difference between “Cell Data” and “Dimension Data”?

$
0
0

What is the difference between the tab "Cell Data" and "Dimension Data" in SSAS?

Automatically hide key in user hierarchy

$
0
0

 i have a  user  hierarchy 


key of my geography  dimension is FIPSCODE

in my hierarchy  i have

state

FIPSCODE

city


i have data

State-FIPSCODE-CITY

FL-12001-A

FL-12002-BZ

FL-12002-BV

FL-12003-MN

now when i  browse my hierarchy, i didn't find 12002-BV

please help me on this

Regards,

Manish




Viewing all 14337 articles
Browse latest View live


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