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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

[some name] := 1 becomes --> some name = 1

Hi,

 

Today I ran into something strange in Power BI Desktop.

Whenever I create a measure:

 

[some name] := 1

and I click on a random place (so the edit bar closes) and then click on my measure again, I see the code has changed to

 

some name = 1

Why does this happen, and how can I stop this from happening?

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

 

>>However, I have the book "The Definitive Guide to DAX" where they explicitly tell to use ":=" for measures.

I think this may related the OS locale language.

 

For example: some device allow use ":=" as the formula header and ";" as the separator, the other devices use "=" as header and "," as the separator.

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Because the syntax for a measure in PBI is

Measure name = <dax expression>

You don't need the brackets or colon
Anonymous
Not applicable

Thanks, seems logical to me.

However, I have the book "The Definitive Guide to DAX" where they explicitly tell to use ":=" for measures.

 

Is there any other reference that you know of where I can find the Power BI specifics for DAX?

Anonymous
Not applicable

Hi @Anonymous,

 

>>However, I have the book "The Definitive Guide to DAX" where they explicitly tell to use ":=" for measures.

I think this may related the OS locale language.

 

For example: some device allow use ":=" as the formula header and ";" as the separator, the other devices use "=" as header and "," as the separator.

 

Regards,

Xiaoxin Sheng

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.