cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YGoe
New Member

Re: Search text DAX not working

no problem 🙂 

 

it is a tough one. I tried a lot of things before asking for help. 

 

Your new solution return the following error:

 

 

Capture 5.PNG

There must be an issue with the column in the table but it does not make any sense to me. the snapshot of the account table shows that the column Acc_name does exist and the text we are searching for is in that column!! 

I dont really know what to do.

sokg Solution Supplier
Solution Supplier

Re: Search text DAX not working

Are you creating a column or a measure ?

YGoe
New Member

Re: Search text DAX not working

it is a measure. I tried creating a calculated column but the operation that follows the if statement creates a circular reference. 

sokg Solution Supplier
Solution Supplier

Re: Search text DAX not working

Is home accounts{acc_name] already a calculated column?

 

Try this one as a column

 

test = IF(IFERROR(SEARCH("Transient Retail",'home accounts'[acc_name]),-1)=1,10,0)

 

View solution in original post

Highlighted
YGoe
New Member

Re: Search text DAX not working

 

it works when creating a column 🙂 

 

why does it fail when creating a new measure then?

sokg Solution Supplier
Solution Supplier

Re: Search text DAX not working

Because needs a row contex to work. When you try as a measure tries to read the whole column .

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors