> For the complete documentation index, see [llms.txt](https://learn.vispeahen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.vispeahen.com/kumanda-tablosu/oturum-degiskeni/6.-oturum-degiskenini-analize-baglama.md).

# 6. Oturum Değişkenini Analize Bağlama

Oturum değişkeni tanımlandıktan sonra, dashboard’daki ilgili analizlerin bu değişkene bağlanması gerekir. Aşağıdaki adımlar tek bir analiz için gösterilmiştir; aynı işlem yetkilendirilmesi istenen tüm analizler için tekrarlanır.

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2Fdca4Iv6jqn1CLtWydmhW%2Fimage.png?alt=media&amp;token=7f13671d-6fb4-45ce-8480-a6e2ab146e6b" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 7</strong></mark>. <em>Analizin filtresi <code>city_code</code> üzerinden <code>${session.perakende_sv}</code> değerine bağlanır.</em></p></figcaption></figure>

{% stepper %}
{% step %}

### Adım 1: Veri Panelini Açma

İlgili analizin araçlarını açın ve soldaki ilk buton olan **Veri** kısmına girin. Açılan panelde solda **Tablolar & Kolonlar**, sağda **Kolon Eşleştirmeleri** (Sırala & Limit, Ölçü Değeri, Saklı Alan) yer alır.

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FjYPt4hhL8zV1HsG7twpN%2Fimage.png?alt=media&amp;token=1f3a73e7-9aae-4416-a736-eaa226fd7e7f" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 8.</strong></mark> <em>Analizin Veri paneli — Tablolar &#x26; Kolonlar ve Kolon Eşleştirmeleri.</em></p></figcaption></figure>
{% endstep %}

{% step %}

### Adım 2: Varsayılan Filtreye Kırılım Kolonunu Ekleme

Panelin alt kısmındaki **Varsayılan Filtre** bölümüne, oturum değişkenini hangi kırılıma göre tasarladıysanız o kolonu ekleyin. Örnekte `perakende_eticaret_data` tablosundaki `city_code` kolonu (SV’deki il kırılımı) atanır.

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FmkXKIfef2ywPyGU4rPpS%2Fimage.png?alt=media&amp;token=9c6f1376-b472-40a0-a641-668e6069f955" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 9.</strong></mark> <em>Varsayılan Filtre — <code>city_code</code> | <code>İçinde geçen</code> | <code>değer</code> alanı.</em></p></figcaption></figure>
{% endstep %}

{% step %}

### Adım 3: Formül Modunu Açma

Filtre satırındaki değer alanının sağındaki **büyüteç** ikonuna tıklayın. Açılan pencerede **Formül** opsiyonunu seçin ve **`$`** işaretini yazın. Üç seçenek belirir: `dashboard` (dashboard değişkeni), `session` (oturum değişkeni) ve `whatif` (what-if senaryosu).

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FKKGzXfQA1rEupX6fv6C2%2FScreenshot%202026-09-07%20161402.png?alt=media&amp;token=10dc3089-16d0-4efb-ba59-7a391a73b000" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 10.</strong></mark> <em>Formül modu — <code>$</code> sonrası <code>dashboard</code> / <code>session</code> / <code>whatif</code> seçenekleri.</em></p></figcaption></figure>
{% endstep %}

{% step %}

### Adım 4: Oturum Değişkenini Seçme ve Uygulama

`session` seçildiğinde syntax otomatik oluşturulur: `${session.}`. SV adını yazmaya başladığınızda (ör. p) mevcut oturum değişkenleri otomatik listelenir. Örnekte `perakende_sv` seçilerek ifade `${session.perakende_sv}` biçiminde tamamlanır ve **Uygula** ile onaylanır.

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FbkCHG0il71d6nzKh3L8L%2FScreenshot%202026-09-07%20161942.png?alt=media&amp;token=0c8f1180-2523-4cbf-88ca-7d498b3f6ad2" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 11.</strong></mark> <em>Otomatik tamamlama — <code>${session.perakende_sv}</code> ifadesinin oluşturulması.</em></p></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="danger" %} <mark style="color:$danger;">**Kritik Kural:**</mark> Varsayılan filtreye eklenen kolon (ör. `city_code`), oturum değişkeninin döndürdüğü kırılımla aynı olmalıdır. Kolon ile oturum değişkeni kırılımı uyuşmazsa filtre beklenen sonucu vermez.

Bu bağlama işlemi, yetkilendirilmesi istenen tüm analizler için tekrarlanmalıdır. Böylece her kullanıcı aynı dashboard’u kendi oturum değişkeni kuralları dahilinde görür.
{% endhint %}


---

# 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://learn.vispeahen.com/kumanda-tablosu/oturum-degiskeni/6.-oturum-degiskenini-analize-baglama.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.
