
In many Excel datasets, the same date often appears multiple times with different quantity values.
Because of this, it is difficult to quickly identify the total quantity for each date.
Manually calculating these totals can be time-consuming and prone to errors.
In this tutorial, you will learn how to use Power Query to automatically group and sum quantities by date.
Once set up, the results will update instantly whenever new data is added.
Power Query를 활용해 날짜별 수량을 자동으로 합계 집계하는 방법을 정리했습니다.
업무에서 데이터를 관리하다 보면 같은 날짜에 여러 건의 기록이 존재하는 경우가 많습니다. 이러한 데이터를 날짜 기준으로 정리하려면 일반적으로 엑셀 수식을 사용하게 되지만, Power Query를 활용하면 훨씬 간단하게 처리할 수 있습니다.
예를 들어 날짜와 수량으로 구성된 데이터가 있을 때, 동일한 날짜의 수량을 모두 합산하여 날짜별 총수량을 만들고자 하는 경우 Power Query의 Group By 기능을 사용하면 빠르게 해결할 수 있습니다.
Power Query에서는 날짜 컬럼을 기준으로 데이터를 그룹화한 뒤, 수량 컬럼을 합계(Sum)로 설정하면 자동으로 날짜별 집계 결과가 생성됩니다.
이렇게 구조를 만들어두면 이후 데이터가 추가되더라도 새로고침만으로 자동으로 다시 계산되기 때문에 반복 작업 없이 효율적으로 데이터를 관리할 수 있습니다.
또한 이 방법은 날짜별 집계뿐만 아니라 월별 합계, 고객별 합계, 제품별 합계 등 다양한 형태의 데이터 정리에도 동일하게 활용할 수 있습니다.
Power Query, M code, 엑셀 자동화 관련 실전 예제를 계속 공유할 예정입니다.
videolink - https://youtu.be/jezU9d2PUPQ
Download the sample file below.
You can download the zip file in [자료실][Download] page
The file name is 05.자동월합계(auto monthly sum).
Use the English M code provided for your dataset.
✔ Download the ready-to-use Power Query template below
✔ Just copy and paste the M code – works instantly
The original sample file is based on a Korean dataset.
You can apply the English M code to adapt it to your own data.
--------------------------------
Need a custom automation for your Excel workflow?
I can build a tailored solution based on your data.
✔ Used in real-world business automation
✔ Saves hours of manual work
minbedata@gmail.com
You can pay via PayPal.
You can also contact me via Upwork for secure payment and project handling.
<a href="https://www.upwork.com/freelancers/~01eb52dbd212cffc17" target="_blank">
Hire me on Upwork
</a>
You don't worry about conversing with me.
My Major is an English literature, so I can speak English fluently and read, listening, writing proficiently
korean version web address (한국버전) is
<a href="https://blog.naver.com/minbe-data" target="_blank">네이버 블로그 바로가기</a>