Curly Brackets - Is it necessary?

Hello guys,
I cannot see the difference between both calculations below. Could you help me to understand whether curly brackets are necessary or not? is there one reason to use curly brackets?

sum(Sales, [Country])
sum({Sales}, [Country])

Tks

It’s necessary if you have a field like max. Then quicksight doesn’t know if you are trying to make a calculation or reference a field.

If it’s not a built in function then you should be good. I prefer curly brackets just to be safe, but you don’t need them for fields.

1 Like

{} (curly braces/brackets) are necessary if your field is more than one word.

image

2 Likes