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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to specify string without quotes

Hello - I need to create a DAX expression which captures a string (highlighted red below), but doesn't actually use double quotation marks. Is there a way i can do this? (example of hypothetical solution - populationNY = .... , Geography[State] =String(NY))

 

populationNY = CALCULATE(SUM(Geography[Population]), Geography[State] = "NY")
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found the answer - I wasn't properly escaping the double quotes when converting the file which contained my request body to a Json file. PBI accepted the request after fixing it

View solution in original post

3 REPLIES 3
stevedep
Memorable Member
Memorable Member
Anonymous
Not applicable

I'm using the Rest API to post a dataset that includes calculated fields. They key-value pairs for the measures are throwing back errors since the quotes in the DAX expressions are being interprated as the end of the value

Anonymous
Not applicable

Found the answer - I wasn't properly escaping the double quotes when converting the file which contained my request body to a Json file. PBI accepted the request after fixing it

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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