Update Power BI reports to FOCUS 1.4 (v1_4 schema)#2209
Draft
flanakin wants to merge 3 commits into
Draft
Conversation
Repoint KQL reports from Costs_v1_2/Recommendations_v1_2 to the new v1_4 hub functions and reconcile the Costs model with the FOCUS 1.4 output schema (22 new columns). Retain the deprecated ProviderName and PublisherName model columns by deriving them from HostProviderName and ServiceProviderName so existing visuals and custom reports keep working. Storage reports gain a Has14 normalization branch that backfills new FOCUS 1.3/1.4 columns for older exports and the deprecated provider columns for 1.4 exports, plus FOCUS 1.4/1.2 source-version detection. Update hubs compatibility docs and changelog. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Combines the base branch's origin/dev merge (including the x_SkuTerm ISO 8601 fix from #2175) and Q4 ContractCommitments schema updates with this branch's FOCUS 1.4 Power BI changes. Changelog conflict resolved by merging this PR's Power BI entries into the restructured v15 Power BI reports section. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠️ Description
Updates both Power BI report variants from the FinOps hubs
v1_2schema tov1_4(FOCUS 1.4), following the same pinned-version pattern used for the v1_2 upgrade (fa3ff33). Part of #2120 (W5 in the FOCUS 1.4 plan).KQL variant (
src/power-bi/kql/)Shared.Dataset/definition/tables/Costs.tmdlCosts_v1_2toCosts_v1_4(pinned, not the unversionedCosts()alias).v1_4columns:AllocatedMethodDetails,AllocatedMethodId,AllocatedResourceId,AllocatedResourceName,AllocatedTags,ContractApplied,HostProviderName,ServiceProviderName(FOCUS 1.3),CommitmentProgramEligibilityDetails,InvoiceDetailId, and the 12ContractCommitment*columns (FOCUS 1.4). Dynamic columns aretostring()-converted in the KQL query and modeled asstring, matching the existingSkuPriceDetails/Tagspattern.Costs_final_v1_4table also adds the 12ContractCommitment*columns, so all 22 are modeled.x_SourceValuesremains intentionally unmodeled (pre-existing).Shared.Dataset/definition/tables/ReservationRecommendations.tmdl:Recommendations_v1_2→Recommendations_v1_4.Decisions:
ProviderName/PublisherNamemodel columnsKept both model columns, derived from the new columns instead of removing them:
| extend ProviderName = HostProviderName | extend PublisherName = ServiceProviderNamein the partition query.HostProviderName/ServiceProviderNamewhen reading FOCUS 1.4 exports.Rationale:
Costs[PublisherName]is bound to a table visual in CostSummary, Invoicing, and RateOptimization (both variants), andCosts[ProviderName]is referenced by two DAX measures in each Shared.Dataset. Removing the columns would break those visuals/measures and any customer-customized reports built on the shared dataset. The derivation is semantically faithful to the hub's own down-conversion (HostProviderNamefalls back toProviderName;ServiceProviderNamefalls back tocoalesce(PublisherName, ProviderName)).Storage variant (
src/power-bi/storage/)Shared.Dataset/definition/tables/Costs.tmdlHas14presence flag (ServiceProviderNamecolumn) alongsideHasPreview/Has10/Has12.Ensure14Cols→AlignNewProviders→Align14): create any missing FOCUS 1.3/1.4 columns (null for older exports), backfillHostProviderName←ProviderNameandServiceProviderName←coalesce(PublisherName, ProviderName)for ≤1.2 data, and backfill the deprecatedProviderName/PublisherNamefrom the new columns for 1.4 data. Handles mixed-version folders (fills only nulls).ContractCommitmentCreated/LastUpdated→ datetimezone, the two percentage columns → number) added to the existingTable.TransformColumnTypeslist.Shared.Dataset/definition/expressions.tmdl:x_SourceVersioninference inftk_Storagenow detects1.4byServiceProviderNamepresence (mirroring the hub KQL heuristic) and also detects1.2byInvoiceIdpresence (previously everything non-preview was labeled1.0).src/power-bi/queries/ftk_NormalizeSchema.pq: no changes needed. It normalizes legacy actual/amortized (non-FOCUS) exports, which never contain FOCUS 1.3/1.4 columns; its FOCUS-1.0-shaped output (withProviderName/PublisherName) is handled by the new backfill logic downstream.Report strings
No
report.jsonchanges were needed: an exhaustive grep found no "FOCUS 1.2"/"1.2-preview" supported/output-version claims. The only FOCUS version strings are "FOCUS 1.0 preview" backward-compat parameter descriptions, which genuinely describe legacy input exports and were left as is.Docs and changelog
docs-mslearn/toolkit/hubs/compatibility.md: added a hubs 15+ / Power BI 15+ row ("KQL reports use the FinOps hubs v1_4 schema for FOCUS 1.4") and scoped the prior row's Power BI column to 12-14;ms.date→ 07/15/2026. (Checkedflanakin/focus14-phase0-docs— it doesn't touch compatibility.md, so no overlap.)docs-mslearn/toolkit/power-bi/*.md: no v1_2 schema claims exist; the export-dataset-version tables (1.0,1.0r2,1.2-preview) describe input export versions and were left alone.docs-mslearn/toolkit/changelog.md: added a "Power BI reports v15.0.0" section under Unreleased (no overlap with the hubs v15 entries already written by the stack).Remaining
_v1_2referencesgrep -rn '_v1_2' src/power-bi/returns zero hits. (The storage variant's back-compat logic is column-presence based, not version-function based, so no deliberate_v1_2references remain either.)Binaries that could NOT be updated (manual regeneration needed)
src/power-bi/cm-connector/CostManagementConnector.pbixsrc/power-bi/cm-connector/CostManagementTemplateApp.pbixThese are the Cost Management connector/template app binaries. They embed the
ftk_LoadData/ftk_NormalizeSchemaqueries and are built from non-FOCUS exports, so no v1_4 change is strictly required, but they should be regenerated if the shared query files are ever re-synced. The 12.pbipfiles are text pointers and required no changes; the.pbixreport binaries normally produced at release time must be re-exported from the updated.pbip/TMDL sources as part of the release process.Verification
grep -rn '_v1_2' src/power-bi/→ 0 hits.sourceColumnvalues in the KQL Costs table verified against theCosts_v1_4()projection + partition-query extends (only intentional derived/computed columns differ;ProviderName/PublisherNamecovered by the new extends).Stacking
flanakin/focus14-phase7-tests-changelog) — the KQL reports pin toCosts_v1_4()/Recommendations_v1_4(), which only exist with the v1_4 hub schema from that stack. Do not retarget toflanakin/focus14until the stack below merges.📋 Checklist
🔬 How did you test this change?
📦 Deploy to test?
🙋♀️ Do any of the following that apply?
🤖 Generated with Claude Code