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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Tobias2019
Regular Visitor

Datasets - Execute Queries with filtering on a string

Dear all,

 

how do I filter a DAX statement with Power BI REST API (Execute Queries), when the filter is a string value?

 

Something like this works

FILTER ('table', 'table'[column] = FIRSTNONBLANK('table'[column], 'table'[column]))

 

Something like this does not (and this is what I want to make work).

I guess, it is only about formating, since the " related to the filter value are understood as end of the JSON value from the PowerBI REST API

FILTER ('table', 'table'[columnArea] = "value")

 

Thanks for any support!

1 ACCEPTED SOLUTION
KentKMishra
Helper I
Helper I

We had to use a delimator to escape the quotes. Ours is slightly different because we used to ExecuteQuery function in the request and did not have to use the single quotes for the table/columns, but for the = "value" portion ours looked something like:

= \"value\"

View solution in original post

2 REPLIES 2
Tobias2019
Regular Visitor

You are right! That worked. Thanks for the solution!

KentKMishra
Helper I
Helper I

We had to use a delimator to escape the quotes. Ours is slightly different because we used to ExecuteQuery function in the request and did not have to use the single quotes for the table/columns, but for the = "value" portion ours looked something like:

= \"value\"

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.