0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

rex0220 計算式プラグイン 売上金額の担当分割

Last updated at Posted at 2025-06-14

計算式プラグインで、売上金額を2担当者に分割して、グラフ集計してみます。

概要

売上金額を担当者別にテーブルへ金額をセットして、グラフ集計(積み上げ)します。
担当毎(AA担当・BB担当)に担当者を指定し、その情報を計算式プラグインでテーブルへのセットします。
※AA担当・BB担当にそれぞれ1名を割り当てとします。
 rex0220 計算式プラグイン 売上金額の担当分割(複数担当者)

  • グラフ集計: テーブルを担当・区分別に積み上げ表示

2025-06-14_08h59_00.png

  • 編集画面: AA担当分とBB担当分をテーブルに自動セット

2025-06-14_09h08_37.png

  • 一覧表示

2025-06-14_08h56_43.png

計算式プラグイン設定

  • AA担当分:CEIL関数で、端数はAA担当分に加算
  • BB担当分:売上金額-AA担当分

2025-06-14_09h11_42.png

OPTION: 

// AA担当分 NUMBER
CEIL(売上金額/2)

// BB担当分 NUMBER
売上金額-AA担当分

// テーブル SUBTABLE
TABLE_DATA(ARRAY(
  DIC(
    "区分","AA担当",
    "担当",SEL_CODE(AA担当,"obj"),
    "金額",AA担当分
  ),
  DIC(
    "区分","BB担当",
    "担当",SEL_CODE(BB担当,"obj"),
    "金額",BB担当分)
))

// テーブル.区分 DROP_DOWN
// テーブル.担当 USER_SELECT
// テーブル.金額 NUMBER
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?