OGE logoOGE

Calculated Fields & Filters

calculatedFields compute a measure from the other measures of each cell — totals included, so a ratio stays a ratio of the totals — and take the display modes of regular measures: percent of a total, the difference from the previous column, a running total. Row and column fields filter their members by label, by a measure’s total or to the Top N; the row headers lay out compact, outline or tabular.

calculatedFields topN labelFilter valueFilter rowHeaderLayout templates export-pdf
ratio of totals % of total Δ previous running cell template
Four calculated measures beside Amount and Units; a cell template colours falling years red.
2022
2023
2024
2025
Grand Total
Americas
₺136.400293₺4666.9%₺136.400
₺188.419334₺5649.6%+₺52.019₺188.419
₺135.938355₺3836.9%₺-52.481₺135.938
₺188.881392₺4829.6%+₺52.943₺188.881
₺649.6381374₺47332.9%₺649.638
Asia
₺125.356206₺6096.4%₺261.756
₺125.818224₺5626.4%+₺462₺314.237
₺126.280242₺5226.4%+₺462₺262.218
₺125.818264₺4776.4%₺-462₺314.699
₺503.272936₺53825.5%₺1.152.910
Europe
₺147.944401₺3697.5%₺409.700
₺260.363442₺58913.2%+₺112.419₺574.600
₺154.282503₺3077.8%₺-106.081₺416.500
₺257.201544₺47313.0%+₺102.919₺571.900
₺819.7901890₺43441.6%₺1.972.700
Grand Total
₺409.700900₺45520.8%₺409.700
₺574.6001000₺57529.1%+₺164.900₺574.600
₺416.5001100₺37921.1%₺-158.100₺416.500
₺571.9001200₺47729.0%+₺155.400₺571.900
₺1.972.7004200₺470100.0%₺1.972.700

Member filters & row-header layouts

topN, labelFilter and valueFilter on a row or column field keep whole members before aggregation, so totals follow what is shown. rowHeaderLayout gives each row field its own label column (outline) or repeats the ancestors on every line (tabular).

topN labelFilter valueFilter compact / outline / tabular
Region Country
2022
2023
2024
2025
Grand Total
₺125.664
₺125.202
₺125.664
₺126.126
₺502.656
₺147.944
₺260.363
₺154.282
₺257.201
₺819.790
Grand Total
₺273.608
₺385.565
₺279.946
₺383.327
₺1.322.446

Notes

  • An expression receives the cell’s measure values keyed by measure id (as displayed) plus where it runs (rowPath, columnPath, total flags); non-finite results become an empty cell.
  • Value and Top-N filters compare a member’s grand total (over all other fields), in area order; member filters apply to local data.
  • *ogePivotCellTemplate, *ogePivotRowHeaderTemplate and *ogePivotColumnHeaderTemplate replace the content only — expanders, roles and keyboard navigation stay the grid’s.
  • @oge-ui/pivot/export-pdf writes the grid’s own cell text, its row-header layout and the field captions, with the column headers repeated on every page.