> 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/3.-on-kosul-veri-modeli-ve-kirilimlar.md).

# 3. Ön Koşul: Veri Modeli ve Kırılımlar

Bir oturum değişkeni tanımlamadan önce, oturum değişkenine konu olacak veri kaynağının veri modeline doğru kırılımlarla eklenmiş olması gerekir. Örnekte `perakende_sv` adlı tablo kullanılmakta ve bu tablonun `username` ile `city_code` kırılımları alınmaktadır. Kırılım sayısında bir sınır yoktur: istenirse birden fazla oturum değişkeni tanımlanabilir ya da tek bir oturum değişkenine birden çok kırılım eklenebilir.

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FXrIdKm05ahvtlw4tWahc%2Fimage.png?alt=media&amp;token=3d1df9db-6430-4bc6-aa60-d68ab7b6cdbe" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 2.</strong></mark> <em>Modeller penceresi — Perakende E-Ticaret Model; sağ üstte SV (oturum değişkeni) butonu.</em></p></figcaption></figure>

<figure><img src="https://3143653407-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0vZHisAf5833eglFw2GE%2Fuploads%2FZACFT5e5T4BOEfnXs93Q%2Fimage.png?alt=media&amp;token=76fe4f86-3f45-479b-a309-86dc55865c17" alt=""><figcaption><p><mark style="color:$primary;"><strong>Görsel 3.</strong></mark> <em>perakende_sv tablosu: city_code, username ve OGC_FID kolonları.</em></p></figcaption></figure>

{% hint style="info" %} <mark style="color:$primary;">**İpucu:**</mark> Oturum değişkeninin doğru çalışması için model içindeki kırılım adları, sonraki adımlarda filtreleyeceğiniz analiz tablosundaki kolon adıyla anlamlı biçimde eşleşmelidir (ör. `city_code`).
{% 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/3.-on-kosul-veri-modeli-ve-kirilimlar.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.
