> For the complete documentation index, see [llms.txt](https://www.boxhero.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.boxhero.io/docs/documentation/ja/sonono/analytics.md).

# 在庫レポート

<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) を数値と組み合わせて数式を作成できます。

#### 売上と利益

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

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

* **在庫金額**: 原価 × 現在数量
* **在庫回転率**: 合計出庫数量 ÷ 期間中の平均数量
* **日次平均入庫**: 合計入庫数量 ÷ 日数
* **日次平均出庫**: 合計出庫数量 ÷ 日数
* **再発注ステータス**: 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
