Model metadata objects
Metadata is the model contract
A semantic model contains definitions as well as data. Metadata records what tables, columns, relationships, measures, partitions and roles mean and how they interact. A measure expression is evaluated at query time; a partition defines how a portion of a table is populated. A description-only edit should not change numerical results, but a role or relationship edit may change who sees which rows. Use the local teaching inventory in labs/tabular-tools/model-before.json (a custom JSON projection, not a native model format).
Find the object and its dependencies
Start at database → model → table → columns, measures and partitions. Relationships connect tables; roles contain permission and filter definitions. Annotations attach named metadata for tooling; display folders organize fields in clients. Perspectives offer a curated subset of objects, not a security boundary. Translations supply localized captions and descriptions; they do not automatically translate underlying data. Calculation groups hold calculation items and precedence that can alter explicit measure evaluation. Inspect dependent expressions, source queries, role filters and report references before any change. Never export real credentials, connection secrets or personal identity mappings into source control.
Example 1 — trace an explicit measure
The fixture has four Sales rows: North 100 and 40, South 60 and 20 (integer USD). Revenue is SUM(Sales[Amount]), depends on Amount, and produces 220 globally, 140 for North and 80 for South. Its partition is the local fixture CSV; RegionKey connects Sales to Region. Identify the existing measure by table and name before editing its description. An annotation OwnerTeam = BI-Lab records a fictional owner. The approved change sets description to Total recorded sales in USD. and display folder to Finance. It changes neither the DAX expression nor the partition, relationship or role.
Example 2 — inspect role and presentation objects
The NorthReader role has Region[RegionKey] = "N"; the SouthReader role uses "S". The teaching model uses single-direction filtering from Region to Sales. The SalesSummary perspective exposes Revenue and Region Name but does not prevent querying other objects. A caption for Revenue in en-GB is Sales revenue; its numeric result is still 220 without RLS. A Current calculation item uses SELECTEDMEASURE() with precedence 10 in the planning inventory. Its expected result is unchanged; native calculation-group execution is not tested. Role membership is intentionally omitted from the native snippets: use only fictional test personas in an isolated model.
Tool selection and boundaries
Tabular Editor 2 is the open-source editor; Tabular Editor 3 is a commercial product with richer development features such as DAX editing and debugging, with capabilities depending on edition and connection mode. Both support Best Practice Analyzer. Check the current edition matrix before choosing a tool, particularly for Fabric/Direct Lake, workspace mode and automation. For a local PBIX copy, open the external tool from Desktop if installed and supported. Inspect first, do not click Save to a live shared model. For this offline exercise use JSON inspection instead; it does not prove that the engine accepts the model.
Practice — locate an object without modifying it
In the baseline inventory, list Revenue’s expression, table, column dependency, folder, and the Sales partition. Explain why the NorthReader role is not the same as SalesSummary. Hint: one controls rows, the other organizes fields. Next: choose the correct metadata representation.
Documentation search extracts checked 2026-11-29. Installed versions and native execution NOT RUN.
- https://learn.microsoft.com/analysis-services/tom/introduction-to-the-tabular-object-model-tom-in-analysis-services-amo
- https://learn.microsoft.com/en-us/dotnet/api/microsoft.analysisservices.tabular.measure?view=analysisservices-dotnet
- https://learn.microsoft.com/en-us/analysis-services/tabular-models/perspectives-ssas-tabular?view=asallproducts-allversions
- https://learn.microsoft.com/en-us/analysis-services/tabular-models/translations-in-tabular-models-analysis-services?view=sql-analysis-services-2025
- https://learn.microsoft.com/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions
- https://learn.microsoft.com/en-us/analysis-services/tabular-models/roles-ssas-tabular?view=sql-analysis-services-2025
- https://docs.tabulareditor.com/en/
- https://docs.tabulareditor.com/en/getting-started/editions.html