Skip to content

Commit

Permalink
docs(powerbi): Clarify result table
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 19, 2024
1 parent faa53a7 commit 582d753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/powerbi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ Cardinal's `indicators command <https://cardinal.readthedocs.io/en/latest/cli/in
:start-after: CREATE
:end-before: );

- An indicator triggers at most once per entity (``ocid``, ``buyer_id``, ``procuring_entity_id`` or ``tenderer_id``). However, we “spread” the non-OCID results across multiple contracting processes. So, the unique key (if we were to add one) would be (``ocid``, ``code``, ``buyer_id``, ``procuring_entity_id``, ``tenderer_id``).
- For each indicator, Cardinal flags each entity at most once. An entity can be a contracting process (``ocid``), buyer (``buyer_id``), procuring entity (``procuring_entity_id``) or tenderer (``tenderer_id``). However, in this SQL table, if the entity is not a contracting process (``ocid``), then the indicator result is “spread” across the entity's related contracting processes. For example, if the NF038 indicator flags a buyer, then a row is added for each contracting process of that buyer. If we were to add a unique key, it would be: (``ocid``, ``code``, ``buyer_id``, ``procuring_entity_id``, ``tenderer_id``).

- Each row is about only one entity. For example, if a contracting process is flagged (``ocid``) and the same contracting process has both a buyer that is flagged (``buyer_id``) and a tenderer that is flagged (``tenderer_id``), there will be 3 rows, not 1. For example:
- Each row is "about" only one entity, indicated by the ``subject`` column. For example, if a contracting process is flagged (``ocid``) and the same contracting process has both a buyer that is flagged (``buyer_id``) and a tenderer that is flagged (``tenderer_id``), there will be 3 rows, not 1. For example:

============= ======== ===== ======== ===========
ocid subject code buyer_id tenderer_id
Expand Down

0 comments on commit 582d753

Please sign in to comment.