Rounding down problem in an SSAS Tabular Cube - sql

So one measure from my tabular cube is a View column in my database. For a certain combination of filters, its value in my view is 51.18, while when I query the cube, it gives me 51.
Any idea where the rounding down may have come into play ? I'm not that familiar with SSAS so sorry if it's a little shaky, I'm still Learning.

Open your SSAS Model in VS, select the measure and under properties you will see a format field which you can change to decimal.

Related

MDX - Dimension on rows and Measure and a Dimension on Columns

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

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.

How to refresh a cube in SSAS, after making change to database

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 .

I am not able to get dimensions and fact values while browsing cube in SSAS 2005

I am new to SSAS. I have two tables, FactAnswers and DimDebit. one dimension and one fact. After creating cube when I try to browse dimensions and fact, I got nothing. I want to get AnswerValue from fact table and Debit values from Dim table. Everything you can see in this figure.
Please guide me, Where I am wrong.
Thanks
Have you processed the database yet? That is what actually "loads" data into it...deploying just builds the structure.
Also, are you trying to browse the cube via BIDS, SSMS, Excel, something else?

Pentaho Report Designer: How to create a chart based on an OLAP cube?

Using Pentaho Report Designer, I can successfully display my OLAP cube's data as a table.
But when I want to display the same data as a chart, it always fail saying "CHART.USER_NO_DATA_AVAILABLE".
Actually, I don't really know what I should enter for category-column and value-columns. I tried:
category-column = [Area].[prefecture]
value-columns = [[Product].[Product.Product].[All Products].[productA]]
And any other variation I could think of, but no success. Any idea? Thanks!
My OLAP cube is a Pentaho Analysis: sales count for each product and prefecture.
Just use:
[Product].[Product.Product].[All Products].[productA]
You only need the extra square brackets around the entire fieldname if it's a formula.
Or pick the field from the dropdown.. then you know you have the right one!
If you're doing a timeseries xy, note you have to repeat the category column value as many times as the value column.
also make sure you have a series name too.