{ FIXED : MIN(ABS([Select an ID] - [ID]))}
The above calculation uses the level of detail (LOD) function FIXED to return the smallest absolute difference between the selected [Select an ID] value and the data set value [ID] in the whole data set.
IF [ID] = [Select an ID]
THEN [ID]
ELSEIF ABS([Select an ID] - [ID]) = [Smallest Difference]
THEN [ID]
END
The above IF statement will return the data set value of [ID] if there is a value that matches the user selection. If there is not a matching value, then the IF statement will return the value of [ID] whose absolute difference matches the smallest absolute difference over the whole data set.
{ FIXED : MIN(
IF [ID] = [Select an ID]
THEN [ID]
ELSEIF ABS([Select an ID] - [ID]) = [Smallest Difference]
THEN [ID]
END
)}
001458092
12 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.