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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.