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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3

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?

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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