안녕하세요,
내 데이터 테이블의 열을 반복하고 특정 값 레이블 집합을 기반으로 상위 범주를 적용하는 스크립트를 개발 중입니다. (값 레이블({0 = "나쁨", 25 = "보통", 50 = "좋음", 75 = "매우 좋음", 100 = "매우 좋음"}))
아래의 작동하지 않는 코드에서 올바른 구문을 얻는 데 도움이 필요합니다. 몇 가지 테스트 데이터도 첨부했습니다. 미리 감사드립니다.
Names Default To Here( 1 );
// Specify the column name
columnName = "36/5. Considering everything about the brand you use most often, how would you rate it overall?";
// Get the column reference
col = Column(columnName);
//test to see if the value labels contain 100 = "Excellent" and if so, apply a supercategory
if (Get Value Labels(col)["100"] == "Excellent",
col << Set Property( "Supercategories", {Group( "Top 2", {75,100} ), Group( "Bottom 2", {25,0} )}));