cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shanka Regular Visitor
Regular Visitor

Expression.Error: The name 'CALCULATE' wasn't recognized. Make sure it's spelled correctly.

 

So, what am I doing wrong here? Smiley Frustrated

 

 Calculate error.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-ljerr-msft Super Contributor
Super Contributor

Re: Expression.Error: The name 'CALCULATE' wasn't recognized. Make sure it's spelled correctly.

Hi @shanka,

 

As Vvelarde has mentioned above, you should use Power Query (informally known as "M") Formula in Query Editor.

 

The formula you're using should work when creating a calculate column or a measure under Modeling tab in Power BI Desktop.Smiley Happy

 

c1.PNG

 

Regards

View solution in original post

2 REPLIES 2
Vvelarde Super Contributor
Super Contributor

Re: Expression.Error: The name 'CALCULATE' wasn't recognized. Make sure it's spelled correctly.

@shanka

 

In Query Editor you should be use Power Query Language. 

 

Calculate is part of DAX. (to create a measure or calculated column after you load the data model)

 




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

Proud to be a Datanaut!




v-ljerr-msft Super Contributor
Super Contributor

Re: Expression.Error: The name 'CALCULATE' wasn't recognized. Make sure it's spelled correctly.

Hi @shanka,

 

As Vvelarde has mentioned above, you should use Power Query (informally known as "M") Formula in Query Editor.

 

The formula you're using should work when creating a calculate column or a measure under Modeling tab in Power BI Desktop.Smiley Happy

 

c1.PNG

 

Regards

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 140 members 1,600 guests
Please welcome our newest community members: