cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BachFel Regular Visitor
Regular Visitor

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
Super User
Super User

Re: Search function

@BachFel

 

Try replacing with this one

 

FILTER (
    'LN',
    SEARCH ( "Objektbegehung", 'LN'[Leistungsbeschreibung],, 0 ) > 0
)
2 REPLIES 2
Super User
Super User

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


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

Proud to be a Datanaut!


Super User
Super User

Re: Search function

@BachFel

 

Try replacing with this one

 

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