I have two SSAS cubes (wages and sales) in one project. I need to find wages to sales by dividing wages with sales. to achieve that i need to get wages value in wages.cube then dividing it with sales value in sales.cube, is it possible to calculate between two different cubes?
No. Not directly in a calculated measure.
Are wages and sales in different cubes because of different security concerns?
It would be more usual to have a wages measure group and a sales measure group in the same cube. You could just add the wages measure group to the Sales cube and hide it from users
Related
I am using SSAS Multidimensional cube.I have factsales and two dimdate,dimsalespoint table. I need to show top sales every month by sales point.Also i need to show this data into power bi.My cube brower will be look like
July salespoint1 1254
Aug Salespoint2 2589
Sep SalesPoint3 85236.
Per month which sales point sales high.
It will also filter year, product etc.
Can any one help me.
I think that you can do this with only PowerBI
You juste need to drag you sales infos and select max aggreagate and filter them by month and salespoint.
In powerBI you connect to your cube
you drag and drop your salesvalue and select the matrix visual
you use salespoint in row , date in column and salesvalue in values
You can select a max aggregate on your values
You'll get something like this :
and you can navigate in the date hierarchy by using the arrow on the top right
If you use a live connexion with an OLAP cube.
You can replace you max in powerBI by doing these step :
and select max
you then have to use this measure in the powerBI report because it will be based on your table filtered by what you put in the visual(date, salespoint,...)
I would like to have a calculated measure (rolling_sum) that sums up all the values up to a selected month in the year and I would like to be able to query this measure without the date dimension.
So, I have the following calculated member:
SUM(YTD(),[Measures].[Value])
Querying this measure works fine when the query includes the date dimension, however I would like to be able to query this measure by other dimensions without the date dimension.
Would this be possible?
This is a slight modification of what I stumbled upon while searching the web:
Let's say I have a dimension PROJECTS which contains:
project_id - unique id
category - category of a cost
project_date - date of summing up the cost
My warehouse also has the dimension of TIME with date, and a dimension COSTS containing values of costs. Those three dimensions are connected by the measure group EXPENSES which has:
id_date
id_cost
id_project
I want to wirte an MDX query which would group the projects by their category, and sum up all the costs, but only those which do not exceed the date given in the project_date attribute of the dimension PROJECTS (each category has the same project_date, I know it's redundant but I can't change it..)
I'm not sure, but maybe something alongside this?
SELECT
[COSTS].[COST] ON 0,
[PROJECTS].[category] ON 1
FROM [CUBE]
WHERE
[PROJECTS].[project_date] < #project_date
I have a calculated measure that needs to cross join Customer and Product dimension then cross join a total sales measure to get a percentage for a specific customer sale.
[Measures].[Sale Value] / [Measures].[Total Sales]
each measure has a link to the time dimension, and are set to last non empty.
The problem is that as I look at more information over longer periods (days, months, years etc) it gets slower and slower and slower. I am assuming this is because the calculated measure does its processing on the fly and there is no caching.
Is this correct? I have about 2000 customers and 50 products.
Please please help! any information about how to speed this up would be great.
The answer to this was to set a many to many relationship between Customer/Prodcut and the [Measures].[Total Sales] measure group.
I am encountering an issue in which I have sales which can be part of multiple promotions. I am trying to use a sales fact table which will have multiple rows for sales in multiple promotions. Thus, the cube can only accurately be used to aggregate sales within a promotion, not across promotions.
e.g., here are a couple of rows that could appear in the fact table:
saleid sku sales_date promotion_id revenue
1 123 1-1-2013 1 10
1 123 1-1-2013 2 10
This is one sale which gave the company revenue of $10, but it was part of two different promotions. I want to give users the ability to sum sales for promotion 1, and sales for promotion 2, but not for all promotions at the same time (which would indicate $20 of sales overall).
I think that this should be able to be done in SSAS, but I can't figure out how to do it. Ideally the cube would be defined so that the user can only use it in conjunction with the promotion dimension (and other dimensions as desired), but I'd settle for defining the facts so that they cannot be summed across promotions.
thanks, --sw