📉

(연재) 노션 좀 써볼까? #3–2 Database Relation & Rollup 2편 - paul lab - Medium

 
notion imagenotion image
notion imagenotion image
Database Relation은 내용이 길어 총 3편으로 연재합니다.
  1. 데이터베이스 생성, 개념 및 기본 Relation
  1. 데이터베이스 Rollup, Formula을 이용한 장부만들기
  1. 다중 Relation
1편에서 언급한 테이블을 간단하게 다시 만들어 보았습니다.
notion imagenotion image
notion imagenotion image
notion imagenotion image
notion imagenotion image
여기서 총 매출액을 물품목록 릴레이션에서 알기 위한 작업들을 하려 합니다.우선 가격이 텍스트로 되어 있어 이것을 Number로 바꾸는 작업을 진행합니다.

Rollup과 Formula 이용한 장부 만들기

notion imagenotion image
notion imagenotion image
물품목록에서 새로운 컬럼을 생성한 다음 Text → Rollup을 클릭합니다.
notion imagenotion image
notion imagenotion image
Rollup 컬럼이 만들어지면 Column 옆에 돋보기 모양이 생깁니다. 해당 컬럼을 누르고 지난번에 Relation해서 자동으로 들어갔던 어트리뷰트를 눌러주세요. 단어가 어려우실 것 같아 사진을 첨부하겠습니다. 아래와 같이 진행하시면 됩니다.
notion imagenotion image
notion imagenotion image
notion imagenotion image
notion imagenotion image
자, 이제 가격과 판매 권수를 곱하는 일만 남았습니다. 컬럼이름은 판매 권수라고 해두겠습니다. 그리고 이를 계산할 수 있는 새로운 컬럼을 만들겠습니다.
notion imagenotion image
notion imagenotion image
Formula 컬럼을 만드셨다면 해당 컬럼을 클릭하여 prop("가격") * prop("판매권수") 와 같이 입력해주세요. 그리고 Done을 누르시면 됩니다.
notion imagenotion image
notion imagenotion image
그럼 아래와 같이 계산된 컬럼들을 볼 수 있고 최종 합계 출력을 위해 컬럼의 맨 마지막, 그림의 위치에 커서를 가져다 놓으시면 보이지 않던 Calculate글자가 뜹니다. 이것을 클릭하시고 Sum을 클릭해주세요.
notion imagenotion image
notion imagenotion image
notion imagenotion image
notion imagenotion image
그럼 아래와 같이 전체가 합해진 계산 결과를 보실 수 있습니다.
물론 이 정보가 물품 목록에 들어가는 것은 적절하지 않습니다. 다음 예제에서는 지금까지 했던 예제를 좀 더 실무적으로 어떻게 표현할 것인지 고민하고 작성해보는 시간을 가지겠습니다.
감사합니다.
#노션 #notion #노션가이드 #노션꿀팁 #노션에서 #노션가이드북 #노션이북 #노션활용 #프로그래머용노션 #협업 #관리 #프로젝트 #생산성도구 #columns #화면분할 #주간일정 #위클리 #위클리아젠다 #에버노트 #구글독스 #googledocs #리디북스 #알라딘