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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Dax Studio Incorrect Syntax

New to using Dax Studio and cant figure out why I am getting incorrect syntax and in the result pane it appears to be adding additional ( into the equation. Am I just overlooking something very simple here ? 

 

lkhall_0-1689341508639.png

 

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Firstly, in DAXStudio, you need to start every query with EVALUATE.

Secondly, to materialise a scalar value (from a measure etc.) rather than a table, ou need to use the ROW() function.

Try this and see how you get on:

 

EVALUATE
ROW(
    "Sales Amount",
    SUMX(
        'Internet Sales',
        'Internet Sales'[Order Quantity] * 'Internet Sales'[Sales Amount]
    )
)

 

 

*EDIT* Or you could do what @johnt75 said as well, lol. 😄

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




johnt75
Super User
Super User

In DAX Studio you need to use DEFINE and EVALUATE,

DEFINE
    MEASURE 'Internet Sales'[Sales Amount] =
        SUMX (
            'Internet Sales',
            'Internet Sales'[Sales quantity] * 'Internet Sales'[Sales amount]
        )

EVALUATE
{ [Sales amount] }

Another couple of points worth noting. When you define a measure you need to use a table name as well as the measure name.

When you do an EVALUATE it requires a table expression, so if you simply want to evaluate a measure you need to wrap it in the table constructor { }

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.