Tableau table calculations: addressing اور partitioning درست کریں
Table calculation موجودہ view کی virtual table میں موجود values کو rank، running total، percentage یا moving calculation میں بدلتی ہے؛ یہ پورا source table دوبارہ calculate نہیں کرتی۔ **Addressing** marks کے درمیان calculation کی سمت بتاتی ہے، جبکہ **partitioning** وہ گروہ مقرر کرتی ہے جن میں calculation الگ چلتی اور دوبارہ شروع ہوتی ہے۔ پہلے طے کریں کہ کون سے cells ایک ہی calculation میں شامل ہیں۔
Table calculation موجودہ view کی virtual table میں موجود values کو rank، running total، percentage یا moving calculation میں بدلتی ہے؛ یہ پورا source table دوبارہ calculate نہیں کرتی۔ Addressing marks کے درمیان calculation کی سمت بتاتی ہے، جبکہ partitioning وہ گروہ مقرر کرتی ہے جن میں calculation الگ چلتی اور دوبارہ شروع ہوتی ہے۔ پہلے طے کریں کہ کون سے cells ایک ہی calculation میں شامل ہیں۔
Worksheet کے dimensions virtual table بناتے ہیں۔ Table calculation موجودہ view کے marks پر کام کرتی ہے، source tables پر براہ راست نہیں، اور filter سے view سے ہٹائے گئے dimensions واپس نہیں لاتی۔ View کے detail level کا ہر dimension addressing یا partitioning میں استعمال ہونا چاہیے۔ Compute Using مقام کے مطابق کردار دے سکتا ہے؛ Specific Dimensions میں انہیں واضح طور پر منتخب کیا جا سکتا ہے۔
مثال: ہر سال نئے سرے سے شروع ہونے والا ماہانہ running total
مہینے اور سال کے مطابق sales table میں مہینوں کے ذریعے address اور سال کے لحاظ سے partition کریں تاکہ cumulative total ہر سال پھر شروع ہو۔ Tableau Desktop میں SUM(Sales) پر right-click کریں، Add Table Calculation اور پھر Running Total منتخب کریں۔ Compute Using کو table کی سمت کے مطابق رکھیں۔ نمایاں marks دیکھیں اور آخری value کا group total سے موازنہ کریں۔ Running Total اوسط، کم سے کم یا زیادہ سے زیادہ قدر بھی جمع کر سکتا ہے؛ aggregation کا انتخاب جانچیں۔
Percent of total
حساب ہر mark کو منتخب denominator سے تقسیم کرتا ہے: پوری table، row، column، pane یا pane کے اندر row/column۔ Default پوری table کا percent ہے۔ Desktop میں Analysis > Percentages Of سے scope منتخب کریں۔ Grand totals دیکھیں؛ ہر مطلوبہ group کا مجموعہ 100% ہونا چاہیے۔ صرف formatting denominator نہیں بتاتی۔
ترتیب اور تصدیق
سوال کی unit طے کریں، dimensions اور sort order دیکھیں، پھر calculation type اور Compute Using منتخب کریں۔ پیچیدہ view میں Specific Dimensions استعمال کریں: منتخب dimensions addressing، باقی partitioning ہیں۔ dimension شامل یا نکال کر اثر پیشگی جانچیں۔ Calculation سے پہلے لگنے والے filters اور بعد میں marks چھپانے والے table-calculation filters میں فرق کریں۔ Moving window کے کنارے اور ranks میں برابر values کا برتاؤ دیکھیں۔ Edit Table Calculation سے ترمیم، Clear Table Calculation سے حذف کریں۔
چھوٹی crosstab میں اصل values اور نتیجہ ملائیں۔ ایک partition ہاتھ سے چیک کریں، آخری cumulative value کو group total سے ملائیں، اور ہر percent group کا denominator تصدیق کریں۔ اچھا setup بتاتا ہے: calculation کن marks سے گزرتی اور کہاں دوبارہ شروع ہوتی ہے؟
ذرائع
[Table calculations سے values تبدیل کریں](https://help.tableau.com/current/pro/desktop/en-us/calculations_tablecalculations.htm)
[Table calculation کی اقسام](https://help.tableau.com/current/pro/desktop/en-us/calculations_tablecalculations_definebasic_runningtotal.htm)
[Percentages calculate کریں](https://help.tableau.com/current/pro/desktop/en-us/calculations_percentages_options.htm)
[Table calculation functions](https://help.tableau.com/current/pro/desktop/en-us/functions_functions_tablecalculation.htm)