Viewing 15 posts - 46 through 60 (of 113 total)
Think I've got the iif statement the wrong way around
IIF(ISEMPTY([Measures].[Sales Amount] )
,NULL
,SUM ({ [Company].[All Company].[COMET]},[Measures].[Sales Amount]) )
,NON_EMPTY_BEHAVIOR = {[Measures].[Sales Amount]}
Apologies
Mack
January 20, 2013 at 10:09 am
Is this a duplicate post of this? http://www.sqlservercentral.com/Forums/Topic1409208-17-1.aspx
Mack
January 20, 2013 at 8:44 am
You could use a case statement or iif statement. I'd also use the non_empty_behavior clause as well
IIF(ISEMPTY([Measures].[Sales Amount] )
,SUM ({ [Company].[All Company].[COMET]},[Measures].[Sales Amount])
,NULL)
,NON_EMPTY_BEHAVIOR = {[Measures].[Sales Amount]}
Mack
January 20, 2013 at 8:42 am
There is a very recent thread on this already
http://www.sqlservercentral.com/Forums/Topic1407198-17-1.aspx
Mack
January 16, 2013 at 2:32 am
Does it all look fine in the solution? Maybe redeploy it
I had a similar issue once when using ClearCase as our source control (it didn't always check in all...
January 11, 2013 at 7:21 am
Sounds like you're not having the best day....
January 11, 2013 at 7:15 am
Sorry for being unclear..... Edit the dimension of the cube and go to properties of the offending attribute. KeyColumns --> DataType needs to be changed from WChar to Integer
The cube...
January 11, 2013 at 7:00 am
You'll need to alter the datatype of the attribute
Edit the dimension and go to properties of the offending attribute. KeyColumns --> DataType needs to be changed from WChar to...
January 11, 2013 at 6:55 am
Depending on how big you dimension is then recreating it is an option
However you can change the table ID tho...
Edit the dimension - click on each attribute and go to...
January 10, 2013 at 5:26 am
You need to add this to the calculation script of your cube
CALCULATE;
CREATE SET CURRENTCUBE.[ThreeMonths]
AS
LastPeriods(3,StrToMember("[Take Date].[Month].&["+CStr(Year(Now()))+"-"+Right("00"+CStr(Month(Now())) ,2)+"-01T00:00:00]").lag(1));
Mack
January 9, 2013 at 9:52 am
Try
SELECT
NON EMPTY{
{[Measures].MEMBERS} *
{[DIMLINEOFBUS].[LINEOFBUSTYPE].&[Commercial],
[DIMLINEOFBUS].[LINEOFBUSTYPE].&[Auto],
[DIMLINEOFBUS].[LINEOFBUSTYPE].&[Residential]}
ON COLUMNS,
NON EMPTY {
{[Dim Geographic].[COUNTYNAME].[All].children} *
{[Dim Geographic].[CITY].[All].children} *
{[Dim Geographic].[POSTALCODE].[All].children} *
{[Dim Geographic].[LOCATIONID][All].children}
} ON ROWS
FROM (select [Dim Geographic].[Policy].[STATECODE].&[27] on columns from...
January 9, 2013 at 1:04 am
Couple of questions, how are you processing it? What service is being killed - can you connect to SSAS or SQL Server after the cube has failed?
The error looks...
January 7, 2013 at 8:13 am
You can do it in two ways
{[Set of Locations]} - {[Set of exclusion locations}
For example
SELECT NON EMPTY { [Measures].[Revenue] } ON COLUMNS ,
NON EMPTY { [Client].[Region].[All].CHILDREN } - {[Client].[Region].[AEJ]}...
January 4, 2013 at 8:52 am
hmmmmmmmm
Looks like you make have to add a Month Name attribute to you time dimension so it will group the months of the year
MonthMonth Name
Jan-10Jan
Jan-11Jan
Jan-12Jan
Jan-13Jan
Feb-10Feb
Feb-11Feb
Feb-12Feb
Feb-13Feb
Another alternative is to set up...
January 4, 2013 at 6:19 am
Are you trying to sum months - so January is Jan 10 + Jan 11 + Jan 12 + Jan 13
Or do you want to sum across products like so:
Select...
January 4, 2013 at 5:40 am
Viewing 15 posts - 46 through 60 (of 113 total)