Showing posts with label pivot. Show all posts
Showing posts with label pivot. Show all posts

Monday, March 26, 2012

members not shown in pivot table

Hi Guys,

Some members of my dimension are not shown when use it in a pivot table. To prove this, I've browsed the dimension using the Business Intelligence. I search the member using the Find member. filtered the data that were not displayed and the result showed me that the member exists.

Is there a problem with the structure of my dimension or with my data? How can I resolve this issue?

Please enlighten me on this one.

thanks in advance...

It is hard to say what is going on without actually seeing the dimension design.

Try first experimenting with smaller size dimensions. Try substituting dimension table in DSV with named query limiting only to the members you suspect not seeing.

Hope that helps
Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights

Member count limit

Hi Guys,

Is there a limit in the number of members in a dimension?

I'm having a problem in showing the other members of my dimension in the pivot table.

I've queried the dimension table and found out that the records displayed are from 1 - 32000 only. The rest were not shown in the pivot table.

Please enlighten me...

What version of Analysis Services you are using: 2000 or 2005?

But anyhow. It looks like you are running into the limitations of pivot table. Try running your query in some other client tool.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights

|||

Larry is using Analysis Services 2005 along with the new Pivot Table Services.

It seems that the limitation is only present in the page field. It doesnt display all the members of a particular parent. It stops listing somewhere around 35k of members.

Any insights on this one anyone?

|||

I would guess that is being limitation of the Pivot Tables. You can try and contact Excel product support and try and post on the Excel public newsgroup. (microsoft.public.excel or microsoft.public.excel.misc)

Hope that helps.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights

sql

Wednesday, March 21, 2012

Measures to columns in Excel

Dear anyone

I am transfering the information from the cube to Excel.

My wizard places all measures in the pivot table to one column. I am using Excel 2003.

I would like to place the measures to different columns to get a result which is easy to read and copy.

Could anyone advice me how this can be done ?

Thanks !

Matti

You just have to drag & drop the field "Data" from the rows to the columns.|||

Thanks Rmi

Your advice sounds simple, I expected the same.

The problem is that but my Add-button is inhibited when

trying to do that. Could this be caused by cube definitions ?

Matti

|||

If I try to use drag and drop, I get an error from Excel. Translation of error message is something like this: "The field You are transfering can't be placed in this area of the pivot table".

Matti

|||I don't think it comes from your cube. I am sorry if my answer seems a little too simple, but are you sure you drag & drop the field on the header of the columns (not the content of the table). In fact you can put numeric values in the content of table, but dimension attributes need to be in row headers or column headers or filter.|||

I want to summarize, that I can easily drag and drop all dimensions to either lines or to columns Measures I can only place to the same column.

Matti

|||Yes, of course, sorry I got lost... I just wanted you to drag and drop the field "data" which represents the Measures on the header of the column. And if it doesn't work, then I will let someone else help you because I don't have another idea...|||

Thanks for kind help Rèmi !

This is a question of the layout of the report and the form of the paper.

What I get is:

DimA1 DimA2

DimB1 MV1A1B1 MV1A2B1

MV2A1B1 MV2A2B1

DimB2 MV1A1B2 MV1A2B2

MV2A1B2 MV2A2B2

What I want to get:

DimA1 DimA2

DimB1 MV1A1B1 MV2A1B1 MV1A2B1 MV2A2B1

DimB2 MV1A1B2 MV2A1B2 MV1A2B2 MV2A2B2

.

.

.

Matti

Wednesday, March 7, 2012

MDX query to filter the cube

I have to populate a pivot table. I am using source of the pivot table as an analysis cube. My code is similar to this :

pivotCache.CommandText = "<name of the cube>";
pivotCache.CommandType = Microsoft.Office.Interop.Excel.XlCmdType.xlCmdCube;

Now

my requirement is to show a filtered cube, not the whole cube. I am

using SQL server 2000 Analysis Services to prepare and store the cube.

I

think an MDX query as commandText can do this. But I am not being able

to write the suitable MDX that can give a filtered cube which I can

use to populate pivot table?

I have used MDX query as "select

from <cube name> where <filter condition(s)>" . But it is

showing that no column found that excel can use.

What would be the currect MDX?

I dont think writing custom MDX is the way to solve your problem with OWC. You should look at the ways to use OWC built in functionality to restrict your data.

Try creating PivotTable report in Excel and then save it as a web page with interactivity. You will see Excel creating a web page with OWC built in it.

That should give you an idea how to control OWC.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

If you want to restrict access to the cube in pivottable with OWC 11, you have to do this with permissions of the SSAS. I am using SSAS 2005 and you can create a Role and set exactly which dimensions and which members within a level the customer is able to access. I thought at the beginning that I have to write mdx and set it as CommantText or Mdx property of the pivottable, but this is not the case. You have to do it with access security of the Analysis Services.

There is something more that I found about filtering data in pivottable, but this is not what you need. You can set which fields could be included or excluded programatically, but the user still can change these values (at least I think so). The code is like this:

Code Snippet

varArray = Array("Bikes")

pivotTable.ActiveView.FieldSets("Category").Fields("Category").IncludedMembers = varArray

MDX query to filter the cube

I have to populate a pivot table. I am using source of the pivot table as an analysis cube. My code is similar to this :

pivotCache.CommandText = "<name of the cube>";
pivotCache.CommandType = Microsoft.Office.Interop.Excel.XlCmdType.xlCmdCube;

Now my requirement is to show a filtered cube, not the whole cube. I am using SQL server 2000 Analysis Services to prepare and store the cube.

I think an MDX query as commandText can do this. But I am not being able to write the suitable MDX that can give a filtered cube which I can use to populate pivot table?

I have used MDX query as "select from <cube name> where <filter condition(s)>" . But it is showing that no column found that excel can use.

What would be the currect MDX?

I dont think writing custom MDX is the way to solve your problem with OWC. You should look at the ways to use OWC built in functionality to restrict your data.

Try creating PivotTable report in Excel and then save it as a web page with interactivity. You will see Excel creating a web page with OWC built in it.

That should give you an idea how to control OWC.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

If you want to restrict access to the cube in pivottable with OWC 11, you have to do this with permissions of the SSAS. I am using SSAS 2005 and you can create a Role and set exactly which dimensions and which members within a level the customer is able to access. I thought at the beginning that I have to write mdx and set it as CommantText or Mdx property of the pivottable, but this is not the case. You have to do it with access security of the Analysis Services.

There is something more that I found about filtering data in pivottable, but this is not what you need. You can set which fields could be included or excluded programatically, but the user still can change these values (at least I think so). The code is like this:

Code Snippet

varArray = Array("Bikes")

pivotTable.ActiveView.FieldSets("Category").Fields("Category").IncludedMembers = varArray

MDX query in excel sheet

I am using Excel 2007 and SSAS 2005. I have an excel report that is done by pivot tables, accesing my SSAS cube. Is it possible to view and edit the MDX query for the report? Can I pass parameters to MDX query? If so how?

You can use vba to extract the MDX query from a pivot table, but I do not believe there is anyway to change it. I have not tried this in 2007, but you could not in Excel 2003 and I have not heard anything to make me believe otherwise.|||

Here's a blog post from Marco Russo that provides the code for doing this.

http://sqljunkies.com/WebLog/sqlbi/archive/2007/01/18/26875.aspx

Saturday, February 25, 2012

MDX Pivot Table

Hi Everybody:
I have only SQL Server 2000, AS and Office 2000... and i need to build a
customized Excel VBA system with drill-down & drill-up functionality from an
Analysis Services cube. I would like to avoid a lot of VBA/MDX program
code...so the question is: can i control Excel 2000 Pivot Table from VBA MDX
code?... i mean, to fill the PivotTable from a specific MDX query, remaining
the pivot-table functionality...
Thanks a lot...
RodrigoNo.
"Rodrigo" <Rodrigo@.discussions.microsoft.com> wrote in message
news:858EE816-20D8-4FA8-9020-EF0A4DDB4123@.microsoft.com...
> Hi Everybody:
> I have only SQL Server 2000, AS and Office 2000... and i need to build a
> customized Excel VBA system with drill-down & drill-up functionality from
> an
> Analysis Services cube. I would like to avoid a lot of VBA/MDX program
> code...so the question is: can i control Excel 2000 Pivot Table from VBA
> MDX
> code?... i mean, to fill the PivotTable from a specific MDX query,
> remaining
> the pivot-table functionality...
> Thanks a lot...
> Rodrigo