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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
IAM
Helper III
Helper III

Text = Text gives syntax error. When used before it didn't, can you solve the mistery?

Hello!

 

Maybe it is a weird bug because I have used this same DAX.

 

I want to count the rows where a text cell on a row in one table is equal to the text cell in another table.

 

I get a syntax error. Both columns are text columns, made in Power Query.

Please check out the file in table: calculate.

 

https://www.dropbox.com/s/drumqziixfdlogs/KPI%20Dashboard%20hulp%20rev1.pbix?dl=0

 

 

 

 

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@IAMI looked at the broken code:

SpartaBI_0-1652875038648.png


You don't have ' ' wrapping the last calculate. It thinks it's the calculate fucntion.
Put ' ' around it like in the 2 others.

But more important, never call a table name like a DAX function name  🙂
Change the table name to a different name.





2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

2 REPLIES 2
PC2790
Community Champion
Community Champion

Just replace Calculate with 'Calculate', it will work.

Power BI has an inbuilt Calculate function, hence you will have to explicitly tell Power Bi that it is a table named calculate.

PC2790_0-1652875644054.png

 

SpartaBI
Community Champion
Community Champion

@IAMI looked at the broken code:

SpartaBI_0-1652875038648.png


You don't have ' ' wrapping the last calculate. It thinks it's the calculate fucntion.
Put ' ' around it like in the 2 others.

But more important, never call a table name like a DAX function name  🙂
Change the table name to a different name.





2022-05-09 22_36_04-Power BI Workspace Datasets License Permissions - Microsoft Power BI Community.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png  SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors