---
title: "Codeunit 6310 PBI Top Opportunities Calc., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/points/
object: https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6310 PBI Top Opportunities Calc., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/PowerBI/ReportingData/PBITopOpportunitiesCalc.Codeunit.al, in source order, read from the text, not from a run.

## GetValues

[Line 16](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L16).

- [20](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L20) calls `CalcTopFiveOpportunities`
- [24](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L24) calls `InsertToBuffer`

## CalcTopFiveOpportunities

[Line 28](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L28), local.

- [32](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L32) writes [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) DeleteAll
- [40](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L40) writes [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) Insert

## InsertToBuffer

[Line 44](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L44), local.

- [53](https://jonas-paprotka.de/ref/codeunit/6310-pbi-top-opportunities-calc/source/#L53) writes [Table 6305 Power BI Chart Buffer](https://jonas-paprotka.de/ref/table/6305-power-bi-chart-buffer/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
