# 在庫レポート

<figure><img src="/files/97470b9f398cb380d415f8051d35b598b86760e9" alt=""><figcaption></figcaption></figure>

***

## 在庫レポートの概要

サイドバーで次へ移動します <mark style="color:青;">**`レポート`**</mark> > <mark style="color:青;">**`在庫`**</mark>.

数式設定を調整して在庫データを分析し、場所や日付範囲で結果を絞り込み、記録管理と分析のためにレポートをExcelにエクスポートできます。

<figure><img src="/files/42b3c56ad5ad25546bdca59216aa965804f94f87" alt=""><figcaption></figcaption></figure>

### A. クイック追加

あらかじめ定義された、よく使われる数式からすばやく追加して、洞察のあるレポートを作成できます。

{% embed url="<https://customer-0jrbilsa8yt3k758.cloudflarestream.com/75a44bd8bef54f0eaffffe6c74fc86e7/iframe?autoplay=true&controls=false&letterboxColor=transparent&loop=true&muted=true&poster=https://customer-0jrbilsa8yt3k758.cloudflarestream.com/75a44bd8bef54f0eaffffe6c74fc86e7/thumbnails/thumbnail.jpg?height=1080&preload=true>" %}

#### 商品属性

次を使用できます [属性](/docs/documentation/ja/konseputo/attributes.md) 数値とともに数式を作成します。

#### 売上と利益

* **総仕入金額**: 原価 × 総入庫数量
* **総売上金額**: 価格 × 総出庫数量
* **純利益**: 価格 - 原価
* **売上総利益**: (価格 - 原価) × 総出庫数量
* **利益率**: (価格 - 原価) ÷ 価格
* **1日平均利益**: (価格 × 総出庫数量 ÷ 日数
* **1日平均売上総利益**: (価格 - 原価) × 総出庫数量 ÷ 日数

#### **在庫と移動**

* **在庫価値**: 原価 × 現在数量
* **在庫回転率**: 総出庫数量 ÷ 期間中の平均数量
* **1日平均入庫**: 総入庫数量 ÷ 日数
* **1日平均出庫**: 総出庫数量 ÷ 日数
* **再発注ステータス**: if(現在数量 < 安全在庫, "再発注が必要", "-")
* **在庫切れ予測日数**: 現在数量 ÷ (総出庫数量 ÷ 日数)

<figure><img src="/files/8a8dbd232c04bf63701df066caffa07c247127e6" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
商品コストや価格を更新する際は、 <mark style="color:青;">**`レポート`**</mark> 計算が *現在の* 値を使用することに注意してください。履歴の正確性を保つには、 <mark style="color:青;">**`仕入れと売上`**</mark> 機能を使用するか、定期的にデータをエクスポートすることを検討してください。
{% endhint %}

### B. カスタム数式

BoxHeroの変数と関数を使って、ニーズに合った独自の数式を作成します。

<figure><img src="/files/59456e80c722f089727f923f54ded1f0a165a11e" alt=""><figcaption></figcaption></figure>

### 変数の自動補完

入力すると `$` 在庫変数にアクセスでき、 `{{` 保存済みの属性/値を取得できます。

<table><thead><tr><th width="209">変数名</th><th>説明</th></tr></thead><tbody><tr><td><strong>現在数量</strong></td><td>商品の現在の在庫レベル。</td></tr><tr><td><strong>日数</strong></td><td>分析期間の日数。</td></tr><tr><td><strong>期間中の平均数量</strong></td><td>分析期間中の平均在庫。毎日の23:59:59時点の在庫数量を使用して算出されます。</td></tr><tr><td><strong>期間中の初期数量</strong></td><td>分析期間の開始時点の在庫（つまり、 <em>開始日の前日</em> の23:59:59時点。</td></tr><tr><td><strong>期間中の最終数量</strong></td><td>分析期間の終了時点の在庫（つまり、 <em>最終日</em> の23:59:59時点。</td></tr><tr><td><strong>総入庫数量</strong></td><td>総入庫数量。</td></tr><tr><td><strong>入庫頻度</strong></td><td>特定期間中に入庫取引が行われた回数。</td></tr><tr><td><strong>総出庫数量</strong></td><td>総出庫数量。</td></tr><tr><td><strong>加重出庫平均（線形: 2, 3, 4）</strong></td><td><p>日次出庫数量の加重平均を計算し、 <em>最近の</em> データをより重視します。選択した期間の各日に重みが割り当てられ、日ごとに線形に重みが増加します。日次出庫数量にその重みを掛け、加重数量の合計を重みの合計で割ります。線形加重には3つのオプションがあります。</p><ul><li>線形重み 2: 最も古い日の重みは1、最も新しい日の重みは2</li><li>線形重み 3: 最も古い日の重みは1、最も新しい日の重みは3</li><li>線形重み 4: 最も古い日の重みは1、最も新しい日の重みは4</li></ul></td></tr><tr><td><strong>出庫頻度</strong></td><td>特定期間中に出庫取引が行われた回数。</td></tr><tr><td><strong>調整による差分数量</strong></td><td>次を使用したことによる在庫数量の差 <strong>調整</strong> メニュー（つまり、増加数量 - 減少数量）</td></tr><tr><td><strong>調整による減少数量</strong></td><td>次を使用したことによる数量の減少 <strong>調整</strong> メニュー。</td></tr><tr><td><strong>調整による増加数量</strong></td><td>次を使用したことによる数量の増加 <strong>調整</strong> メニュー。</td></tr><tr><td><strong>調整頻度</strong></td><td>ある <strong>調整</strong> 取引が特定期間中に行われた回数。</td></tr><tr><td><strong>移動による差分数量</strong></td><td>次を使用したことによる在庫数量の差 <strong>移動</strong> メニュー（つまり、増加数量 - 減少数量）</td></tr><tr><td><strong>移動による減少数量</strong></td><td>次を使用したことによる数量の減少 <strong>移動</strong> メニュー。</td></tr><tr><td><strong>移動による増加数量</strong></td><td>次を使用したことによる数量の増加 <strong>移動</strong> メニュー。</td></tr><tr><td><strong>出庫移動頻度</strong></td><td>ある <strong>移動</strong> 取引が全体の在庫レベルを減少させるために行われた回数。</td></tr><tr><td><strong>入庫移動頻度</strong></td><td>ある <strong>移動</strong> 取引が全体の在庫レベルを増加させるために行われた回数。</td></tr></tbody></table>

{% hint style="success" %}
**プロのヒント**: 使用 *加重平均* をより細かなトレンド分析に活用し、 *数式を組み合わせて* 変数と関数を入れ子にして複雑な指標を作成します。
{% endhint %}

### 使用可能な関数

BoxHeroは、カスタム数式を作成するためのExcelに似たさまざまな関数をサポートしています。

* **基本演算:** `+`, `-`, `*`, `/`
* **条件分岐**: `if(condition, value_if_true, value_if_false)`
* **丸め:**
  * **round**: `round(number, decimal_places)`
  * **roundUp**: `roundUp(number, decimal_places)`
  * **roundDown**: `roundDown(number, decimal_places)`
* **型変換:**
  * **toNumber**: `toNumber(string, fallback_number)`
    * 数値に変換する文字列、変換に失敗したときに表示する数値
  * **toString**: `toString(number)`
    * 文字列に変換する数値

<figure><img src="/files/a3b3dd89bb48cd0851b63a26aa2ac6aac8bf1b70" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
で利用できない変数と関数 <mark style="color:青;">**`在庫レポート`**</mark> は [カスタム分析](/docs/documentation/ja/sonono/custom-analytics.md).
{% endhint %}

***

**もっと詳しい情報をお探しですか？** FAQをご覧ください:

{% content-ref url="/spaces/Zvjcst6XueuNcyPRjnhb/pages/578d6bbd0f29f505e2a89385602d827316ec7281" %}
[在庫レポート](/docs/faq/ja/repto/repto.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.boxhero.io/docs/documentation/ja/sonono/analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
