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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

SEARCH FUNCTION

Hi, please help me this case, i try to find the text value "1.NP" within column GroupActivityName, i create a measure like the below picture, but it's not woking.screenshot_1670562182.png

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.

 

New 1.NP measure: = 
SEARCH( "1.NP", SELECTEDVALUE( 'Opps (2)'[GroupActivityName]),1, 0)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Hi,

i delete the relationships of table Opps(2), it work well, but i don't understand why my datamodel is problem. Below is my datamodelscreenshot_1670568135.png

Anonymous
Not applicable

Hi @Anonymous ,

As checked your model settings, it shouldn't be the cause of problem... Which table the field [GroupActivityName] is from in the below screenshot? 

yingyinr_0-1670831204997.png

And if the field [GroupActivityName] is from the table 'Opps (2)', it can display the correct using the formula which provided by @Jihwan_Kim ... Otherwise, could you please provide some raw data in the tables and the matrix Fields settings? Thank you.

yingyinr_1-1670831390802.png

Best Regards

Hi,

It is a little bit difficult for me to find what is a problem by only seein a diagram.

What column from which table is used in the visualization? -> I think you can start from here.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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