cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
atrinhatra Member
Member

syntax

I have a column that retuen a data with "/"in the middle and in my measure I am creating VAR name/name = "namename" but it seems like I cant use "/" in my code, anyways to get around it without changeing the data?

 

 

thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: syntax

Hi @atrinhatra,

 

The name/name in "VAR name/name = " is a variable while the "/" in the middle of a column is a value. We can't use special characters in the names of variables. So you can just name a variable like this: VAR namename = "namename".

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
atrinhatra Member
Member

syntax

I have a column that retuen a data with "/"in the middle and in my measure I am creating VAR name/name = "namename" but it seems like I cant use "/" in my code, anyways to get around it without changeing the data?

 

 

thanks 

Super User
Super User

Re: syntax

Can you post sample data and calculation? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


Community Support Team
Community Support Team

Re: syntax

Hi @atrinhatra,

 

The name/name in "VAR name/name = " is a variable while the "/" in the middle of a column is a value. We can't use special characters in the names of variables. So you can just name a variable like this: VAR namename = "namename".

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
atrinhatra Member
Member

Re: syntax

Thanks