Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
computermike
Helper I
Helper I

I am learning Dax and just loaded DaxStudio, how do I develope measures

Hi I want to start learning how to write Measures in dax studio, but not sure how I would go about it.  For example I have a simple measure, SalesAmount:=SUM([Amount]).  How can I run this in Dax studio?  I tried just the =SUM([Amount]) and got nothing, added the = sign and got nothing.  Do I have to do in the contaext of an expression that returns a table?  What is the best way to develope complex Dax measures?

 

My model is in Tabular 2016.  I can connect to the model and see my Cube, tables and columns

 

Any help appreciated, Thanks,

 

Mike

 

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@computermike,

Please review the examples in the following blogs about developing measures in DaxStudio.

https://exceleratorbi.com.au/getting-started-dax-studio/
https://blog.learningtree.com/editing-dax-queries-dax-studio/

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Are you connected to a PBI Model or Tabular Server?

 

When you pull up DAX Studio, it should ask you to connect to something.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks...   added that info to original post.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.