Forum Discussion
Get the values from an excel rather than hardcoding
- 9 years ago
I am hardcoding the value to be 1(in bold above) in this case here but I don't want it to do that way. I want it to be taken from an excel file and the value can be set by the user (maybe 2 , 3 but same for all the keywords in that table).
According to your description, you should be able to use the same excel sheet "Keyword_Trade_Name" to add another column called Score with the value like below.
Then use MAX function which returns the largest numeric value in a column(as the Score value is the same for all the keywords in that table, it will return that value) like below to calculate "ScoreTrade" for "End User Trade Name".
ScoreTrade = IF ( SUMX ( Keyword_Trade_Name, FIND ( UPPER ( Keyword_Trade_Name[Trade_Name] ), UPPER ( Table_Test[End User Trade Name] ), , 0 ) ) > 0, MAX ( Keyword_Trade_Name[Score] ), 0 )Regards
I am hardcoding the value to be 1(in bold above) in this case here but I don't want it to do that way. I want it to be taken from an excel file and the value can be set by the user (maybe 2 , 3 but same for all the keywords in that table).
According to your description, you should be able to use the same excel sheet "Keyword_Trade_Name" to add another column called Score with the value like below.
Then use MAX function which returns the largest numeric value in a column(as the Score value is the same for all the keywords in that table, it will return that value) like below to calculate "ScoreTrade" for "End User Trade Name".
ScoreTrade =
IF (
SUMX (
Keyword_Trade_Name,
FIND (
UPPER ( Keyword_Trade_Name[Trade_Name] ),
UPPER ( Table_Test[End User Trade Name] ),
,
0
)
)
> 0,
MAX ( Keyword_Trade_Name[Score] ),
0
)Regards
Hi v-ljerr-msft,
Thanks for the solution, now my Director wants it to be more dynamic.
So now the data should look something like this
Is there a way to extract the possible values in the above manner ?
Thanks a lot for your help.