The values for a TSV column of the key results fact table (dwh_okr_key_result_facts) do not match what is seen on the MUX screen.
For example, the MUX per periods metric shows value 7.69 for TSV field "A", but the database shows 27684
MUX:
Query example
SELECT KEY_RESULT_KEY, A FROM dwh_okr_key_result_facts WHERE PERIOD_KEY =3009497 AND KEY_RESULT_KEY = 5014370
Clarity 16.4.0
This discrepancy occurs because of how time-based fields are stored in the Data Warehouse (DWH).
While the MUX screen displays time in hours, the Data Warehouse stores these values in seconds. To align the database values with the UI, you must convert the raw seconds back into hours.
The Conversion Logic
To derive the human-readable value, follow these steps:
Calculation Example:
Using value of 27692.307692:
27692.307692 / 3600 = 7.6923
Once rounded to two decimal places, this equals 7.69 (or 7.7 depending on UI rounding).
SQL Snippet
When querying the dwh_okr_key_result_facts table, use the following logic to ensure your reports match the MUX screen:
SELECT ROUND(A / 3600, 2) AS actual_result_hours
FROM
dwh_okr_key_result_facts WHERE PERIOD_KEY =3009497 AND KEY_RESULT_KEY = 5014370;