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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
BachFel
Helper II
Helper II

Wildcard and if

Hi,

 

I have one column where peolpe were able to wirte down a free text.

This is my actual formula:

 

Zeitpunkt der Begehung =
IF (
    LEFT ( 'LN'[Leistungsbeschreibung]; 14 ) = "Objektbegehung";LEFT(
    'LN'[Datum];10)
)

 

Problem is that I the word "Objektbegehung" I´m looking for as an indicator can also be in the middle of the free text or at the end..

Is it possible to look for the word "Objektbegehung" whereever it is located in the sentence?

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @BachFel,

 

Try this formula:

Zeitpunkt der Begehung =
IF (
    SEARCH ( "Objektbegehung"; 'LN'[Leistungsbeschreibung]; 1; 0 ) > 0;
    LEFT ( 'LN'[Datum]; 10 )
)

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @BachFel,

 

Try this formula:

Zeitpunkt der Begehung =
IF (
    SEARCH ( "Objektbegehung"; 'LN'[Leistungsbeschreibung]; 1; 0 ) > 0;
    LEFT ( 'LN'[Datum]; 10 )
)

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



It worked, thank you so much!

 

I have another formula where I need to use the search funct. u used, again.

 

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 it possible to install your search function in the formula above.

Hi @BachFel,

 

Can you please explain a little bit better what you want to achieve with the function?

 

From what I can understand you have a column that as the word "Objektbegehung" in your model or am I  understanding your formula incorrectly?

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.