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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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