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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Query against dataset

Hello.

 

I have a PowerApp that I'm using to trigger a flow that query's a dataset on PBI Workspace.

 

I'll be replacing "hamlet" with a string value from a text box in the PowerApp.

 

DRossi_0-1674040872910.png

 

The DAX I have so far is the below, but it's not filtering the way I would have thought. In this case it returns nothing:

 

 

EVALUATE(FILTER(LocalHeroes_WarrantySearchTable, LocalHeroes_WarrantySearchTable[Address1] IN {"hamlet"}))

 

 

The table would look something like this...

 

IDCustNameAddress1City
2John2 Roche DriveAyr
3Peter33 Ester CresDublin
4Alfie4 HamletGlasgow
5Mark18 BomontLondon
6Emma74 CessnockManchester

 

What I want the DAX to do is, search the [Address1] column for any values that contain "hamlet", and then return that row or rows of data.

so:

 

4Alfie4 HamletGlasgow
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@Anonymous,

 

Try this:

 

FILTER(LocalHeroes_WarrantySearchTable, CONTAINSSTRING(LocalHeroes_WarrantySearchTable[Address1], "hamlet"))




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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@DataInsights awesome, thanks

DataInsights
Super User
Super User

@Anonymous,

 

Try this:

 

FILTER(LocalHeroes_WarrantySearchTable, CONTAINSSTRING(LocalHeroes_WarrantySearchTable[Address1], "hamlet"))




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

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors