<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Veeva QMS data modeling in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178904#M57589</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for all the inputs!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me explain how I am currently approaching the data modelling and transformation for my Veeva QMS project in Databricks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;1. Bronze to Silver – Historical Data Tracking&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fivetran incrementally ingests data from Veeva into Databricks, which I land directly in the Bronze layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From Bronze to Silver, I am implementing SCD Type 2 using a hash-based change detection mechanism. I maintain the following columns to track historical changes:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_start_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_end_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;is_current&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This allows me to maintain historical versions of records while identifying the latest version using &lt;/SPAN&gt;&lt;SPAN&gt;is_current = true&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;2. Silver to Gold – Data Modelling&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the Gold layer, I am generating surrogate keys for each record while retaining historical versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently, I am keeping the source-level tables directly as Fact and Dimension tables rather than creating an entirely new dimensional model by combining multiple source objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;3. Gold to Materialized Views – Current-State Reporting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On top of the Gold tables, I am creating Materialized Views (MVs) that contain only the current snapshot of the data using &lt;/SPAN&gt;&lt;SPAN&gt;is_current = true&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am maintaining one row per QMS record in each MV. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per Deviation&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per Investigation&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per CAPA&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;And so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Within these MVs, I am joining the relevant dimension tables, such as &lt;/SPAN&gt;&lt;SPAN&gt;dim_affiliate&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dim_department&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dim_organization&lt;/SPAN&gt;&lt;SPAN&gt;, etc., to make the datasets more suitable for reporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;4. Dashboard Layer – Databricks AI/BI&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My plan is to use these MVs as the foundation for the AI/BI dashboard datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am thinking of joining the required MVs at the dashboard dataset level, performing the necessary aggregations, and defining the business KPIs directly within the AI/BI dashboards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For historical reporting, I can leverage the Gold tables, which retain the SCD Type 2 historical records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;My questions to the community:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is this architecture aligned with recommended Databricks Lakehouse and dimensional modelling best practices, or would you recommend a different approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is it a good practice to keep source-level tables directly as Fact and Dimension tables in the Gold layer, or should I build separate business-oriented fact and dimension tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is maintaining separate current-state MVs for each QMS object (Deviation, Investigation, CAPA, etc.) a good approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would joining these MVs and defining aggregations/KPIs directly in AI/BI dashboard datasets be a good approach, or should I create another reporting/serving layer with pre-aggregated MVs?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;For historical reporting, would querying the SCD Type 2 Gold tables separately be sufficient, or should I design dedicated historical reporting MVs as well?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I would really appreciate feedback on this architecture, especially from those who have worked on complex, process-oriented data models or implemented Veeva QMS analytics using Databricks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to your suggestions and recommendations!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niyojit&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Dec 2026 05:30:55 GMT</pubDate>
    <dc:creator>Niyojit</dc:creator>
    <dc:date>2026-12-06T05:30:55Z</dc:date>
    <item>
      <title>Veeva QMS data modeling</title>
      <link>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178858#M57578</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m currently working on a client project where the source data comes from &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Veeva QMS (Quality Management System)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;. The data is being ingested into Databricks using Fivetran, and my next step is to build the data foundation, including the &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;curated Gold layer and Materialized Views (MVs)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, which will serve as the data source for downstream dashboards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Since QMS is a process-oriented system with multiple interdependent parent-child objects, I would appreciate the community’s guidance on a couple of design considerations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;1. Data Modelling Approach&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Given that QMS contains several parent-child objects with dependencies between them, what would be the recommended approach for designing the Gold layer?&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Should I model the data using a traditional fact and dimension approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How should I handle relationships and dependencies between different QMS objects?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there any recommended modelling patterns for process-oriented data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;2. Materialized Views and Historical Data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm also trying to understand the best approach for designing Materialized Views on top of the Gold layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Should MVs primarily represent the current state of the data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If the business wants to analyse historical trends (e.g., how a QMS process or record has evolved over time), should I maintain historical data in the Gold tables and use those tables alongside the MVs?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would you recommend maintaining separate current-state and historical views, or is there a better architectural approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I'd love to hear how others have approached similar QMS or process-oriented data modelling scenarios in Databricks, particularly when designing the Gold layer for both current-state reporting and historical analytics.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions, best practices, or architectural recommendations would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2026 11:09:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178858#M57578</guid>
      <dc:creator>Niyojit</dc:creator>
      <dc:date>2026-12-05T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Veeva QMS data modeling</title>
      <link>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178864#M57580</link>
      <description>&lt;P&gt;The challenge with process oriented systems are that each object (Deviation, CAPA etc) is a workflow whose value lies in its lifecycle and Fivetran usually replicates each object as a current state table (with _deleted soft-delete flag). You can use a &lt;STRONG&gt;hybrid dimensional model&lt;/STRONG&gt;. In &lt;STRONG&gt;Silver&lt;/STRONG&gt;, keep one normalized table per QMS object with all keys preserved and in &lt;STRONG&gt;Gold&lt;/STRONG&gt; - build conformed dimensions (dim_quality_record covering all record types with record_type as an attribute along with dim_site, dim_product, dim_person, dim_date) so cross process KPIs join on shared keys.&amp;nbsp;Model the process with two complementary facts like an accumulating snapshot fact (one row per record with milestone date columns like date_opened, date_investigation_closed, date_closed&amp;nbsp;and derived days_open) that serves dashboards current state/cycle time queries and event fact (one row per state transition) that powers bottleneck analysis. &lt;STRONG&gt;Parent child&lt;/STRONG&gt; dependencies like Deviation/CAPA/Action Item can stay in explicit foreign keys with a relationship table (record_id, parent_record_id, relationship_type). Avoid flattening the hierarchy into wide tables as Veeva's object model usually evolves and flattened structures can break due to it.&lt;/P&gt;&lt;P&gt;Materialized views refresh incrementally on a best effort basis and may fall back to a full recomputation when inputs change in ways the planner cannot handle and non deterministic expression such as current_date() or a rolling window inside its definition prevents incremental refresh entirely. You can store the history in &lt;STRONG&gt;Gold Delta&lt;/STRONG&gt; tables&amp;nbsp;(&lt;STRONG&gt;SCD Type 2&lt;/STRONG&gt; for slowly changing attributes in dim_quality_record and the event fact for full evolution). MVs can stay on top as current state and aggregate layers for dashboards. You can declare &lt;STRONG&gt;primary/foreign&lt;/STRONG&gt; key constraints with RELY on the Gold tables to help the optimizer.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2026 14:41:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178864#M57580</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-12-05T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Veeva QMS data modeling</title>
      <link>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178884#M57583</link>
      <description>&lt;P&gt;Hi Niyojit, I would start by defining what one row represents in each Gold table and which historical questions the dashboards must answer.&lt;/P&gt;&lt;P&gt;A practical design would be:&lt;/P&gt;&lt;P&gt;- Current process fact: one row per quality record, with its current status and milestone dates.&lt;BR /&gt;- Transition fact: one row per recorded status change, for time-in-stage and bottleneck analysis.&lt;BR /&gt;- Daily snapshot fact: one row per record per reporting date, if users need historical backlog or overdue counts.&lt;BR /&gt;- Shared dimensions: site, product, owner and date.&lt;BR /&gt;- Relationship tables where records have many-to-many relationships.&lt;/P&gt;&lt;P&gt;Keep child objects at their own grain. Joining several child tables directly to a parent can multiply rows and inflate dashboard measures. Aggregate each child to the required parent grain before joining.&lt;/P&gt;&lt;P&gt;For history, first confirm what Fivetran actually delivers. If it only captures the latest state between syncs, building SCD Type 2 downstream cannot recover intermediate transitions that were never ingested. Exact lifecycle analysis needs source audit or transition records.&lt;/P&gt;&lt;P&gt;Materialized views can serve both current and historical reporting. They materialize the result of a query, so history must exist in the underlying data. Refreshing an MV over a current-state table does not create historical snapshots.&lt;/P&gt;&lt;P&gt;For example, assuming you maintain a daily snapshot table with one row per record per day, this MV provides historical backlog by site:&lt;/P&gt;&lt;P&gt;CREATE MATERIALIZED VIEW gold.qms_daily_backlog AS&lt;BR /&gt;SELECT&lt;BR /&gt;snapshot_date,&lt;BR /&gt;site_id,&lt;BR /&gt;COUNT(*) AS open_records&lt;BR /&gt;FROM gold.qms_daily_snapshot&lt;BR /&gt;WHERE is_open = true&lt;BR /&gt;GROUP BY snapshot_date, site_id;&lt;/P&gt;&lt;P&gt;The table and column names above are illustrative. Define is_open using the business-approved lifecycle states.&lt;/P&gt;&lt;P&gt;One clarification on incremental refresh: current_date() does not always prevent it. Databricks supports time functions in a WHERE condition that can be applied directly to one input table. Using those functions in a SELECT list, join condition or aggregate forces a full recompute.&lt;/P&gt;&lt;P&gt;I would keep retained history in Delta tables and use MVs for dashboard queries over that history. That also allows a full MV refresh to reconstruct the historical report.&lt;/P&gt;&lt;P&gt;Official references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/incremental-refresh" target="_blank"&gt;https://docs.databricks.com/aws/en/ldp/incremental-refresh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/sql/mv-st/materialized" target="_blank"&gt;https://docs.databricks.com/aws/en/sql/mv-st/materialized&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://fivetran.com/docs/connectors/applications/veeva-vault" target="_blank"&gt;https://fivetran.com/docs/connectors/applications/veeva-vault&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2026 19:07:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178884#M57583</guid>
      <dc:creator>tajamulkhan</dc:creator>
      <dc:date>2026-12-05T19:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Veeva QMS data modeling</title>
      <link>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178904#M57589</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for all the inputs!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let me explain how I am currently approaching the data modelling and transformation for my Veeva QMS project in Databricks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;1. Bronze to Silver – Historical Data Tracking&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fivetran incrementally ingests data from Veeva into Databricks, which I land directly in the Bronze layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From Bronze to Silver, I am implementing SCD Type 2 using a hash-based change detection mechanism. I maintain the following columns to track historical changes:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_start_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_end_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;is_current&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This allows me to maintain historical versions of records while identifying the latest version using &lt;/SPAN&gt;&lt;SPAN&gt;is_current = true&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;2. Silver to Gold – Data Modelling&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the Gold layer, I am generating surrogate keys for each record while retaining historical versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently, I am keeping the source-level tables directly as Fact and Dimension tables rather than creating an entirely new dimensional model by combining multiple source objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;3. Gold to Materialized Views – Current-State Reporting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On top of the Gold tables, I am creating Materialized Views (MVs) that contain only the current snapshot of the data using &lt;/SPAN&gt;&lt;SPAN&gt;is_current = true&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am maintaining one row per QMS record in each MV. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per Deviation&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per Investigation&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;One row per CAPA&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;And so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Within these MVs, I am joining the relevant dimension tables, such as &lt;/SPAN&gt;&lt;SPAN&gt;dim_affiliate&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dim_department&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;dim_organization&lt;/SPAN&gt;&lt;SPAN&gt;, etc., to make the datasets more suitable for reporting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;4. Dashboard Layer – Databricks AI/BI&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My plan is to use these MVs as the foundation for the AI/BI dashboard datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am thinking of joining the required MVs at the dashboard dataset level, performing the necessary aggregations, and defining the business KPIs directly within the AI/BI dashboards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For historical reporting, I can leverage the Gold tables, which retain the SCD Type 2 historical records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;My questions to the community:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is this architecture aligned with recommended Databricks Lakehouse and dimensional modelling best practices, or would you recommend a different approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is it a good practice to keep source-level tables directly as Fact and Dimension tables in the Gold layer, or should I build separate business-oriented fact and dimension tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is maintaining separate current-state MVs for each QMS object (Deviation, Investigation, CAPA, etc.) a good approach?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would joining these MVs and defining aggregations/KPIs directly in AI/BI dashboard datasets be a good approach, or should I create another reporting/serving layer with pre-aggregated MVs?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;For historical reporting, would querying the SCD Type 2 Gold tables separately be sufficient, or should I design dedicated historical reporting MVs as well?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;I would really appreciate feedback on this architecture, especially from those who have worked on complex, process-oriented data models or implemented Veeva QMS analytics using Databricks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to your suggestions and recommendations!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Niyojit&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2026 05:30:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/veeva-qms-data-modeling/m-p/178904#M57589</guid>
      <dc:creator>Niyojit</dc:creator>
      <dc:date>2026-12-06T05:30:55Z</dc:date>
    </item>
  </channel>
</rss>

