Forum Discussion
The expression specified in the query is not a valid table expression
- Anonymous6 years ago
Sorry, I thought your problem was in PBI.
In Dax Studio you need to use the following to check the result of a measure:
return
ROW("Result:", COUNTROWS(tbl))
Hi,
When I try to run the code I get an error on [AvgDBanding] does not exist.
When you add [AvgDBanding] to the FsumX / Summarize function then it will probably work.
It does work for me either as a calculated table or as a measure (with countrows, of course), but I tested it with a very simple test set.
Regards,
- Anonymous6 years agoNot applicable
Thanks for the response, the return works well for me as well, but the "countrows" function on the tbl does not work, I was using the code in dax studio and it was throwing the error, but when I executed the code (countrows)in on power bi it worked, so I am guessing am missing something
- Anonymous6 years agoNot applicable
Sorry, I thought your problem was in PBI.
In Dax Studio you need to use the following to check the result of a measure:
return
ROW("Result:", COUNTROWS(tbl))- Anonymous6 years agoNot applicable
Anonymous Thanks for the solution, I had a look at the help of dax studio for "row" context but could not find it , can you send me on a link where i can see more on it.