Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Dax Studio – The syntax for Calculate is incorrect

I am learning to use DAX Studio to test out my DAX scripts,

DAX Studio says my script is wrong, but I am not sure what exactly is the problem

CummulativeWeek =
CALCULATE (
    SUM ( Data[Value] ),
    FILTER ( ALL ( Data[Week] ), Data[Week] <= MAX ( Data[Week] ) ),
    FILTER ( ALL ( Data[Year] ), Data[Year] == MAX ( Data[Year] ) )
)

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I don’t see what I am doing wrong. I checked the docummentation, YouTube vids, everything seems to be fine.

In PowerBI the command is executed just fine.

enter image description here

Is there a setting in DAX Studio that I am missing?

>Solution :

Are you using the EVALUATE keyword?

Also, you need to return a table.

Have a read here: https://daxstudio.org/docs/tutorials/writing-dax-queries/

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading