반올림은 Tableau Desktop에서 ROUND() 함수를 사용하여 수행됩니다. 하지만 Tableau는 적용된 집계에 상대적으로 계산을 해석하기 때문에 계산 작성 시 집계를 고려해야 합니다. 예를 들어 반올림해야 하는 필드가 SUM([Field])이고 사용된 계산이 ROUND([Field])인 경우 Tableau는 계산을 SUM(Round([Field])로 해석합니다.
이 동작을 수정하려면 위 예의 계산을 다음과 같이 다시 작성합니다. ROUND(SUM(Field))
구체적인 예를 보려면 Round String.twbx라는 첨부된 통합 문서를 참조하세요.
보다 정확한 표현을 만들려면 LEFT()와 같은 추가 문자열 수정자와 CEILING()과 같은 추가 반올림 함수를 사용하세요.
기초 데이터를 통해 원래 숫자를 확인하여 숫자 형식에서 올바로 반올림되는지 확인합니다. 예를 들어 40.48이라는 원래 값은 소수 자릿수가 1로 지정되면 40.5로, 소수 자릿수가 0으로 지정되면 40으로 올바르게 반올림됩니다.
이 동작은 Tableau Desktop에만 한정되지 않습니다. 근본적으로 컴퓨터가 데이터를 저장하는 방법, 특히 "소수" 값과 관련이 있습니다. 정수는 정수를 더하거나 빼는 것만으로 쉽게 얻을 수 있으며, 이진 데이터로도 동일한 작업을 수행할 수 있습니다.
하지만 소수 값에서는 이러한 고유 값을 이진 표현으로 변환할 경우 간단한 소수 표현이 이진으로 완벽하게 변환되지 않는 경우가 있습니다.
예를 들어 .1은 십진수에서는 간단하지만 이 값을 이진수로 표현하는 숫자는 .0999999999999999와 .1000000000000001 및 그 사이의 모든 숫자를 동시에 나타내야 합니다. (각 숫자의 소수 자릿수는 정확히 16자입니다.) 이러한 변환은 표시 계층에 숫자 값을 표시할 때 처리되지만 값을 계산하거나 값을 문자열로 변환하면 기초 값이 표시되고 이 동작은 데이터베이스를 비롯한 많은 요소에 따라 변합니다.
다음은 이 문제가 언어별로 나타나는 방식을 설명하고 이 문제가 컴퓨터 과학의 근본적인 문제라는 것을 보여 주는 몇 가지 예와 문서입니다.
이 항목에 대한 토론과 Tableau Desktop의 가능한 해결 방법에 대해서는 다음 커뮤니티 포럼 스레드를 참조하세요. 반올림한 후 문자열로 변환(영문)
ROUND() 함수에 대한 자세한 내용은 다음 Tableau 도움말 문서를 참조하세요. 숫자 함수
001473206

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.