Rename Attribute Members in SSAS - ssas

In my database, I have a Date table with a Quarter column. This contains the integers 1, 2, 3, or 4. Structurally, everything in my cube is fine, but rather than just displaying the numbers, I would like to display Q1, Q2, Q3, Q4.
Is there any way to rename the members so that they are prefixed with a Q. I could add a name column to my database, but it would be better if I could just do it in the cube.
I have tried putting "Q" and "Q"0 into the format string, but this does not seem to work.

You can use a named calculation in the Data Source View to do this. See the documentation for details: http://msdn.microsoft.com/en-us/library/ms174859.aspx

Related

Separating one column into several columns

Okay. This is a little bit complicated for me to explain and I am not even sure there is a way to do this using SSMS or MS Excel. Let's start...
I would like to do data analysis for a family-owned company. We use ERP system which has the option to export some sales reports. I would like to see our sales from last year for a specific item and sales representers and other analysis. However, I have a column and right below that column, there is another column which has different information and data type. I attached an example which describes the situation better than me.
Job# column overlaps with Item Price (which shows as NULL), date column overlaps with service price and job type column overlaps with total price column for every job.
Date column shows 43525 instead of March 1, 2018 and if I try to change this to date column then it affects the service price column. Although, it doesn't let me to change it.
It would be nice if I can separate those columns which overlapenter image description here one another. Any suggestion would work. Is there a way to do it dynamically using SSMS or Excel?
Thanks in advance for your time!
enter image description here

SSIS/SSAS How can I show Month.Year as time dimension?

I am building a database for some data to build a cube (SSAS) after. Until now everything is fine and works but I want to modify my time dimension. Since now I have a table with year, month and day and use it as dimension. But for my use it would be nice if the hierarchy is not just like (2016-->5-->20); instead I want to show month.year at the month level (in this example: 05.2016). I had no problems separating the date but I can`t find a solution to show this part or to combine the two columns in SSIS. Is there any possibility to do so or can I create this in SSAS while setting up the cube?
What I´ve found out is that with the cast and datepart command I can show the things I want in the SQL Server Manager but I am a newbie in MS SQL and don`t know how to save the calculations in a new column.
Add a MonthYear column to your dimension table and populate it with a derived column transformation in SSIS that concatenates the month and year columns.

PowerPivot - How to filter columns yet retain grand total

in the table below, I would like to graph a subset of the columns, specifically the ones highlighted in green. however, I would like to compute the percentage based upon the grand total of the whole set. filtering columns rescopes the data set and hence the denominator.
I would like to show and graph columns "4" and "Excellent value (5)" while retaining the current "Grand Total." for the ct row, for example, the value would be 8/14 for column "4", and likewise for other cells.
as a candidate solution, I created a secondary table which references the table shown below. is this the cleanest way to accomplish the goal? it seems a bit kludgey and rather time consuming.
ultimately this graph will be rendered in sharepoint so it needs the dynamic interaction with the ssas data. I am assuming that this will be the case since my derived table is using the GetPivotData function which the parent table uses.
You need an ALL() to open out the filter context which in turn means that it doesn't matter which columns are selected.
Assuming you have a table called 'table' and a column called 'response_id' you could use something like:
= SUM(COUNTROWS(table)) /
CALCULATE(COUNTROWS(table), ALL('table'[response_id]))
If your real life problem is more complex then you might need to adjust the ALL() to include other columns or look at ALLEXCEPT() to do the opposite.

GROUP BY over data in PowerPivot

In my PowerPivot I have a master data table which comes via an extract from system x. Now I want to be able to "GROUP BY" over a certain column from the same data. What would be the best approach here? There are more than 600.000 lines involved.
I have already tried following DAX query but it won't work:
SUMMARIZE('SAP extract', [cost element], sum('SAP extract'[val]))
Returns:
Query(1,, 47) Function SUMMARIZE expects a column name as argument number 3.
Kris,
I would suggest creating a new measure -- guessing from you question, that would probably be a simple SUM (see documentation here), something like:
=SUM(Sales[Amt])
This should be then automatically added to your currently active powerpivot table.
If you then want to group the data by anything, simply drag the dimension into the rows section and you should be able to see the aggregated sums sliced by the dimension you chose.
Hope this helps.

Dimension Attribute not showing up in Business Intelligence Dev Studio

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.