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

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

Hi @Anonymous,

 

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

5 REPLIES 5
aislinn
New Member

I used this solution and I am now getting the error " The following syntax error occurred during parsing: Invalid token, Line 1, Offset 161, [Project #))))."

This is my code: 

Column = CALCULATE( COUNTROWS('2021 & 2022 Bids'), FILTER( '2021 & 2022 Bids', '2021 & 2022 Bids'[Project Number] = EARLIER('2021 & 2022 Data from Marketing'[Project #)))
 
What can I do?

That error suggests that you are writing the formula in the Query Editor.  You should be writing this as a calculated column formula.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ironpink
Frequent Visitor

Vvelarde
Community Champion
Community Champion

@Anonymous

 

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

Hi @Anonymous,

 

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

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.