Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

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.

 

 

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
  • Anonymous,

     

    Try this:

     

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

2 Replies

  • Anonymous,

     

    Try this:

     

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