Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello Guys,
I have problems with DAX Studio.
For example, if write COUNTA('table'[column]) in DAX Studio, I'm getting an error called "Query (1,1) The expression specified is not valid table expression"
I write many other queries which include CALCULATE() etc. and everyone is working clearly when writing them inside of the Power BI itself. However, I'm getting errors in DAX Studio with the same codes. Can you help me?
Solved! Go to Solution.
Queries in DAX Studio need to return a table, not a scalar value. If you want to run individual measures you need to turn them into a table, e.g.
EVALUATE
{
CALCULATE( SUM( 'Table'[Amount]) )
}
The { } is the table constructor, that turns everything inside the { } into a table.
Queries in DAX Studio need to return a table, not a scalar value. If you want to run individual measures you need to turn them into a table, e.g.
EVALUATE
{
CALCULATE( SUM( 'Table'[Amount]) )
}
The { } is the table constructor, that turns everything inside the { } into a table.
Thanks!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
41 | |
29 | |
23 | |
22 | |
22 |