Forum Discussion
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.
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] )