cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Search function

Hi,

 

I have the following formula:

 

Datum der Besichtigung = CALCULATE(

MIN('LN'[Zeitpunkt der Begehung]);FILTER(KontElemente;KontElemente[MandantID]=2);FILTER('LN';'LN'[Leistungsbeschreibung]=("Objektbegehung"));FILTER('LN';'LN'[KontElementID]=EARLIER(KontElemente[KontElementID])))

 

is there a possiblity to replace the bold part with the search function?

I want to find the word "Objektbegehung" which is part of the free text in LN[Lesitungsbeschreibung], so it can stand at the beginning, in the middle of a sentence or anywhere else..

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Search function

@BachFel

 

Try replacing with this one

 

FILTER (
    'LN',
    SEARCH ( "Objektbegehung", 'LN'[Leistungsbeschreibung],, 0 ) > 0
)
Regards,
Zubair


View solution in original post

2 REPLIES 2
Highlighted
Super User IV
Super User IV

Re: Search function

I would load your table into a temp table and then use ADDCOLUMNS to add a column in which you return true if SEARCH finds the value you are looking for and then you can filter on that.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Highlighted
Super User I
Super User I

Re: Search function

@BachFel

 

Try replacing with this one

 

FILTER (
    'LN',
    SEARCH ( "Objektbegehung", 'LN'[Leistungsbeschreibung],, 0 ) > 0
)
Regards,
Zubair


View solution in original post

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors