September 6, 2017 at 4:05 am
Hi,
when I use this MDX statement:
WITH
MEMBER [Measures].[m_key_month] AS [DimTime].[Month].currentmember.member_key
MEMBER [Measures].[m_key] AS MONTH([DimTime].[Month].currentmember.member_key)
SELECT
{
[Measures].[m_key]
,[Measures].[m_key_month]
} ON COLUMNS,
{
[DimTime].[Month].members
} ON ROWS
FROM [Sales]
I get to different results for the MONTH() function in column m_key from two different server:
m_key | m_key_month | |
All | #Error | 0 |
January 2015 | 1 | 1/1/2015 |
February 2015 | 1 | 2/1/2015 |
March 2015 | 1 | 3/1/2015 |
April 2015 | 1 | 4/1/2015 |
May 2015 | 1 | 5/1/2015 |
June 2015 | 1 | 6/1/2015 |
July 2015 | 1 | 7/1/2015 |
August 2015 | 1 | 8/1/2015 |
September 2015 | 1 | 9/1/2015 |
October 2015 | 1 | 10/1/2015 |
November 2015 | 1 | 11/1/2015 |
December 2015 | 1 | 12/1/2015 |
m_key | m_key_month | |
All | #Error | 0 |
January 2015 | 1 | 1/1/2015 |
February 2015 | 2 | 2/1/2015 |
March 2015 | 3 | 3/1/2015 |
April 2015 | 4 | 4/1/2015 |
May 2015 | 5 | 5/1/2015 |
June 2015 | 6 | 6/1/2015 |
July 2015 | 7 | 7/1/2015 |
August 2015 | 8 | 8/1/2015 |
September 2015 | 9 | 9/1/2015 |
October 2015 | 10 | 10/1/2015 |
November 2015 | 11 | 11/1/2015 |
December 2015 | 12 | 12/1/2015 |
Both MDX statements are executed on my client pc with the same Management Studio. I thought it has to be with some system settings for date format but I couldn't find anything. Why is this? Where I have to look in order to know how MONTH() works? Or what kind of information do you need more?
Thanks for your help
September 6, 2017 at 5:27 am
I thought the same but I executed both MDX on the same client pc with the same Management Studio. When I connect to the server I can't choose anything to change the language at the "Connect to server" window.
Also when I look at the Analysis Server properties (right click on the connection) afterwards both have the same collation (Latin_1_General) and language (English (United States)).
September 6, 2017 at 5:32 am
mr_mash - Wednesday, September 6, 2017 5:27 AMI thought the same but I executed both MDX on the same client pc with the same Management Studio. When I connect to the server I can't choose anything to change the language at the "Connect to server" window.
Also when I look at the Analysis Server properties (right click on the connection) afterwards both have the same collation (Latin_1_General) and language (English (United States)).
The language is set at Server level, rather than client, however, the bold part does answer that.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply