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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nozama
Helper I
Helper I

New Syntax or a glitch?

I spent over an hour trying to understand why my measure wasn't working in this kind of a statement:

Measure1 = CALCULATE ([Measure2], ALL[Table]). Then strangely found out that the measure works with the syntax [ Table }.

 

Is there something I am missing or is this a glitch?! Screenshot attached.Capture.png

1 ACCEPTED SOLUTION
v-tejrama
Community Support
Community Support

Hi @Nozama ,

Thanks for reaching out to the Microsoft fabric community forum.

 

You're on the right track when a table name contains special characters like square brackets [], DAX requires it to be wrapped in single quotes.

Try using this :
Measure1 = CALCULATE([Measure2], ALL('ABCDEF [Master]'))

This tells DAX to interpret the entire string as a single table name, avoiding syntax errors.

 

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it

Best Regards,
Tejaswi.
Community Support Team 

View solution in original post

7 REPLIES 7
v-tejrama
Community Support
Community Support

Hi @Nozama ,

Thanks for reaching out to the Microsoft fabric community forum.

 

You're on the right track when a table name contains special characters like square brackets [], DAX requires it to be wrapped in single quotes.

Try using this :
Measure1 = CALCULATE([Measure2], ALL('ABCDEF [Master]'))

This tells DAX to interpret the entire string as a single table name, avoiding syntax errors.

 

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it

Best Regards,
Tejaswi.
Community Support Team 

Nozama
Helper I
Helper I

I think I might have figured it out. My Table Name is actually 'ABCDEF [Master]' so I reckon if a table name ends in "]" maybe DAX needs its reference to end in "}". Can someone please confirm by testing? Thanks!

Interesting- I don't think that is it though. For table names ending in ] you should use '' like so for a table named Sample[Table]:

Sample Measure = SUM('Sample[Table]'[Goal])
djurecicK2
Super User
Super User

Hi @Nozama ,

 That is strange- seems like it should not work.

 

I think of { } as being used to contain a list, like with the IN function.

https://www.sqlbi.com/articles/the-in-operator-in-dax/

 

It is the only syntax that works! 😂

Elena_Kalina
Solution Sage
Solution Sage

Hi @Nozama 

This fails because ALL[Table] is incorrect syntax - missing parentheses -   ALL([Table])

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

It doesn't fail. It works, I just don't konw why.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors