Viewing 10 posts - 4,066 through 4,075 (of 4,075 total)
First, you really should simplify your code. I struggled through what you were trying to accomplish with your statement. I figured out that this section CONVERT(DATETIME,STR(YEAR(CreateDate))+'-'+STR(MONTH(CreateDate))+'-'+STR(DAY(CreateDate))
+' '+STR(DATEPART(HOUR,CreateDate))+':'+STR(DATEPART(MINUTE,CreateDate))+
':'+STR(DATEPART(SECOND,CreateDate))) serves...
July 28, 2009 at 12:09 pm
Well, you could use a CASE statement or a UDF, but you would need to use it in both your SELECT clause and the WHERE clause. Otherwise you're going...
July 27, 2009 at 7:27 pm
You need to use the IIF(<Logical Expression>, <True Part>, <False Part>).
Also, I think that your false part can be greatly simplified by using the DateAdd() function. Try the following...
July 27, 2009 at 1:33 pm
I did a Google search and quickly came up with a number of web pages that tell you how to do this. There is a third-party transformation, but that...
July 26, 2009 at 6:42 pm
Your CASE statement is fine. The problem is in your PIVOT statement. You have PIVOT
(
MAX(fldTCN)
FOR fldTCN IN ([1.1],[2.2],[3.3],[4.4])
) AS Pvt
This gives you the max of the field that...
July 26, 2009 at 9:37 am
I'm still learning MDX myself, so I'm not sure I can explain why it is necessary. I knew that you shouldn't be getting the exact same average for each...
July 24, 2009 at 7:00 pm
It looks like your trying to use the same attribute as the name for each of your four hierarchy levels. You're going to need a separate attribute for the...
July 24, 2009 at 6:33 pm
I came up with an even simpler solution. WITH
MEMBER AvgPerDay AS
Avg(
[Due Date].[Dim Time].Children * [Due Date].[Day Number Of Week].CurrentMember
, [Measures].[Fact Reseller...
July 23, 2009 at 3:36 pm
When you specify [TimeDim].[Date].[Date], you're resetting the context for your measure to all dates. You need to filter your dates in your member expression by the current day of...
July 23, 2009 at 3:33 pm
The user wants to be able to select all the orders that have :
1. FirstCode1 or First Code 2 or FirstSecondaryCode2 or SecondSecondaryCode15 or FinalCode20
Without really knowing the data, it...
July 21, 2009 at 2:20 pm
Viewing 10 posts - 4,066 through 4,075 (of 4,075 total)