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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
brourmind
New Member

Convert Excel formula to DAX Measure

Hi,

 

How can i convert below Excel formula to Power BI measure to search a keyword from a description.

=IFERROR(LOOKUP(99999,SEARCH(issue[Keywords],[@[Short description]]),issue[Grouped Issue]),"Others")

> issue[Keywords] is list of keywords in table "issue"
> @[Short Description] is the where I want to search the keyword from, in another table
> issue[Grouped Issue] is the return if "Keywords" found from "Short Description"

i tried using below measure in Power BI

issue = LOOKUPVALUE( 'Table'[Grouped Issue], 'Table'[Keywords], 'inc_vol'[Short description] )

but the results not satisfactory or inaccurate, it returns me with below 200 records while it should return with over 1k records.

 

Help is very much appreciated. Thank you.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @brourmind 

is this a calculated column in the 'inc_vol' table? If so please try

issue =
MAXX (
    FILTER (
        'Table',
        CONTAINSSTRING ( 'inc_vol'[Short description], 'Table'[Keywords] )
    ),
    'Table'[Grouped Issue]
)

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @brourmind 

is this a calculated column in the 'inc_vol' table? If so please try

issue =
MAXX (
    FILTER (
        'Table',
        CONTAINSSTRING ( 'inc_vol'[Short description], 'Table'[Keywords] )
    ),
    'Table'[Grouped Issue]
)

Hi @tamerj1 ,

 

It's worked to some extend but not entirely, it also return those with no keywords available. 

 

e.g. when the group contain "cert" or "certificate" for keywords, but in short description those does not have those keywords listed as well.

@brourmind 
You need to provide sample data with that summarizes all cases as more extensive text processing might be required.

UPDATE: Thank you for the call @tamerj1 . 

In conclusion, I need to add more accurate information to the list of keywords.

 

----

 

i can't show everything but I filtered out those common in "inc_vol" that does not have the keywords from "table" yet. As you can see, i do not have anything related to "password" keywords under "Business App".

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.