MDX Time/Date Series Functions

Stairway to MDX

Stairway to MDX - Level 11: MDX Time/Date Series Functions: PeriodsToDate() and Derivative Shortcut Functions

  • Stairway Step

BI Architect Bill Pearson launches a set of articles surrounding a group of MDX functions specialized to meet the pervasive business need to analyze data within the context of time / date. In this article, we will overview the PeriodsToDate() function, and then we will introduce "shortcut" functions that are based upon it.

You rated this post out of 5. Change rating

2015-06-17

8,458 reads

Technical Article

RE: convert char to datetime

  • Reply

declare @mydt varchar(10) set @mydt = '10/10/2003' declare @newdt datetime set @newdt = Convert(datetime, @mydt) SELECT CONVERT(varchar(25),getdate(),2) SELECT CONVERT(varchar(30),@newdt,109) SELECT CONVERT(datetime,@mydt) SELECT CONVERT(datetime,'10/10/2003',103) SELECT CONVERT(datetime,@mydt,103) SELECT CAST(CONVERT(char(10), getdate(), 112) as datetime)Test the code above and you'll see that the last 3 select statements (which roughly correspond to the previous replies in this thread) all produce […]

You rated this post out of 5. Change rating

2004-07-14

18 reads

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers