I have an existing dimension in the SSAS cube and when I connect to the cube by Pivot table in Excel, I see that dimension, and I see hierarchy underneath , and underneath of that I see ...MoreFields, and some attributes of the dimension are shown here, but I cannot figure it out, what property to set in SSAS cube project to show/hide this fields?
Go to dimension tab, right click on your attribute. Set the attribute hierarchy visible to false. This will stop your attribute from being visible.
Related
I am now adding to something I am writing and need to offer the user the ability to place dimensions and measures on either the rows or columns.
I am about to test an idea to make the MDX for the example in the picture but realised I should also ask any MDX experts too!
So how would one go about pulling off this sort of layout? I cannot view the MDX generated by this Excel (data redacted due to being on site somewhere, also why I cannot download addins for MDX generator etc)
I actually did manage to get the OLAP extension addin installed.
https://github.com/OlapPivotTableExtensions/OlapPivotTableExtensions/releases/tag/v0.8.4
This will help me add some stuff to my MDX generator and prove invaluable as you can see the MDX Excel generates.
SELECT NON EMPTY Hierarchize(AddCalculatedMembers({DrilldownLevel({[Ccy].[Ccy].[ALL].[AllMember]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME ON COLUMNS , NON EMPTY Hierarchize(AddCalculatedMembers({DrilldownLevel({[Book].[Book].[ALL].[AllMember]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME ON ROWS FROM [TraderCube] WHERE ([Date].[Date].[ALL].[AllMember].[2019-12-12],[Measures].[JTD.SUM]) CELL PROPERTIES VALUE
I am new to SSAS. Have added a new dimension to cube and when i see under members it shows the value of that columns but under browser section when i drag and drop the dimension it does not display anything
We need more information on what steps you took to get where you're at.
Do you have a relationship between the dimension and measure group?
Did you process the dimension, the cube?
I believe what is happening is that you haven't included a measure in the cube browser so it returned only the report dates which have a value for the "default measure". If you go to the first tab of the cube designer and right click on the cube node above the measure groups list on the left and choose Properties you will see a DefaultMeasure property. You can set that property to choose the measure which is the "default measure" when a user doesn't specify a measure in their report.
However I would recommend just dragging a measure into the cube browser to explicitly tell it to show report dates that have a value in that measure.
I also prefer not setting the DefaultMeasure property and adding the following to the MDX script so that the default measure is always null. That forces users to explicitly add a measure to their pivot so it is clear what they want.
CREATE MEMBER CURRENTCUBE.[Measures].[NullCalc] as NULL
,VISIBLE=0;
ALTER CUBE CURRENTCUBE UPDATE DIMENSION Measures, DEFAULT_MEMBER=[Measures].[NullCalc];
I made change to database, only changed datatypes from int to money.. But I can't make it appear in my cube, it is still unchanged. But if I create new cube, it is OK. But I don't want to create new cubes every time I change something in database...
Some know how do refresh the cube? Thanks
You need to first refresh your Data Source View, then edit wherever you are using that column in cubes or dimensions.
if you right click on your project containing your cube and then select "Process", cube will be processed and the data in the cube will be updated with the data on database .
How do i hide an attribute from appearing as a field when creating a pivot table.
e.g. i dont want the user to see the PK of a dimension. Thanks
Within SSAS, set teh AttributeHierarchyVisible value to false on the value of the dimension that you wish to hide from client tools. You will find this property available on each of the dimensions attributes.
So I have a database schema and now I need to create a Cube for Analysis Services. I am, however, having an issue with one of the columns.
Here is what I did:
1. Create the Data Source
2. Create the Data Source View
3. Create dimensions, and this is where the problem is...
So my database has 10 tables and most of them work fine except for one. One table 'CustomerSatisfaction' has the columns 'year' 'quarter' 'customerSatisfactionValue' and 'productID'. Now when I create dimensions from this table I can't see the 'quater' column.
Basically I use the create dimension wizard but on the 'Select Dimension Attributes' section of the wizard I can't see the 'quarter' column. Any ideas why this is? I really want 'quarter' to be an attribute but it doesn't seem to be working...
Thanks for any help!
Is quarter listed as a column in the data source view?
If so, open up the dimension designer and drag the attribute from the data source view (on the right) to the attribute list (left).
If not, you'll need to fix the dimension query / refresh the table column listing in the data source view.