SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DAX Query Basics


DAX Query Basics

Author
Message
gary.strange-sqlconsumer
gary.strange-sqlconsumer
SSC-Enthusiastic
SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)

Group: General Forum Members
Points: 199 Visits: 613
Comments posted to this topic are about the item DAX Query Basics
Raunak Jhawar
Raunak Jhawar
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1661 Visits: 1944
Nice and handy. Thank you.

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
Jared Karney
Jared Karney
SSCertifiable
SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)SSCertifiable (5K reputation)

Group: General Forum Members
Points: 5014 Visits: 3694
Nice article! However, I have no idea what DAX is... I can query it now, but I don't know where or why I would :-) I could Google it, but you may want to include it in your introduction.

Thanks,
Jared
PFE - Microsoft
SQL Know-It-All
How to post data/code on a forum to get the best help - Jeff Moden
ssmith 73361
ssmith 73361
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 14
^ My thoughts exactly.
loren.saunders
loren.saunders
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 66
DAX query...

Hm... it reminds me of Django or other object oriented type programming languages where readability has been reduced to a minimum so that people can do things in "one line of code".

While elegant looking... it's very hard to read, unless you know by heart the parameters of the built in functions.

I much prefer a good, structured query language statement which is easily readable by any one coming across it (including myself) even years and years later... because each clause of the statement is going to have the same purpose/function no matter what, is called out by name (select, from, where, order by, group by etc).

While object oriented code is more elegant at first glance, and people can brag about how they were able to build an interface in 15 minutes with a few choice, built in objects and functions... my concern is that in 15 years people will look at that code and be unable to read it.

I would put this DAX language and syntax there as well... in the elegant but eventually undecipherable category.

That's my rant in any case.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)

Group: Administrators
Points: 64429 Visits: 19117
DAX is used in the SSAS world of Powerpivot

http://msdn.microsoft.com/en-us/library/ff487170%28v=sql.105%29.aspx

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
gary.strange-sqlconsumer
gary.strange-sqlconsumer
SSC-Enthusiastic
SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)

Group: General Forum Members
Points: 199 Visits: 613
Hi,

Thanks for all your comments and feedback.

I guess that DAX is still new and that not everyone is immediately aware of its existence. I will perhaps include more back ground information in any future articles.

Regarding the language I feel that it is certainly not the easiest to learn and master. But when I come to re-visit my queries in 15 years times I'm sure I would have left plenty of useful comments like we all do, right? Doze

I certainly find it more palatable than MDX and it's easier to visualize intermediate query results in my head when authoring a query. I guess it comes down to personal experience, some people write c# and can't stand VB.net and vice versa.
gary.strange-sqlconsumer
gary.strange-sqlconsumer
SSC-Enthusiastic
SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)

Group: General Forum Members
Points: 199 Visits: 613
Hi,

Thanks for all your comments and feedback.

I guess that DAX is still new and that not everyone is immediately aware of its existence. I will perhaps include more back ground information in any future articles.

Regarding the language I feel that it is certainly not the easiest to learn and master. But when I come to re-visit my queries in 15 years times I'm sure I would have left plenty of useful comments like we all do, right? Doze

I certainly find it more palatable than MDX and it's easier to visualize intermediate query results in my head when authoring a query. I guess it comes down to personal experience, some people write c# and can't stand VB.net and vice versa.
gary.strange-sqlconsumer
gary.strange-sqlconsumer
SSC-Enthusiastic
SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)SSC-Enthusiastic (199 reputation)

Group: General Forum Members
Points: 199 Visits: 613
Hi,

Thanks for all your comments and feedback.

I guess that DAX is still new and that not everyone is immediately aware of its existence. I will perhaps include more back ground information in any future articles.

Regarding the language I feel that it is certainly not the easiest to learn and master. But when I come to re-visit my queries in 15 years times I'm sure I would have left plenty of useful comments like we all do, right? Doze

I certainly find it more palatable than MDX and it's easier to visualize intermediate query results in my head when authoring a query. I guess it comes down to personal experience, some people write c# and can't stand VB.net and vice versa.
Raunak Jhawar
Raunak Jhawar
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1661 Visits: 1944
Steve Jones - SSC Editor (9/25/2012)
DAX is used in the SSAS world of Powerpivot

http://msdn.microsoft.com/en-us/library/ff487170%28v=sql.105%29.aspx


DAX is a new query language. It is proposed as an alternate(not to replace) to MDX.

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search