{"id":11602,"date":"2026-06-10T03:21:17","date_gmt":"2026-06-09T19:21:17","guid":{"rendered":"https:\/\/ab123.xyz\/?p=11602"},"modified":"2026-06-10T03:21:17","modified_gmt":"2026-06-09T19:21:17","slug":"notion-formulas-for-automated-habit-tracker%ef%bc%9a%e6%89%93%e9%80%a0%e5%85%a8%e8%87%aa%e5%8a%a8%e4%b9%a0%e6%83%af%e8%bf%bd%e8%b8%aa%e7%b3%bb%e7%bb%9f%e7%9a%84%e7%bb%88%e6%9e%81%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=11602","title":{"rendered":"Notion Formulas for Automated Habit Tracker\uff1a\u6253\u9020\u5168\u81ea\u52a8\u4e60\u60ef\u8ffd\u8e2a\u7cfb\u7edf\u7684\u7ec8\u6781\u6307\u5357"},"content":{"rendered":"<p>\u5728\u6570\u5b57\u5316\u6548\u7387\u63d0\u5347\u7684\u6d6a\u6f6e\u4e2d\uff0c<strong>Notion Formulas for Automated Habit Tracker<\/strong> \u5df2\u6210\u4e3a\u4e2a\u4eba\u6210\u957f\u4e0e\u65f6\u95f4\u7ba1\u7406\u9886\u57df\u6700\u53d7\u5173\u6ce8\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5b83\u5229\u7528 Notion \u5f3a\u5927\u7684\u516c\u5f0f\u5f15\u64ce\uff0c\u5c06\u96f6\u6563\u7684\u6253\u5361\u8bb0\u5f55\u8f6c\u5316\u4e3a\u5b9e\u65f6\u3001\u81ea\u52a8\u5316\u7684\u4e60\u60ef\u8ffd\u8e2a\u7cfb\u7edf\uff0c\u65e0\u9700\u624b\u52a8\u8ba1\u7b97\u6216\u5916\u90e8\u63d2\u4ef6\u3002\u672c\u6587\u5c06\u6df1\u5165\u5256\u6790\u5176\u6838\u5fc3\u529f\u80fd\u3001\u72ec\u7279\u4f18\u52bf\u3001\u5e94\u7528\u573a\u666f\u53ca\u5b9e\u64cd\u65b9\u6cd5\uff0c\u5e76\u9644\u4e0a\u5b98\u65b9\u8d44\u6e90\u5165\u53e3\u3002<\/p>\n<h2>\u6838\u5fc3\u529f\u80fd\uff1a\u4ece\u624b\u52a8\u6253\u5361\u5230\u667a\u80fd\u7edf\u8ba1<\/h2>\n<p>\u4f20\u7edf\u4e60\u60ef\u8ffd\u8e2a\u5668\u5f80\u5f80\u9700\u8981\u7528\u6237\u9010\u4e00\u586b\u5199\u65e5\u671f\u3001\u72b6\u6001\uff0c\u518d\u624b\u52a8\u6c47\u603b\u5b8c\u6210\u7387\u3002\u800c Notion Formulas \u501f\u52a9 <code>prop()<\/code>\u3001<code>dateBetween()<\/code>\u3001<code>ifs()<\/code> \u7b49\u51fd\u6570\uff0c\u53ef\u4ee5\u5b9e\u73b0\uff1a<\/p>\n<ul>\n<li><strong>\u81ea\u52a8\u65e5\u671f\u6807\u8bb0<\/strong>\uff1a\u5229\u7528 <code>formatDate(now(), \"YYYY-MM-DD\")<\/code> \u751f\u6210\u5f53\u5929\u65e5\u671f\uff0c\u5e76\u4e0e\u9884\u8bbe\u4e60\u60ef\u5bf9\u5e94\u3002<\/li>\n<li><strong>\u52a8\u6001\u8fdb\u5ea6\u6761<\/strong>\uff1a\u901a\u8fc7 <code>slice()<\/code> \u548c <code>repeat()<\/code> \u516c\u5f0f\u521b\u5efa\u89c6\u89c9\u5316\u767e\u5206\u6bd4\uff0c\u5982\u201c\u5df2\u5b8c\u6210 7\/30 \u5929\u201d\u3002<\/li>\n<li><strong>\u6761\u4ef6\u63d0\u9192<\/strong>\uff1a\u5f53\u8fde\u7eed\u5b8c\u6210\u5929\u6570\u8fbe\u5230\u9608\u503c\u65f6\uff0c\u516c\u5f0f\u81ea\u52a8\u89e6\u53d1\u989c\u8272\u53d8\u5316\u6216\u6587\u672c\u63d0\u9192\u3002<\/li>\n<li><strong>\u5468\/\u6708\u7edf\u8ba1<\/strong>\uff1a\u4f7f\u7528 <code>filter()<\/code> \u7ed3\u5408\u6570\u636e\u5e93\u5173\u8054\uff0c\u4e00\u952e\u751f\u6210\u5468\u671f\u5185\u5b8c\u6210\u7387\u4e0e\u8d8b\u52bf\u56fe\u3002<\/li>\n<\/ul>\n<h2>\u72ec\u7279\u4f18\u52bf\uff1a\u4e3a\u4ec0\u4e48\u9009\u62e9 Notion Formulas<\/h2>\n<h3>\u96f6\u6210\u672c\u4e0e\u9ad8\u53ef\u5b9a\u5236\u6027<\/h3>\n<p>\u76f8\u6bd4\u4ed8\u8d39\u4e60\u60ef\u8ffd\u8e2a App\uff0cNotion \u672c\u8eab\u63d0\u4f9b\u514d\u8d39\u5957\u9910\uff0c\u4e14\u516c\u5f0f\u5b8c\u5168\u5f00\u653e\u6e90\u7801\u3002\u7528\u6237\u53ef\u6839\u636e\u81ea\u8eab\u4e60\u60ef\uff08\u5982\u9605\u8bfb\u3001\u51a5\u60f3\u3001\u8fd0\u52a8\uff09\u81ea\u7531\u4fee\u6539\u903b\u8f91\uff0c\u4f8b\u5982\u5c06\u201c\u5b8c\u6210\u4e00\u6b21\u201d\u6539\u4e3a\u201c\u7d2f\u8ba1\u65f6\u957f\u201d\uff0c\u901a\u8fc7 <code>sum(prop(\"\u65f6\u957f\"))<\/code> \u7d2f\u52a0\u5206\u949f\u6570\u3002<\/p>\n<h3>\u4e0e\u77e5\u8bc6\u5e93\u65e0\u7f1d\u96c6\u6210<\/h3>\n<p>\u4e60\u60ef\u6570\u636e\u53ef\u76f4\u63a5\u5173\u8054\u5230\u65e5\u8bb0\u3001\u9879\u76ee\u7ba1\u7406\u6216\u76ee\u6807\u770b\u677f\u3002\u4f8b\u5982\uff0c\u5c06\u201c\u6bcf\u65e5\u9605\u8bfb\u201d\u4e60\u60ef\u94fe\u63a5\u5230\u201c\u4e66\u7c4d\u7b14\u8bb0\u201d\u6570\u636e\u5e93\uff0c\u5b9e\u73b0\u884c\u4e3a\u8bb0\u5f55\u4e0e\u5185\u5bb9\u6c89\u6dc0\u7684\u53cc\u5411\u540c\u6b65\u3002<\/p>\n<h3>\u591a\u7aef\u5b9e\u65f6\u540c\u6b65<\/h3>\n<p>Notion \u652f\u6301\u7f51\u9875\u3001\u684c\u9762\u3001\u79fb\u52a8\u7aef\u5168\u5e73\u53f0\uff0c\u516c\u5f0f\u8ba1\u7b97\u7ed3\u679c\u968f\u8f93\u5165\u5b9e\u65f6\u66f4\u65b0\uff0c\u65e0\u8bba\u8eab\u5904\u529e\u516c\u5ba4\u8fd8\u662f\u5065\u8eab\u623f\uff0c\u90fd\u80fd\u4e00\u952e\u67e5\u770b\u4e60\u60ef\u5c65\u5386\u3002<\/p>\n<h2>\u5e94\u7528\u573a\u666f\u4e0e\u5b9e\u64cd\u6848\u4f8b<\/h2>\n<h3>\u4e2a\u4eba\u6210\u957f\u9886\u57df<\/h3>\n<ul>\n<li><strong>\u65e9\u8d77\u6253\u5361<\/strong>\uff1a\u8bbe\u7f6e\u516c\u5f0f\u201c\u5982\u679c\u4eca\u65e5\u6253\u5361\u65f6\u95f4\u4e3a 6:00-7:00\uff0c\u5219\u6807\u8bb0\u4e3a\u7eff\u8272\u201d\uff0c\u914d\u5408 <code>weekday()<\/code> \u533a\u5206\u5de5\u4f5c\u65e5\u4e0e\u5468\u672b\u76ee\u6807\u3002<\/li>\n<li><strong>\u5b66\u4e60\u4e13\u6ce8\u5ea6<\/strong>\uff1a\u7528 <code>dateSubtract()<\/code> \u8ba1\u7b97\u4e0a\u6b21\u5b66\u4e60\u95f4\u9694\uff0c\u81ea\u52a8\u751f\u6210\u201c\u5df2\u8352\u5e9f X \u5929\u201d\u7684\u8b66\u544a\u3002<\/li>\n<\/ul>\n<h3>\u56e2\u961f\u534f\u4f5c\u573a\u666f<\/h3>\n<p>\u5c0f\u578b\u56e2\u961f\u53ef\u7528\u4f5c\u201c\u5065\u5eb7\u6253\u5361\u201d\u770b\u677f\uff0c\u901a\u8fc7 <code>rollup()<\/code> \u6c47\u603b\u6210\u5458\u5b8c\u6210\u7387\uff0c\u5e76\u5229\u7528 <code>icon()<\/code> \u6761\u4ef6\u663e\u793a\u8868\u60c5\u7b26\u53f7\uff08\u5982 \ud83d\ude0a\u226580%\u3001\ud83d\ude10\u226550%\u3001\ud83d\ude22&lt;50%\uff09\uff0c\u6fc0\u52b1\u5f7c\u6b64\u575a\u6301\u3002<\/p>\n<h2>\u5feb\u901f\u4e0a\u624b\uff1a\u4e09\u6b65\u6784\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a\u81ea\u52a8\u5316\u4e60\u60ef<\/h2>\n<p>\u7b2c\u4e00\u6b65\uff1a\u5728 Notion \u4e2d\u65b0\u5efa\u6570\u636e\u5e93\uff0c\u6dfb\u52a0\u5c5e\u6027\u201c\u4e60\u60ef\u540d\u79f0\u201d\uff08\u6587\u672c\uff09\u3001\u201c\u65e5\u671f\u201d\uff08\u65e5\u671f\uff09\u3001\u201c\u72b6\u6001\u201d\uff08\u590d\u9009\u6846\uff09\u3002<br \/>\u7b2c\u4e8c\u6b65\uff1a\u5728\u201c\u516c\u5f0f\u201d\u5c5e\u6027\u5217\u8f93\u5165\uff1a<code>ifs(prop(\"\u72b6\u6001\"), \"\u2705 \u5df2\u5b8c\u6210\", \"\u23f3 \u5f85\u529e\")<\/code>\uff0c\u5b9e\u73b0\u81ea\u52a8\u56fe\u6807\u5207\u6362\u3002<br \/>\u7b2c\u4e09\u6b65\uff1a\u521b\u5efa\u7b2c\u4e8c\u4e2a\u6570\u636e\u5e93\u4f5c\u4e3a\u201c\u6708\u89c6\u56fe\u201d\uff0c\u5173\u8054\u7b2c\u4e00\u4e2a\u6570\u636e\u5e93\u5e76\u4f7f\u7528 <code>count()<\/code> \u7edf\u8ba1\u6bcf\u6708\u6253\u5361\u6b21\u6570\u3002\u8be6\u7ec6\u6a21\u677f\u4e0e\u8fdb\u9636\u516c\u5f0f\u53ef\u53c2\u8003\u5b98\u65b9\u793e\u533a\u6307\u5357\u3002<\/p>\n<p>\u7acb\u5373\u5f00\u59cb\u6784\u5efa\u4f60\u7684\u81ea\u52a8\u5316\u7cfb\u7edf\uff0c\u8bbf\u95ee <a href=\"https:\/\/www.notion.so\/\" target=\"_blank\">\u5b98\u65b9\u7f51\u7ad9<\/a> \u83b7\u53d6\u6700\u65b0\u6a21\u677f\u4e0e\u516c\u5f0f\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6570\u5b57\u5316\u6548\u7387\u63d0\u5347\u7684\u6d6a\u6f6e\u4e2d\uff0cNotion Formulas for Automated Habit Tracke [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12289,1533,14259,2200,2396],"class_list":["post-11602","post","type-post","status-publish","format-standard","hentry","category-4","tag-notion","tag-14259","tag-2200","tag-2396"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11602"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11602\/revisions"}],"predecessor-version":[{"id":11603,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/11602\/revisions\/11603"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}