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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.