---
id: object/table/7158
type: object
title: Table 7158 "Analysis Dim. Selection Buffer"
summary: Table 7158 "Analysis Dim. Selection Buffer" in Base Application (Microsoft.Inventory.Analysis). 6 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 2107aece64163831bedef3fdc86fc0b66be6630f0b62bdf114fb5e7c35b6294f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Analysis/AnalysisDimSelectionBuffer.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Analysis/AnalysisDimSelectionBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 7158
name: Analysis Dim. Selection Buffer
namespace: Microsoft.Inventory.Analysis
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 6
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 7158 "Analysis Dim. Selection Buffer"

> Table 7158 "Analysis Dim. Selection Buffer" in Base Application (Microsoft.Inventory.Analysis). 6 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Inventory.Analysis · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Analysis/AnalysisDimSelectionBuffer.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Analysis Dim. Selection Buffer |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Code | Text[30] | Specifies a code for the selection. | DataClassification SystemMetadata |
| 2 | Description | Text[30] | Specifies a description of the selection. | DataClassification SystemMetadata |
| 3 | Selected | Boolean | — | DataClassification SystemMetadata |
| 4 | New Dimension Value Code | Code[20] | — | TableRelation [Table 349 "Dimension Value"](../table/349.md) (if (Code = const('Item')) Item."No." else if (Code = const('Location')) Location.Code else "Dimension Value".Code where("Dimension Code" = field(Code), Blocked = const(false))); DataClassification SystemMetadata |
| 5 | Dimension Value Filter | Code[250] | Specifies the dimension value that the analysis view is based on. | TableRelation [Table 349 "Dimension Value"](../table/349.md) (if (Code = const('Item')) Item."No." else if (Code = const('Location')) Location.Code else "Dimension Value".Code where("Dimension Code" = field(Code))); DataClassification SystemMetadata |
| 6 | Level | Option | Specifies the level for the selected dimension for analysis. | OptionCaption: ,Level 1,Level 2,Level 3; DataClassification SystemMetadata |

## Keys

- Key1: Code (clustered)
- Key2: Level, Code

## Procedures

- `CompareDimText(ObjectType: Integer; ObjectID: Integer; AnalysisArea: Integer; AnalysisViewCode: Code[10]; SelectedDimText: Text[250]; DimTextFieldName: Text[100])`
- `SetDimSelection(ObjectType: Integer; ObjectID: Integer; AnalysisArea: Integer; AnalysisViewCode: Code[10]; var SelectedDimText: Text[250]; var AnalysisDimSelBuf: Record "Analysis Dim. Selection Buffer")`
- `SetDimSelectionLevel(ObjectType: Integer; ObjectID: Integer; AnalysisArea: Integer; AnalysisViewCode: Code[10]; var SelectedDimText: Text[250])`

Plus 1 local procedures.

## Relations

- Dimension Value Filter: TableRelation [Table 349 "Dimension Value"](../table/349.md) (conditional)
- New Dimension Value Code: TableRelation [Table 349 "Dimension Value"](../table/349.md) (conditional)

## Pages and codeunits on this table

- [Page 7161 "Analysis Dim. Selection-Level"](../page/7161.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Analysis Dim. Selection Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
