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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Paulyeo11
Impactful Individual
Impactful Individual

When need to apply open bracket for table name ?

Hi All

Below need open and close bracket :-

Measure = sumx('TABLE',if([sign] =2, -1*[sales],[sales]))

Below dont need open and close bracket :-

LYTD = CALCULATE(SUM(INVENTORY[YTD]), DATEADD(DATESYTD('Date'[Date]), -1, YEAR))
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Paulyeo11 ,

 

We can omit the single quotation marks if the table name does not start with a number, does not contain spaces, and is not a reserved word (like Date or Sum).

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Paulyeo11 ,

 

We can omit the single quotation marks if the table name does not start with a number, does not contain spaces, and is not a reserved word (like Date or Sum).

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Paulyeo11 , I think you are talking about Single Quote  '

This is needed in table name if the table name is a reserved word of Power BI (The word which also used by power bi functions or some other places).

Example Date, Table , Min, Max etc

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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