Skip to main content

Adding Measures to Quantify Matching Results

Adding Measures to Quantify Matching Results

You can easily add measures that provide information on dictionary matching results (indicate the total number, average matching score per record, and so on). For examples, see the calculated measures Dictionary Match Count and Total Dictionary Score in the Aviation Events cube.

To add your own measures, follow the steps in Defining a Calculated Measure. For Expression, use one of the following expressions:

  • To get counts of matching results (results that match dictionary items):

    %KPI("%DeepSee.iKnowDictionary","MatchCount",1,"aggregate","sum","%CONTEXT")
    

    This expression returns the total number of matching results, in any given context.

    Instead of "sum", you can use the alternative aggregation types listed in the previous section.

  • To get scores for matching results:

    %KPI("%DeepSee.iKnowDictionary","MatchScore",1,"aggregate","sum","%CONTEXT")
    

    This expression returns the total score for matching results, in any given context.

    Instead of "sum", you can use the alternative aggregation types listed in the previous section.

These expressions use the %KPI MDX function and the plug-in class %DeepSee.PlugIn.iKnowDictionaryOpens in a new tab. For details on the function, see InterSystems MDX Reference. For details on the class, see the class reference.

Important:

If you omit the "%CONTEXT", then in all cases, your calculated measures ignore any context and return results for your entire data set.

FeedbackOpens in a new tab