<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fahad Shamim on Medium]]></title>
        <description><![CDATA[Stories by Fahad Shamim on Medium]]></description>
        <link>https://medium.com/@fahad.shamim?source=rss-af60bd1dece7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RyROtYjMRvaEzFUENXAehA.png</url>
            <title>Stories by Fahad Shamim on Medium</title>
            <link>https://medium.com/@fahad.shamim?source=rss-af60bd1dece7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 13:32:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fahad.shamim/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Power BI Pro vs Premium or Fabric: Every Feature Premium or F SKU Gives You That Pro Doesn’t]]></title>
            <link>https://medium.com/microsoft-power-bi/power-bi-pro-vs-premium-fabric-every-feature-premium-or-f-sku-gives-you-that-pro-doesnt-19f081f77e61?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/19f081f77e61</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 13:20:22 GMT</pubDate>
            <atom:updated>2026-11-08T17:24:33.412Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A documentation-grounded guide to Pro, Premium Per User, and capacity licensing, and the Fabric F SKUs that are replacing Premium P SKUs.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*WcBVunLD6ZQDzUWpM8RY4g.png" /></figure><p>“Should we buy Pro or Premium?” used to have a simple answer. In 2026 it doesn’t, because the word “Premium” now points at three different things: a per-user license that’s still on sale, a capacity SKU Microsoft has stopped selling, and the Fabric capacity that replaces it.</p><p>This article untangles that. Everything here is grounded in Microsoft Learn documentation (links at the end), so you can take it into a licensing conversation with confidence.</p><p>By the end you’ll know:</p><p>• What “Premium” means today, and what the P SKU retirement means for you</p><p>• How a user’s license and a workspace’s type combine to decide what anyone can do</p><p>• Every feature Premium gives you that Pro doesn’t, and what each one is good for</p><p>• Which features need a capacity, so that even Premium Per User won’t get you there</p><p>The sharing rules that catch teams out, and how to pick the right option</p><p><strong>👉 </strong><a href="https://powerbi-masterclass.short.gy/power_bi_database">Get <strong>friend links</strong> for all of our 1500&gt; Power BI learning articles</a></p><p>👉 <a href="https://powerbi-masterclass.short.gy/power_bi_lifetime">Get <strong>lifetime access</strong> to our Power BI Masterclass webpage</a></p><h3>First, what does “Premium” mean in 2026?</h3><p>When someone says “Premium” today, they could mean any of three products. Getting this straight first saves a lot of confusion later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*PtRoEYsrn2A_8XnUNNH7oQ.png" /></figure><h3>The P SKU retirement in brief</h3><p>Microsoft no longer sells new P SKUs. Each existing subscription retires at the end of its current agreement term, and customers on expiring Enterprise Agreements or Microsoft Cloud Agreements can’t renew or add P SKU capacity. Pro and PPU are explicitly <em>not</em> affected, and neither are Embedded (EM/A) SKUs or sovereign clouds, where Fabric isn’t available yet.</p><p>If a P SKU lapses without a replacement, here’s what happens:</p><p>1. <strong>Days 1 - 30:</strong> a grace period; the capacity keeps running at no charge.</p><p>2. <strong>Days 31 - 90:</strong> access is throttled and interactive operations are delayed, though you can still export data.</p><p>3. <strong>Day 91 onward:</strong> every operation is rejected. Data is retained but inaccessible until workspaces move to an F SKU.</p><p>Microsoft is blunt that the grace window is a safety net, not a migration plan.</p><h4>P SKU to F SKU mapping</h4><p>Each P SKU v-core corresponds to 8 Fabric capacity units (CUs), which gives this compute mapping:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*RMG83fcAAbhpTEyT73PDBg.png" /></figure><p>Microsoft notes this is a compute comparison, not a licensing equivalence. The number that matters most for licensing is <strong>F64</strong>: it’s the threshold where free-license viewers can open Power BI content. For the rest of this article, “capacity” means a P SKU or an F64 and up Fabric capacity unless stated otherwise.</p><h4>How licensing actually works: two keys, one door</h4><p>What anyone can do in Power BI is decided by two things together: <strong>the user’s license</strong> and <strong>the workspace’s type</strong>. Microsoft’s docs say this directly, licenses and workspaces “work together”. Most licensing confusion comes from looking at only one of them.</p><p>There are three per-user licenses:</p><p>• <strong>Fabric (Free):</strong> lets you create content in My workspace for yourself. You can’t share, and you can’t publish to other workspaces.</p><p>• <strong>Pro:</strong> lets you publish to workspaces, share content, and subscribe to reports, but only with other Pro users when the content sits in shared capacity.</p><p>• <strong>PPU:</strong> includes everything in Pro, plus most Premium features. Inside a PPU workspace, though, every collaborator and viewer also needs PPU.</p><p>And a workspace can be one of several types: Pro (shared capacity), PPU, Premium capacity (P SKU), Fabric capacity (F SKU), or Embedded.</p><p>Here’s how the two combine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*kqdu7EdRnpZ_yw00YUBo2g.png" /></figure><p>The takeaway: a capacity is what removes the per-viewer licensing requirement. A PPU license unlocks features for its holder, but it does nothing for the people they want to share with.</p><p>This table covers the differences that drive most decisions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*9BpnJDCNANy2wg-4pqbbpQ.png" /></figure><p>Pro and PPU workspaces can use Copilot only through a separately provisioned Fabric Copilot capacity.</p><p>Two things in this table deserve a second look. First, PPU is genuinely powerful: Microsoft describes it as designed for enterprise workloads with item size limits equivalent to a P3. Second, the rows where PPU says “No” are almost all about audience and infrastructure, who can view, where data lives, whose compute runs it, rather than about authoring features.</p><h3>Every Premium feature Pro doesn’t have</h3><p>The features below come from Microsoft’s official Power BI Premium features list. Unless a heading says otherwise, each one works in both PPU and capacity workspaces. I’ve grouped them by the problem they solve, because “what does this unlock for my team?” is a more useful question than an alphabetical list.</p><h4>1. Scale: bigger models, more storage</h4><p><strong>Larger semantic models.</strong> Pro caps a model at 1 GB. PPU raises that to 100 GB, and capacities range from 25 GB to 400 GB depending on SKU. Microsoft adds a caveat worth remembering: some memory must be reserved for refresh and query operations, so the practical ceiling is lower than the headline number. In practice, this is what lets you import a multi-year fact table instead of compromising with DirectQuery.</p><p><strong>Large semantic model storage format.</strong> This is the storage format that makes those large models possible. It also enables faster XMLA write operations.</p><p><strong>On-demand loading for large models.</strong> Instead of loading the whole model into memory, the service pages in only the data that queries need. That improves report load times, especially for large models that aren’t used constantly.</p><p><strong>Storage.</strong> Pro gives each user 10 GB. PPU and capacity tenants get 100 TB.</p><h4>2. Refresh: more often, and under your control</h4><p><strong>48 scheduled refreshes per day.</strong> Pro allows 8. If your stakeholders want hourly or half-hourly data during business hours, this alone can decide the question. The PPU FAQ also notes that refreshes triggered through the API aren’t restricted to that count.</p><p><strong>Asynchronous (enhanced) refresh.</strong> Using the Enhanced Refresh REST API, you can refresh specific tables or partitions, set commit mode, control parallelism, configure retries, and cancel in-flight refreshes. It’s the foundation for serious orchestration, for example triggering a model refresh from a Fabric or Azure Data Factory pipeline only after the upstream load succeeds.</p><p><strong>Hybrid tables.</strong> Basic incremental refresh is available in Pro. The Premium part is hybrid tables: incremental refresh plus a real-time DirectQuery partition, so the newest rows are always live while history stays imported and fast.</p><p><strong>Higher refresh parallelism.</strong> PPU model refresh parallelism scales with the number of licenses your organization owns, from 40 up to 160.</p><h4>3. Developer and lifecycle (ALM)</h4><p>For anyone treating Power BI as engineered software, this group is usually the real reason to move off Pro.</p><p><strong>XMLA endpoint read/write.</strong> This exposes your model as an Analysis Services endpoint. It lets you use Tabular Editor, SQL Server Management Studio, DAX Studio, and ALM Toolkit; deploy models with TMSL or TOM scripts; refresh at partition level; and manage things the Power BI Desktop UI can’t, like custom partitions and perspectives. Pro gives you no XMLA write access at all.</p><p><strong>Deployment pipelines.</strong> Built-in Dev → Test → Prod promotion with deployment rules that swap data sources and parameters per stage. This is the native backbone of Power BI CI/CD, and it pairs well with Git integration.</p><p><strong>Backup and restore.</strong> Back up a semantic model to a .abf file and restore it through the XMLA endpoint, which is useful for disaster recovery and for moving models between workspaces or tenants.</p><h4>4. Performance</h4><p><strong>Automatic aggregations.</strong> The service uses machine learning to build and maintain in-memory aggregations over DirectQuery models, based on actual query patterns. You get import-like speed for common queries without hand-designing aggregation tables.</p><p><strong>Query caching.</strong> Caches the results of initial report page queries, so frequently opened reports load faster and put less load on the capacity.</p><p><strong>Enhanced automatic page refresh.</strong> Pro allows automatic page refresh for DirectQuery, but with a 30-minute minimum interval. Premium lifts that restriction to admin-defined intervals (down to seconds) and adds change-detection measures, which refresh visuals only when the underlying data actually changes.</p><h4>5. Data preparation</h4><p><strong>Advanced dataflow (Gen1) features.</strong> Premium unlocks four dataflow capabilities that Pro lacks:</p><p>• <strong>The enhanced compute engine</strong>, which caches dataflow results in a SQL engine for much faster transformations and downstream queries</p><p>• <strong>Computed entities</strong>, which perform in-storage transformations on data that’s already been loaded</p><p>• <strong>Linked entities</strong>, which reference tables from other dataflows without copying data</p><p>• <strong>Incremental refresh for dataflows</strong></p><p><strong>DirectQuery to dataflows.</strong> Connect a semantic model to a dataflow in DirectQuery mode instead of importing from it.</p><p><strong>Datamarts.</strong> A self-service, fully managed Azure SQL database with an auto-generated semantic model on top. Note that Microsoft now steers new work toward Fabric Warehouse and Lakehouse.</p><p><strong>Direct Lake.</strong> Semantic models that read Delta tables in OneLake directly, with no import step and no DirectQuery penalty. Because it depends on Lakehouse or Warehouse items, in practice it requires a Fabric capacity rather than PPU.</p><h4>6. AI and insights</h4><p><strong>AI capabilities.</strong> AutoML, Cognitive Services integration in dataflows (sentiment analysis, key phrase extraction, image tagging), and impact analysis.</p><p><strong>Insights.</strong> Automatically surfaces anomalies, trends, and KPI changes in your reports.</p><h4>7. Security and networking</h4><p><strong>Bring Your Own Key (BYOK).</strong> Encrypt data at rest with your own keys in Azure Key Vault, rather than Microsoft-managed keys. PPU supports BYOK only when it’s enabled across the entire tenant.</p><p><strong>Virtual network data gateway.</strong> Connect to data sources inside an Azure virtual network without deploying and maintaining an on-premises data gateway VM.</p><h4>8. Subscriptions and export</h4><p><strong>Dynamic per-recipient subscriptions.</strong> Pro and PPU users can receive standard email subscriptions. But subscriptions that send each recipient their own filtered view of the data require a Premium capacity. This one is easy to miss.</p><p><strong>Export to file API.</strong> The <em>Export Power BI report to file</em> REST API isn’t supported for PPU, so it effectively requires a capacity. PPU can export paginated reports through the API, limited to one call every five minutes per user.</p><h3>What only a capacity gives you (not even PPU)</h3><p>These are the features that a per-user license can’t buy, no matter how many of them you have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*M3GzsJHpjW-8n6Cy7eWhQQ.png" /></figure><h4>A note on Copilot</h4><p>Copilot has the most nuanced licensing story here. The docs say plainly that a Pro or PPU license alone isn’t sufficient, because Copilot requires organizational capacity: a paid F2 or higher, or P1 or higher. Trial capacities aren’t supported.</p><p>There is a workaround for Pro and PPU teams. An admin can designate a Fabric Copilot capacity and assign users to it. Those users can then use Copilot in Pro, PPU, and capacity workspaces and in Power BI Desktop, with all their Copilot usage billed to that one capacity. It’s a useful way to give Copilot to a group without moving their content.</p><h4>P SKUs vs F SKUs: what changes on the capacity itself</h4><p>If you’re already on capacity, the move from P to F also changes how you run it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*XtrVxMNY3sNnP6DIiRpBag.png" /></figure><p>F SKUs bring Azure’s operating model to Power BI: you can tag capacities for chargeback, count spend toward your Azure consumption commitment, and pause a capacity to stop billing when it’s idle.</p><h4>Sharing rules and the traps that catch teams out</h4><p>Most licensing surprises aren’t about features. They’re about who can see what. Here are the ones I see most often, all confirmed in Microsoft’s documentation.</p><p><strong>Trap 1: “PPU includes Pro, so Pro users can see my PPU content.”</strong> They can’t. A PPU license is required to access anything in a PPU workspace or app, and that includes access through the XMLA endpoint, Analyze in Excel, and composite models. If a Pro user opens a PPU workspace, they’re prompted for a trial (if eligible) or need an admin to assign a license.</p><p><strong>Trap 2: “I’ll build the model in PPU and publish reports to a Pro workspace.”</strong> This doesn’t get around the rule. Users without a PPU license can’t view reports built on a semantic model in a PPU workspace, even when the report itself is published elsewhere. The same applies to dataflows: you can’t run a dataflow in PPU, import it into a model in another workspace, and let non-PPU users see the result.</p><p><strong>Trap 3: “Publish to Web will work for anyone.”</strong> Not from a PPU workspace. Content there shared through Publish to Web isn’t accessible to unlicensed users.</p><p><strong>Trap 4: Moving workspaces off PPU.</strong> You can move workspaces between PPU and capacity, but semantic models need a refresh afterward. Without it, reports fail with an error saying the database is in a blocked state, and you may need a full refresh through SSMS to fix it.</p><p><strong>Trap 5: PPU trial expiry.</strong> When a PPU trial ends, users can still reach the workspace, but content that needs the license becomes unavailable until you buy licenses, move the workspace to a capacity, or turn off the requirement.</p><p><strong>Trap 6: Sizing below F64.</strong> An F2-F32 capacity gives you Fabric workloads and Copilot, but not free-viewer access. Every report viewer still needs a Pro license. Microsoft’s migration guidance calls this out specifically for teams sizing down from P1.</p><p><strong>Trap 7: Assuming a feature is Premium-only when it isn’t.</strong> Basic incremental refresh works in Pro; only the real-time hybrid partition is Premium. Paginated reports, once Premium-only, can now be published to Pro workspaces too. Check before you pay for something you already have.</p><h3>How to choose</h3><p>Work through these questions in order. The first “yes” usually points you to the answer.</p><p>1. <strong>Do large numbers of people only need to <em>view</em> reports?</strong> If so, look at an F64 or larger capacity. Free-viewer access is the one thing no per-user license can replicate, and at scale it’s usually cheaper than buying a license for every viewer.</p><p>2. <strong>Do you need Fabric workloads, Copilot, Direct Lake, Multi-Geo, or dedicated compute?</strong> Then you need a Fabric capacity. If you don’t also need free viewers, an F SKU below F64 may be enough, as long as viewers have Pro.</p><p>3. <strong>Does a defined group need XMLA, deployment pipelines, large models, or frequent refresh, and can everyone who sees the content be licensed?</strong> That’s the PPU sweet spot.</p><p>4. <strong>Otherwise</strong>, Pro covers standard authoring, sharing, and collaboration, as long as every person who consumes shared content has Pro too.</p><h4>Common scenarios</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*74QshnbJs7LDzDQ--i05Yw.png" /></figure><h4>The break-even question</h4><p>The cost comparison comes down to a simple calculation: the number of people who only view content, multiplied by the per-user license price, against the cost of an F64 capacity. Prices vary by region and change over time, so run the numbers with the current Power BI pricing page and the Azure pricing for Fabric in your region. Don’t forget that F SKUs can be reserved for a discount, or paused when idle.</p><h3>The hybrid pattern most mature teams land on</h3><p>You don’t have to pick one. Microsoft explicitly encourages mixing and matching licenses by workload. A common setup:</p><p>• <strong>Developers</strong> hold Pro or PPU and work in Development and Test workspaces.</p><p>• <strong>Production</strong> workspaces sit on an F64+ capacity, serving free-license consumers through apps.</p><p>• <strong>Deployment pipelines</strong> promote content from Dev to Test to Prod.</p><p>• A <strong>Fabric Copilot capacity</strong> gives Copilot to selected users, wherever their content lives.</p><p>This keeps per-user costs for the small group that builds, and capacity costs for the large group that consumes.</p><h3>If you’re still on a P SKU: a migration checklist</h3><p>Migration isn’t automatic. You buy an F SKU in Azure and reassign each workspace yourself. Microsoft’s guidance boils down to this sequence:</p><p>1. <strong>Inventory</strong> every workspace, item, gateway connection, and deployment pipeline on the P SKU.</p><p>2. <strong>Size the F SKU.</strong> Start from the mapping (P1 → F64, and so on), then right-size using the Fabric Capacity Metrics app and the Fabric SKU Estimator. Account for any Autoscale you were using, and for new Fabric workloads you plan to add.</p><p>3. <strong>Buy the F SKU first</strong>, in the same region as your P SKU unless a business reason says otherwise. Register the Microsoft Fabric resource provider and add a capacity admin.</p><p>4. <strong>Pilot</strong> a low-impact workspace that has at least one report, one scheduled refresh, and one gateway connection.</p><p>5. <strong>Reassign workspaces in batches</strong>, and validate each one: capacity name, report loads, refreshes, gateway connections, apps, deployment pipelines, and CI/CD jobs.</p><p>6. <strong>Watch the Capacity Metrics app</strong> for 24–48 hours. Sustained utilization near 100% means you’ve undersized.</p><p>7. <strong>Only then cancel the P SKU.</strong> Check Power BI Report Server licensing before you do.</p><p>One warning worth highlighting: a cross-region move doesn’t carry everything with it. Reports, dashboards, and small-format semantic models survive, but large storage format semantic models and all Fabric items (Lakehouses, Warehouses, Notebooks, pipelines) don’t. Back them up or capture their definitions first. This is a strong reason to stay in the same region.</p><h3>Wrapping up</h3><p>Pro is for collaboration among licensed users. PPU is Pro plus nearly every Premium authoring and engineering feature, for a group where everyone is licensed. Capacity is about audience and infrastructure, free viewers, dedicated compute, Multi-Geo, Copilot, and the rest of Fabric.</p><p>And if your organization still talks about “Premium” as a capacity, the conversation is now really about Fabric F SKUs, with F64 as the line that matters for free viewers.</p><p>If this helped, follow me for more documentation-grounded deep dives on Microsoft Fabric and Power BI. And if your team has hit a licensing trap I didn’t cover, I’d love to hear about it in the comments.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><p><strong>👉 </strong><a href="https://powerbi-masterclass.short.gy/power_bi_database">Get <strong>friend links</strong> for all of our 1500&gt; Power BI learning articles</a></p><p>👉 <a href="https://powerbi-masterclass.short.gy/power_bi_lifetime">Get <strong>lifetime access</strong> to our Power BI Masterclass webpage</a></p><p><strong>Power BI Masterclass Article Classification</strong></p><p><strong>Level:</strong> Any</p><p><strong>Category:</strong> Administration</p><p><strong>Tags:</strong> Tutorial, Administration</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19f081f77e61" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/power-bi-pro-vs-premium-fabric-every-feature-premium-or-f-sku-gives-you-that-pro-doesnt-19f081f77e61">Power BI Pro vs Premium or Fabric: Every Feature Premium or F SKU Gives You That Pro Doesn’t</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Data Factory vs Fabric Data Factory: A Complete Technical Comparison for Modern Data…]]></title>
            <link>https://pub.towardsai.net/azure-data-factory-vs-fabric-data-factory-a-complete-technical-comparison-for-modern-data-4eae5c37cb47?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eae5c37cb47</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[adf]]></category>
            <category><![CDATA[azure-data-factory]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 12:34:57 GMT</pubDate>
            <atom:updated>2026-11-23T03:25:45.784Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Azure Data Factory vs Fabric Data Factory: A Complete Technical Comparison for Modern Data Platforms</strong></h3><h4><em>For nearly a decade, Azure Data Factory (ADF) has been Microsoft’s flagship cloud data integration service, powering enterprise-scale ETL, ELT, and orchestration workloads. Today, however, Microsoft’s data strategy is increasingly centered around Microsoft Fabric, introducing a new question for data professionals.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgGf5Pr3qpxeLbqX1TtbyQ.png" /></figure><p><strong>Should you continue investing in Azure Data Factory, or is it time to move towards Fabric Data Factory?</strong></p><p>The answer isn’t as simple as replacing one product with another. While Microsoft positions Fabric Data Factory as the next evolution of Azure Data Factory, the two platforms differ significantly in architecture, infrastructure management, storage strategy, networking, and ecosystem integration.</p><p>This article explores the key differences, similarities, migration considerations, and feature gaps to help architects and data engineers make informed decisions.</p><h4><strong>The Strategic Shift: PaaS vs SaaS</strong></h4><p>The most important distinction between the two platforms is their underlying service model.</p><p><strong>Azure Data Factory</strong></p><p>Azure Data Factory is a Platform as a Service (PaaS) offering. It operates as an independent Azure service focused on data movement, orchestration, and transformation.</p><p>Key characteristics include:</p><ul><li>Hosted within the Azure Portal</li><li>Supports complex enterprise data integration</li><li>Requires Integration Runtime infrastructure</li><li>Works across diverse Azure and non-Azure environments</li></ul><p><strong>Fabric Data Factory</strong></p><p>Fabric Data Factory is delivered as a Software as a Service (SaaS) experience within Microsoft Fabric.</p><p>Unlike ADF, it isn’t a standalone service. Instead, it forms part of a broader analytics ecosystem that includes:</p><ul><li>OneLake</li><li>Lakehouse</li><li>Warehouse</li><li>Notebooks</li><li>Real-Time Analytics</li><li>Power BI</li></ul><p>The result is a far more integrated experience where data ingestion, transformation, storage, analytics, and reporting all operate within a single platform.</p><p><strong>OneLake Changes Everything.</strong></p><p>The biggest architectural difference between ADF and Fabric Data Factory isn’t pipelines. It’s storage.</p><p>ADF was designed around moving data between various data stores such as:</p><ul><li>Azure Data Lake Storage</li><li>Blob Storage</li><li>SQL Databases</li><li>External systems</li></ul><p>Fabric introduces OneLake, Microsoft’s unified data lake.</p><p>Because all Fabric workloads share the same storage foundation:</p><ul><li>Pipelines can read and write Lakehouse tables natively</li><li>Warehouses and Lakehouses share data without duplication</li><li>OneLake Shortcuts enable access to external data without physically copying it</li><li>Cross-tenant data sharing becomes significantly easier</li></ul><p>In practical terms, Fabric shifts data integration from a “move data everywhere” model to an “access data where it lives” model.</p><h4><strong>Integration Runtime vs Fully Managed Compute</strong></h4><p>One of the first things experienced ADF developers notice is the absence of Integration Runtime management.</p><p><strong>Azure Data Factory</strong></p><p>ADF relies on:</p><ul><li>Azure Integration Runtime</li><li>Self-Hosted Integration Runtime (SHIR)</li><li>Azure-SSIS Integration Runtime</li></ul><p>These components must be configured, monitored, scaled, and maintained.</p><p><strong>Fabric Data Factory</strong></p><p>Fabric eliminates Integration Runtime management entirely.</p><p>Microsoft manages the underlying compute, significantly reducing operational overhead.</p><p>For on-premises connectivity, Fabric uses the familiar:On-Premises Data Gateway</p><p>This is the same gateway technology already used by:</p><ul><li>Power BI</li><li>Power Apps</li><li>Power Automate</li></ul><p>For many organizations, this simplification alone can reduce administrative complexity.</p><h4><strong>Pipeline Development Experience</strong></h4><p>If you’ve used Azure Data Factory, Fabric pipelines will feel immediately familiar.</p><p>Core orchestration activities such as:</p><ul><li>Copy</li><li>ForEach</li><li>If Condition</li><li>Switch</li><li>Until</li><li>Lookup</li><li>Get Metadata</li><li>Web Activity</li></ul><p>remain available.</p><p>However, Fabric simplifies several aspects of development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*JP1Ft20lhxp--cZgQe4Rsw.png" /></figure><p>The removal of Linked Services and Datasets is particularly significant.</p><p>Fabric replaces both constructs with a simpler Connection model, reducing configuration overhead and making pipeline development faster.</p><h4><strong>Data Transformation: Mapping Data Flows vs Dataflow Gen2</strong></h4><p>Transformation is another area where Fabric introduces a new approach.</p><p><strong>Azure Data Factory</strong></p><p>ADF uses: Mapping Data Flows</p><p>Features include:</p><ul><li>Spark-powered execution</li><li>Visual ETL design</li><li>Advanced engineering-centric transformations</li></ul><p><strong>Fabric Data Factory</strong></p><p>Fabric introduces: Dataflow Gen2</p><p>Benefits include:</p><ul><li>Power Query-based transformations</li><li>Low-code experience</li><li>Native Fabric integration</li><li>Direct Lakehouse and Warehouse support</li></ul><p>For BI-focused teams, Dataflow Gen2 often provides a more approachable experience while still supporting sophisticated transformation logic.</p><p>Microsoft Fabric now supports Mapping Data Flow (MDF) transforms within Dataflow Gen2, bringing the familiar Azure Data Factory Mapping Data Flow experience into Fabric. MDF is currently in public preview and continues to evolve toward feature parity with Azure Data Factory Mapping Data Flows. Approximately 80–90% of common ADF Mapping Data Flow scenarios are now addressable in Fabric MDF, but enterprises should still perform detailed validation before large-scale migration.</p><h4><strong>Activity Parity: How Close Is Fabric?</strong></h4><p>Microsoft states that Fabric Data Factory now supports approximately 90% of Azure Data Factory activities.</p><p><strong>Common Activities Available in Both</strong></p><ul><li>Copy</li><li>Lookup</li><li>Get Metadata</li><li>Stored Procedure</li><li>Web</li><li>Webhook</li><li>ForEach</li><li>Until</li><li>Switch</li><li>Script</li><li>Azure Function</li><li>Databricks</li><li>ADX/KQL</li></ul><p>For most orchestration scenarios, migration requires minimal changes.</p><p><strong>Activities Still Missing in Fabric</strong></p><p>Despite substantial parity, a few Azure Data Factory activities remain unavailable.</p><p>1) Synapse Notebook Activity</p><p>Fabric notebooks can replace most scenarios, but there is no dedicated Synapse Notebook activity.</p><p>2) Synapse Spark Job Definition Activity</p><p>Currently unavailable in Fabric.</p><p>3) Validation Activity</p><p>ADF’s Validation Activity does not exist in Fabric.</p><p>Equivalent behavior can be recreated using:</p><ul><li>Get Metadata</li><li>If Condition</li></ul><p>but requires additional configuration.</p><p>4) Deprecated Azure ML Activities</p><p>The following deprecated ADF activities are also unavailable:</p><ul><li>Azure Machine Learning Batch Execution</li><li>Azure Machine Learning Update Resource</li></ul><p><strong>What About SSIS?</strong></p><p>Historically, SSIS support was one of the biggest obstacles for organizations considering Fabric.</p><p>That gap has largely closed.</p><p>Fabric now includes the <strong>Invoke SSIS Package Activity (Preview)</strong>, allowing organizations to execute existing SSIS packages directly from Fabric pipelines.</p><p>This significantly reduces migration barriers for enterprises with large SSIS investments and enables a more gradual modernization strategy.</p><p><strong>Fabric-Only Activities</strong></p><p>Fabric isn’t simply catching up with ADF. It also introduces capabilities that never existed in Azure Data Factory.</p><p>1) Outlook Activity</p><p>Send email notifications directly from pipelines.</p><p>2) Teams Activity</p><p>Native integration with Microsoft Teams.</p><p>3) Semantic Model Refresh Activity</p><p>Refresh Power BI and Fabric semantic models directly from orchestration workflows.</p><p>4) Dataflow Gen2 Activity</p><p>Execute transformation workloads natively within Fabric.</p><p>Here is a table for comparing the activities of both.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*J6SDpTd7KSnMSvoZJGCGSw.png" /></figure><h4><strong>Networking and Hybrid Connectivity</strong></h4><p>Hybrid scenarios remain an important consideration.</p><p><strong>Azure Data Factory</strong></p><p>Uses: Self-Hosted Integration Runtime</p><p>Benefits:</p><ul><li>No service-imposed throughput limits</li><li>Mature enterprise deployment model</li><li>Strong support for large-scale hybrid integration</li></ul><p><strong>Fabric Data Factory</strong></p><p>Uses: On-Premises Data Gateway</p><p>Benefits:</p><ul><li>Shared across multiple Microsoft services</li><li>Entra ID-based registration</li><li>Simplified management</li></ul><p>Potential consideration:</p><ul><li>Service-specific throughput limitations should be evaluated for high-volume workloads.</li></ul><p>For most organizations, On-Premises Data Gateway provides a simpler operational experience, but large deployments should validate performance requirements before migration.</p><h4><strong>Pricing Model</strong></h4><p>The pricing approach differs significantly.</p><p><strong>Azure Data Factory</strong></p><p>Consumption-based pricing:</p><ul><li>Activity runs</li><li>Data movement</li><li>Data Integration Units (DIUs)</li><li>Integration Runtime usage</li></ul><p><strong>Fabric Data Factory</strong></p><p>Capacity-based pricing through Fabric SKUs.</p><p>If your organization already operates Fabric capacity for Lakehouse, Warehousing, and Power BI workloads, Data Factory becomes part of that broader investment.</p><p>This can make overall platform costs easier to predict.</p><h4><strong>When Should You Choose Azure Data Factory?</strong></h4><p>ADF remains a strong choice when:</p><p>· Heavy hybrid or on-premises integration is required</p><p>· Extensive Self-Hosted Integration Runtime deployments already exist</p><p>· Advanced enterprise orchestration is critical</p><p>· Synapse-specific activities remain part of the solution</p><p>· Independent Azure services are the primary architecture</p><h4><strong>When Should You Choose Fabric Data Factory?</strong></h4><p>Fabric Data Factory is particularly compelling when:</p><p>· Building modern analytics platforms</p><p>· Using Lakehouse and OneLake architectures</p><p>· Heavily invested in Power BI and Fabric</p><p>· Reducing infrastructure management is a priority</p><p>· Unified governance and monitoring are important</p><p>· New greenfield data projects are being designed</p><h4>Things to consider before Migrating to Fabric</h4><p>One of the biggest challenges in moving from Azure Data Factory (ADF) to Fabric Data Factory is the lack of feature parity. Organisations that rely on Mapping Data Flows, SSIS package execution, Azure Functions, Custom Activities, advanced event triggers, or deep hybrid/on-premises integrations may need to redesign parts of their existing solutions.</p><p>In addition, Fabric Data Factory is built around the OneLake, Lakehouse, and Fabric ecosystem, which can require changes to data architecture, transformation patterns, security models, and operational processes. Fabric provides tighter integration with analytics workloads and Power BI, companies with mature ADF implementations often face migration effort, skill gaps, and re-engineering costs before they can fully realise the benefits of a unified Fabric platform.</p><h4><strong>Final Thoughts</strong></h4><p>Azure Data Factory remains one of the most mature and capable cloud integration platforms available today. It continues to excel in large-scale, hybrid, and heterogeneous enterprise environments.</p><p>However, Microsoft’s innovation focus is increasingly centred on Microsoft Fabric. Fabric Data Factory delivers a simpler, more integrated experience built around OneLake, Lakehouses, Warehouses, Power BI, and AI-assisted development.</p><p>For organisations already embracing Microsoft Fabric, Fabric Data Factory is quickly becoming the natural choice for new projects. For existing Azure Data Factory customers, the platform has now reached a level of maturity where migration should be actively evaluated, particularly as activity parity approaches 90% and long-standing gaps such as SSIS support continue to close.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eae5c37cb47" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/azure-data-factory-vs-fabric-data-factory-a-complete-technical-comparison-for-modern-data-4eae5c37cb47">Azure Data Factory vs Fabric Data Factory: A Complete Technical Comparison for Modern Data…</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Partitioning Deep Dive: From SQL Server and Azure SQL to Microsoft Fabric]]></title>
            <link>https://medium.com/towards-data-engineering/data-partitioning-deep-dive-from-sql-server-and-azure-sql-to-microsoft-fabric-dae46a3ac94e?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/dae46a3ac94e</guid>
            <category><![CDATA[partitioning]]></category>
            <category><![CDATA[azure-sql-server]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[performance-tuning]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 12:29:34 GMT</pubDate>
            <atom:updated>2026-11-08T13:35:14.596Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Partitioning is a key technique for managing and optimizing large datasets, but its implementation differs across data platforms. In this post, we explore partitioning strategies across SQL Server, Azure SQL and Microsoft Fabric, including key concepts, implementation approaches, benefits and important considerations</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*C638-1xMxc9BGP-ffYjknA.png" /></figure><p>Partitioning large tables offers several advantages. It can speed up data loading and archiving considerably, it allows maintenance to be carried out on individual partitions instead of the whole table, and in some scenarios, it can improve query performance.</p><p>Partitioning is usually seen as a DBA’s responsibility, but I’d strongly encourage BI developers to build a good working knowledge of it too. Many smaller organizations don’t have a dedicated DBA, so BI developers often end up handling these tasks themselves. Understanding partitioning also puts you in a better position to optimize the performance of your own solutions.</p><p>That said, partitioning shouldn’t be implemented casually. To set it up and use it correctly, you need a solid understanding of how it works.</p><h4>The Problem</h4><p>Imagine a table that grows by a million rows every month, and you need to query or remove two years of history: 100 million rows. You can’t delete that in one statement. There’s rarely enough memory or log space, so you end up deleting it in chunks.</p><p>And even once the rows are gone, the disk space isn’t released to the file system until you run DBCC SHRINKFILE, which is another slow operation that usually must be done in pieces as well.</p><h4>The solution: Partitioning</h4><p>Partitioning solves both problems. Besides returning results faster on large tables, it lets you remove whole slices of data almost instantly and reclaim the disk space in minutes or even seconds. Here’s how it works end to end.</p><h3>1) How to Set Up Partitions</h3><p>For illustration purposes, let’s partition a fact table by year using the date column:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*zVG3Va6thy3HSYDqME0Qzg.png" /></figure><p>Partition P_20XX holds everything before 2023, and P_2027 holds everything from 2027 onward, that is if there is any data for 2028 or any other year after 2027 it will be stored in P_2027 Partition. Each year in between gets its own partition. You will need to follow these four steps to create partitions.</p><p><strong>Step 1: Add a filegroup and a file</strong></p><p>Add Files and FileGroup for each Partition. Repeat following for [P_2023], [P_2024]……..[P_2027]</p><p><em>ALTER DATABASE MyDatabase ADD FILEGROUP [P_20XX];<br> <br> ALTER DATABASE MyDatabase ADD FILE<br> (<br> NAME = N’P_20XX’,<br> FILENAME = N’D:\SQLData\MyDatabase\MyTable\P_20XX.ndf’,<br> SIZE = 100MB,<br> FILEGROWTH = 100MB<br> ) TO FILEGROUP [P_20XX];</em></p><p>Change the path and sizes to suit your server. Azure SQL Database doesn’t let you add files or filegroups, so skip this step and use [PRIMARY] in the partition scheme (step 3).</p><blockquote>Tip: To manage in a better way, create a separate folder for each database. And inside database folder create separate folder for each table requiring partition and then add files.</blockquote><p><strong>Step 2: A partition function that defines the boundaries.</strong></p><p>There are 2 ways to define Partition boundaries Left or Right. You can use any one of those based on the requirements or demand of your solution.</p><p><em>1)</em> Right: In this you will define the starting point of the partitions. First partition will have no lower boundary.</p><blockquote>Tip: Use values in columns Starts At from above table.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*yTF8wVw-0VIbhY1cSk-POA.png" /></figure><p><em>CREATE PARTITION FUNCTION [myPartitionFunction](date)<br> AS RANGE RIGHT FOR VALUES (‘2023–01–01’, ‘2024–01–01’, ‘2025–01–01’,<br> ‘2026–01–01’, ‘2027–01–01’);</em></p><p>2) Left: If you are using left then you will need to define the end point of the partitions. Last partition will have no upper boundary.</p><blockquote>Tip: Use values in columns Ends At from above table.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*ndyVX6A_kvy7Ms_HYi333Q.png" /></figure><p><em>CREATE PARTITION FUNCTION [myPartitionFunction](date)<br> AS RANGE LEFT FOR VALUES (‘2022–12–31’, ‘2023–12–31’, ‘2024–12–31’,<br> ‘2025–12–31’, ‘2026–12–31’);</em></p><blockquote>Recommendation: Use Right as your data always grows on the right side.</blockquote><p><strong>Step 3: A partition scheme that maps each partition to a filegroup. <br> <br> </strong>We defined five boundaries in step 2, which means that there will be six partitions, so we need six filegroups.</p><p><em>CREATE PARTITION SCHEME [myPartitionScheme]<br> AS PARTITION [myPartitionFunction] TO<br> ([P_20XX], [P_2023],<br> [P_2024], [P_2025],<br> [P_2026], [P_2027]);</em></p><p>Use following in-case of Azure SQL Server</p><p><em>CREATE PARTITION SCHEME [myPartitionScheme]<br> AS PARTITION [myPartitionFunction] ALL TO ([PRIMARY]);</em></p><p><strong>Step 4: A table created on the scheme, </strong>with Date as the partitioning column.</p><p><em>CREATE TABLE [dbo].[myFactTable](<br> [Column1] [int] NULL,<br> [Column2] [nvarchar](50) NULL,<br>/*…other columns…*/<br> [mDate] [Date] NULL<br> ) ON [myPartitionScheme]([mDate]);</em></p><blockquote>Note: All the Indexes on the table should also follow the same partitioning scheme</blockquote><h3>B) Adding more partitions in three steps</h3><p>The partition function doesn’t grow by itself. With RANGE RIGHT, everything from 2027 onward lands in the last partition, P_2027. To give 2028 its own partition, you add a filegroup and a file, tell the partition scheme to use it next, and then split the range. Do this before any 2028 rows arrive: the new partition starts out empty, so no data has to move and the split finishes almost instantly.</p><p><strong>Step1: Add a filegroup and a file</strong></p><p><em>ALTER DATABASE MyDatabase ADD FILEGROUP [P_2028];<br> <br> ALTER DATABASE MyDatabase ADD FILE<br> (<br> NAME = N’P_2028&#39;,<br> FILENAME = N’D:\SQLData\MyDatabase\MyTable\P_2028.ndf’,<br> SIZE = 100MB,<br> FILEGROWTH = 100MB<br> ) TO FILEGROUP [P_2028];</em></p><p>Change the path and sizes to suit your server. Azure SQL Database doesn’t let you add files or filegroups, so skip this step and use [PRIMARY] in next step.</p><p><strong>Step 2: Mark the filegroup as NEXT USED</strong></p><p>The NEXT USED filegroup is where SQL Server puts the next partition you create.</p><p><em>ALTER PARTITION SCHEME [myPartitionScheme] NEXT USED [P_2028];</em></p><p>Use following in-case of Azure SQL Server</p><p><em>ALTER PARTITION SCHEME [myPartitionScheme] NEXT USED [PRIMARY];</em></p><p><strong>Step 3: Split the range</strong></p><p><em>ALTER PARTITION FUNCTION myPartitionFunction() SPLIT RANGE (‘2028–01–01’);</em></p><p>With RANGE RIGHT, the new partition is the one to the right of the new boundary. P_2028 now holds everything from 2028 onward, and P_2027 keeps 2027 like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*LRkhafIvodtiFXYHgk4Ygg.png" /></figure><p>Each split uses up the NEXT USED setting, so repeat all three steps every year. A scheduled SQL Agent job works well for this.</p><p><em>Note: If your function is RANGE LEFT, the new boundary is 2027–12–31. The new partition is then the one to the left of that boundary, and it covers 2027, which already has data. SQL Server has to move all of those rows, which is slow and fully logged. That’s one more reason to use RANGE RIGHT for date-based partitions.</em></p><h3>C) Deleting two years of data in six steps</h3><p>Say we want to get rid of 2023 and 2024. Instead of deleting rows, we’ll move those partitions out of the table, empty them, and then collapse the partition structure.</p><p><strong>Step 1: Create a staging table with the same structure</strong></p><p>Create an empty table with the same columns, the same partition scheme and, importantly, the same indexes as the original. The switch in Step 2 fails if they don’t match.</p><p>CREATE TABLE [dbo].[myFactTableTemp](<br> [Column1] [int] NULL,<br> [Column2] [nvarchar](50) NULL,<br>/*…same columns as myFactTable…*/<br> [mDate] [date] NULL<br> ) ON [myPartitionScheme]([mDate]);<br> <br> /*Recreate the same indexes that exist on [dbo].[myFactTable]*/</p><p><strong>Step 2: Switch the partitions out</strong></p><p>Because the function is RANGE RIGHT, partition 1 is XX (before 2023), partition 2 is 2023 and partition 3 is 2024. Switch those two into the staging table:</p><p><em>ALTER TABLE [dbo].[myFactTable]<br>SWITCH PARTITION 2 TO [dbo].[myFactTableTemp] PARTITION 2;<br> <br>ALTER TABLE [dbo].[myFactTable]<br>SWITCH PARTITION 3 TO [dbo].[myFactTableTemp] PARTITION 3;</em></p><p>A switch only changes metadata, so it finishes in seconds no matter how many rows the partition holds. The rows now live in the staging table and are gone from the original.</p><p><strong>Step 3: Truncate the staging table</strong></p><p>Delete the data with TRUNCATE rather than DELETE. It deallocates whole pages instead of removing rows one by one, so it’s near-instant and doesn’t need the memory and log space a large DELETE would.</p><p><em>TRUNCATE TABLE [dbo].[myFactTableTemp];</em></p><p><strong>Step 4: Merge the empty partitions</strong></p><p>2023 and 2024 are now empty, so remove their boundaries. Their ranges fold into the XX partition. Merging (and splitting) is only quick when the partitions involved are empty; on populated partitions SQL Server has to physically move the data.</p><p><em>ALTER PARTITION FUNCTION myPartitionFunction() MERGE RANGE (‘2023–01–01’);<br> ALTER PARTITION FUNCTION myPartitionFunction() MERGE RANGE (‘2024–01–01’);</em></p><p>After the merge, the partitions look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*lINk3wZx5DaFVyyDZdsRBQ.png" /></figure><p><strong>Step 5: Remove the empty files</strong></p><p>With 2023 and 2024 merged away, their files no longer hold any data. You can remove them, provided no other table or index still uses them.</p><p><em>ALTER DATABASE MyDatabase REMOVE FILE P_2023;<br>ALTER DATABASE MyDatabase REMOVE FILE P_2024;</em></p><p><em>Tip: REMOVE FILE takes the logical file name, not the filegroup name. Once a filegroup has no files left, you can drop it as well with ALTER DATABASE MyDatabase REMOVE FILEGROUP &lt;filegroup_name&gt;.</em></p><p><strong>Step 6: Drop the staging table (Optional)</strong></p><p>The staging table has done its job, so drop it or you can keep it as you will need it next year.</p><p><em>DROP TABLE [dbo].[myFactTableTemp];</em></p><p>That’s it. Two years of data are gone and the disk space is back, without a single long-running DELETE or SHRINKFILE.</p><h4>Things to watch out for</h4><p>· The staging table must match the source exactly: same columns, data types, nullability and indexes. It must also sit on the same filegroup as the partition you’re switching; creating it on the same partition scheme takes care of that.</p><p>· The target partition must be empty before you switch into it.</p><p>· Merge and split partitions only when they’re empty. On populated partitions SQL Server has to physically move rows, which is slow and fully logged.</p><p>· Know whether your function is RANGE LEFT or RANGE RIGHT. It decides which partition each boundary value lands in, and therefore which partition numbers you switch and which boundaries you merge.</p><h3>D) Partitioning in Microsoft Fabric</h3><p>Fabric has several places to store tables, and each one handles partitioning differently. Before you copy the scripts above into Fabric, check which one you’re using.</p><h4>SQL database in Fabric</h4><p>SQL database in Fabric runs the same engine as Azure SQL Database, so the partition function, scheme, SWITCH, SPLIT and MERGE all work as shown above. The one difference is storage: you can’t add files or filegroups, so every partition goes on PRIMARY. Skip the “Add a filegroup and a file” and “Remove the empty files” steps, and map the whole scheme to PRIMARY:</p><p><em>CREATE PARTITION SCHEME [myPartitionScheme]<br> AS PARTITION [myPartitionFunction] ALL TO ([PRIMARY]);<br> <br>/*Before each SPLIT similar to Azure Sql Server*/<br> ALTER PARTITION SCHEME [myPartitionScheme] NEXT USED [PRIMARY];</em></p><h4>Fabric Data Warehouse</h4><p>Fabric Data Warehouse doesn’t support partitioned tables. CREATE PARTITION FUNCTION, partition schemes and SWITCH aren’t available there. Tables are stored as Delta/Parquet files in OneLake, and Fabric manages the physical layout for you.</p><p>If your queries filter heavily on a column such as a date, look at data clustering instead (in preview at the time of writing). It stores rows with similar values together so the engine can skip files that don’t match your filter. You define it when you create the table, and you can’t add it to an existing table:</p><p><em>CREATE TABLE [dbo].[myFactTable]<br> (<br> [Column1] INT,<br> [Column2] VARCHAR(50),<br> [mDate] DATE<br> )<br> WITH (CLUSTER BY ([mDate]));</em></p><h4>Fabric Lakehouse (Delta tables)</h4><p>In a Lakehouse, partitioning is done by Spark. Each distinct value of the partition column gets its own folder of Parquet files. Partition on a low-cardinality column such as the year, not on the raw date, or you’ll end up with thousands of tiny files.</p><p><em># PySpark: write a Delta table partitioned by year<br> from pyspark.sql.functions import year<br> <br> (df.withColumn(“Year”, year(“mDate”))<br> .write.format(“delta”)<br> .mode(“overwrite”)<br> .partitionBy(“Year”)<br> .saveAsTable(“myFactTable”))</em></p><p>Or</p><p><em>%%sql</em></p><p><em>CREATE TABLE myFactTable (<br> Column1 INT,<br> Column2 STRING,<br> /*…other columns…*/<br> mDate DATE,<br> Year INT<br> )</em></p><p><em>USING DELTA</em></p><p><em>PARTITIONED BY (Year);</em></p><p>Removing old years is the Lakehouse version of the switch-and-truncate steps. A DELETE whose filter uses only the partition column drops whole partitions without rewriting any files. Delta keeps the old files for time travel, so run VACUUM to reclaim the storage. The default retention period is seven days.</p><p><em>--Spark SQL<br> DELETE FROM myFactTable WHERE Year IN (2023, 2024);<br> VACUUM myFactTable RETAIN 168 HOURS;</em></p><blockquote>Note: Microsoft’s current guidance says that with Fabric Runtime 2.0, clustering is recommended for most workloads where the goal is read/query performance. Partitioning is primarily recommended when you need to isolate concurrent writes to different parts of the table. Partitioning and clustering can’t be used on the same table.</blockquote><p>Managing partitions for Fabric LakeHouse is much simpler compared to SQL Server or Azure SQL Server.</p><h4>Which one should you use?</h4><p>· You need classic partition switching for fast archiving: use SQL database in Fabric (or SQL Server / Azure SQL).</p><p>· You’re building an analytical warehouse in T-SQL: use Fabric Data Warehouse with data clustering on your most common filter column.</p><p>· You load and transform data with Spark: use a Lakehouse with clustering for read performance. Partition by a low-cardinality column such as the year only when you need to isolate concurrent writes.</p><h3>Wrapping up</h3><p>Partitioning turns “deletion / archiving” from an all-night job into a handful of quick metadata operations. Set partitioning up before your tables grow large, and both growth and archiving become routine tasks rather than projects. As a bonus, everyday queries that filter on the partition key can run noticeably faster, because the engine only needs to read the relevant partitions.</p><p>A few things to take away from this post:</p><p>· <strong>Plan the layout up front.</strong> Use RANGE RIGHT for date-based partitions, give each year its own filegroup (or PRIMARY in Azure SQL Database and SQL database in Fabric), and make sure every index on the table uses the same partition scheme. Changing the design later is far harder than getting it right on day one.</p><p>· <strong>Add partitions before the data arrives.</strong> The partition function never grows by itself. Each year, add the filegroup and file, mark it NEXT USED, and split the range before the first row for that year lands. An empty partition splits instantly; a populated one forces SQL Server to move rows, which is slow and fully logged.</p><p>· <strong>Automate the sliding window.</strong> Adding next year’s partition and archiving the oldest one are two halves of the same yearly routine. Put both in a scheduled SQL Agent job so the table always has a spare empty partition on the right and never keeps more history than it needs.</p><p>· <strong>Archive by moving metadata, not rows.</strong> Switch, truncate, merge and remove files. Every step is quick because it only touches metadata or empty partitions, so two years of data disappear without a long-running DELETE or SHRINKFILE.</p><p>· <strong>Pick the right option in Fabric.</strong> SQL database in Fabric supports everything in this post, with all partitions on PRIMARY. Fabric Data Warehouse doesn’t support partitioned tables, so use data clustering on your most common filter column instead. In a Lakehouse, use clustering for read performance and keep Delta partitioning, on a low-cardinality column such as the year, for isolating concurrent writes. Remove old years there with a DELETE on the partition column followed by VACUUM.</p><p>· <strong>Check before you act.</strong> Run the queries below to confirm partition numbers, boundaries, row counts and file usage before any switch, merge, split or file removal. Most partitioning mistakes come from acting on the wrong partition number.</p><h3>Useful queries for working with partitions SQL Server / Azure SQL Server</h3><p><strong>1. Find the tables that are partitioned</strong></p><p>SELECT DISTINCT t.name<br> FROM sys.partitions p<br> INNER JOIN sys.tables t<br> ON p.object_id = t.object_id<br> WHERE p.partition_number &lt;&gt; 1;</p><p><strong>2. Row count per partition, with its range and filegroup</strong></p><p>SELECT DISTINCT<br> o.name AS table_name,<br> ps.name AS PScheme,<br> f.name AS PFunction,<br> rv.value AS partition_range,<br> fg.name AS file_groupName,<br> p.partition_number,<br> p.rows AS number_of_rows<br> FROM sys.partitions p<br> INNER JOIN sys.indexes i<br> ON p.object_id = i.object_id AND p.index_id = i.index_id<br> INNER JOIN sys.objects o ON p.object_id = o.object_id<br> INNER JOIN sys.system_internals_allocation_units au<br> ON p.partition_id = au.container_id<br> INNER JOIN sys.partition_schemes ps ON ps.data_space_id = i.data_space_id<br> INNER JOIN sys.partition_functions f ON f.function_id = ps.function_id<br> INNER JOIN sys.destination_data_spaces dds<br> ON dds.partition_scheme_id = ps.data_space_id<br> AND dds.destination_id = p.partition_number<br> INNER JOIN sys.filegroups fg ON dds.data_space_id = fg.data_space_id<br> LEFT OUTER JOIN sys.partition_range_values rv<br> ON f.function_id = rv.function_id<br> AND p.partition_number = rv.boundary_id<br> WHERE o.object_id = OBJECT_ID(‘[dbo].[myFactTable]’)<br> ORDER BY p.partition_number;</p><p><strong>3. The same details, plus logical and physical file names</strong></p><p>SELECT DISTINCT<br> o.name AS table_name,<br> ps.name AS PScheme,<br> f.name AS PFunction,<br> rv.value AS partition_range,<br> fg.name AS file_groupName,<br> df.name AS logical_file_name,<br> df.physical_name AS physical_file_name,<br> p.partition_number,<br> p.rows AS number_of_rows<br> FROM sys.partitions p<br> INNER JOIN sys.indexes i ON p.object_id = i.object_id AND p.index_id = i.index_id<br> INNER JOIN sys.objects o ON p.object_id = o.object_id<br> INNER JOIN sys.partition_schemes ps ON ps.data_space_id = i.data_space_id<br> INNER JOIN sys.partition_functions f ON f.function_id = ps.function_id<br> INNER JOIN sys.destination_data_spaces dds<br> ON dds.partition_scheme_id = ps.data_space_id<br> AND dds.destination_id = p.partition_number<br> INNER JOIN sys.filegroups fg ON dds.data_space_id = fg.data_space_id<br> INNER JOIN sys.database_files df ON df.data_space_id = fg.data_space_id<br> LEFT JOIN sys.partition_range_values rv ON f.function_id = rv.function_id<br> AND p.partition_number = rv.boundary_id<br> WHERE o.object_id = OBJECT_ID(‘[dbo].[myFactTable]’)<br> ORDER BY p.partition_number;</p><p><strong>4. Partition details with range, function and scheme</strong></p><p>SELECT<br> OBJECT_SCHEMA_NAME(pstats.object_id) AS SchemaName<br> ,OBJECT_NAME(pstats.object_id) AS TableName<br> ,ps.name AS PartitionSchemeName<br> ,ds.name AS PartitionFilegroupName<br> ,pf.name AS PartitionFunctionName<br> ,CASE pf.boundary_value_on_right WHEN 0 THEN ‘Range Left’ ELSE ‘Range Right’ END AS PartitionFunctionRange<br> ,CASE pf.boundary_value_on_right WHEN 0 THEN ‘Upper Boundary’ ELSE ‘Lower Boundary’ END AS PartitionBoundary<br> ,prv.value AS PartitionBoundaryValue<br> ,c.name AS PartitionKey<br> ,CASE<br> WHEN pf.boundary_value_on_right = 0<br> THEN c.name + ‘ &gt; ‘ + CAST(ISNULL(LAG(prv.value) OVER(PARTITION BY pstats.object_id ORDER BY pstats.partition_number), ‘MIN’) AS VARCHAR(100))<br> + ‘ and ‘ + c.name + ‘ &lt;= ‘ + CAST(ISNULL(prv.value, ‘MAX’) AS VARCHAR(100))<br> ELSE c.name + ‘ &gt;= ‘ + CAST(ISNULL(prv.value, ‘MIN’) AS VARCHAR(100))<br> + ‘ and ‘ + c.name + ‘ &lt; ‘ + CAST(ISNULL(LEAD(prv.value) OVER(PARTITION BY pstats.object_id ORDER BY pstats.partition_number), ‘MAX’) AS VARCHAR(100))<br> END AS PartitionRange<br> ,pstats.partition_number AS PartitionNumber<br> ,pstats.row_count AS PartitionRowCount<br> ,p.data_compression_desc AS DataCompression<br> FROM sys.dm_db_partition_stats AS pstats<br> INNER JOIN sys.partitions AS p ON pstats.partition_id = p.partition_id<br> INNER JOIN sys.destination_data_spaces AS dds ON pstats.partition_number = dds.destination_id<br> INNER JOIN sys.data_spaces AS ds ON dds.data_space_id = ds.data_space_id<br> INNER JOIN sys.partition_schemes AS ps ON dds.partition_scheme_id = ps.data_space_id<br> INNER JOIN sys.partition_functions AS pf ON ps.function_id = pf.function_id<br> INNER JOIN sys.indexes AS i ON pstats.object_id = i.object_id<br> AND pstats.index_id = i.index_id<br> AND dds.partition_scheme_id = i.data_space_id<br> AND i.type IN (0, 1, 5)<br> INNER JOIN sys.index_columns AS ic ON i.index_id = ic.index_id AND i.object_id = ic.object_id AND ic.partition_ordinal &gt; 0<br> INNER JOIN sys.columns AS c ON pstats.object_id = c.object_id AND ic.column_id = c.column_id<br> LEFT JOIN sys.partition_range_values AS prv<br> ON pf.function_id = prv.function_id<br> AND pstats.partition_number = (CASE pf.boundary_value_on_right WHEN 0 THEN prv.boundary_id ELSE prv.boundary_id + 1 END)<br> WHERE pstats.object_id = OBJECT_ID(‘[dbo].[myFactTable]’)<br> ORDER BY TableName, PartitionNumber;</p><p><strong>5. Size and free space of each database file</strong></p><p>WITH Cte_Q AS<br> (<br> SELECT DB_NAME() AS DbName,<br> name AS FileName,<br> type_desc,<br> size/128.0 AS CurrentSizeMB,<br> size/128.0<br> — CAST(FILEPROPERTY(name, ‘SpaceUsed’) AS INT)/128.0<br> AS FreeSpaceMB,<br> size/128.0/1024 AS CurrentSizeGB,<br> (size/128.0<br> — CAST(FILEPROPERTY(name, ‘SpaceUsed’) AS INT)/128.0)/1024<br> AS FreeSpaceGB<br> FROM sys.database_files<br> WHERE type IN (0,1)<br> )<br> SELECT *,<br> CONVERT(float, ROUND(FreeSpaceMB/CurrentSizeMB*100, 2)) AS [FreeSpace%]<br> FROM Cte_Q;</p><p><strong>6. Find which partition a row belongs to</strong></p><p>$PARTITION.&lt;function_name&gt;(value) returns the partition number for any value. It’s handy for confirming partition numbers before you switch anything.</p><p>SELECT TOP 100 *,<br> $PARTITION.myPartitionFunction(mDate) AS PartitionNumber<br> FROM [dbo].[myFactTable];</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dae46a3ac94e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/data-partitioning-deep-dive-from-sql-server-and-azure-sql-to-microsoft-fabric-dae46a3ac94e">Data Partitioning Deep Dive: From SQL Server and Azure SQL to Microsoft Fabric</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI’s New Calendars Feature: Defining Multiple Calendars for Smarter Time Intelligence]]></title>
            <link>https://medium.com/microsoft-power-bi/power-bis-new-calendars-feature-defining-multiple-calendars-for-smarter-time-intelligence-7a4c325e283c?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a4c325e283c</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[power-bi-tutorials]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 18:43:21 GMT</pubDate>
            <atom:updated>2026-11-08T13:35:47.676Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Power BI’s new Calendars feature enhances analytics precision by aligning date calculations with each organization’s unique fiscal or operational calendar</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*5o5xn8rd87Nr0YYV3xprcA.png" /></figure><h3><strong>Introduction</strong></h3><p>Time intelligence in DAX looks simple enough until the business calendar stops behaving. TOTALYTD, SAMEPERIODLASTYEAR, and DATEADD all do their job when you hand them a clean Gregorian date table. Give them an April fiscal year, a 4-4-5 retail calendar, ISO weeks, or a date table with gaps in it, and the code starts sprawling into something nobody enjoys maintaining.</p><p>Power BI update offers a way out of that. It is called calendar based time intelligence, though you will also see it listed as Enhanced DAX Time Intelligence, or just Calendars. The idea is that you define named calendar structures directly on a table in your semantic model: Gregorian, fiscal, retail, ISO, lunar, 13 month, or whatever shape your business actually uses. Time intelligence functions can then call those calendars by name. Better still, one date table can carry several of them, so a single model covers both calendar year and fiscal year reporting without a duplicate date table and a pile of workaround columns.</p><p>Below I walk through what the feature does, where it earns its keep, and how to set it up. I have also included the validation rules and the limitations you will want to test before anything goes near production. One caveat up front: as I write this, calendar based time intelligence is still in public preview.</p><p><strong>🎁 </strong><a href="https://powerbi-masterclass.short.gy/learning-database?utm_source=medium&amp;utm_medium=medium-post&amp;utm_campaign=database-medium-post-start"><strong>Get friend links for all of our 1500&gt; Power BI learning articles here</strong></a><strong> 🎁</strong></p><h3><strong>What “Calendars” Actually Are</strong></h3><p>A calendar here is just metadata attached to a table, almost always the Date table. It tells the engine which columns stand for Year, Quarter, Month, Week, Date, and the various partial categories. Once that mapping exists, a time intelligence function can point at the calendar by name rather than at a single date column:</p><p>— Classic time intelligence</p><p>TOTALYTD ( [Sales], ‘Date’[Date] )</p><p>— Calendar-based time intelligence</p><p>TOTALYTD ( [Sales], ‘Fiscal Calendar’ )</p><p>The real shift is that a single table can hold more than one calendar. The same Date table can host a Gregorian Calendar and a Fiscal Calendar side by side, each mapped to its own Year, Quarter, Month, and Week columns, and each measure picks whichever one suits the question being asked. That is the end of duplicate date tables, parallel fiscal models, and a separate semantic model for every audience that counts time differently.</p><p>Because the feature makes no assumptions about calendar shape, it handles patterns that classic time intelligence has always fumbled:</p><p>· Gregorian and shifted Gregorian calendars, such as a fiscal year that starts on July 1 but still uses 12 regular months</p><p>· Retail calendars using 4-4-5, 4-5-4, or 5-4-4 week patterns</p><p>· 13 month calendars</p><p>· ISO week based calendars</p><p>· Lunar calendars</p><p>· Sparse date tables, such as a table that excludes weekends because there is no activity to report</p><p>Weekly calculations finally arrive as native DAX too. TOTALWTD, DATESWTD, and their siblings work out of the box, which classic time intelligence never allowed.</p><h3><strong>Scenarios Where Multiple Calendars Are Useful</strong></h3><p><strong>1. Fiscal year reporting alongside calendar year reporting</strong></p><p>This is the one most people will hit first. Finance wants P&amp;L and budget numbers on a fiscal year starting April 1 or any other following government regulation, while Marketing and Operations carry on with the calendar year. Define both calendars on the same Date table and every team pulls correct YTD, MTD, and QTD figures from one model, with no duplicated table and no sprawl of fiscal offset columns.</p><p><strong>2. Retail 4-4-5 / 4-5-4 / 5-4-4 calendars</strong></p><p>Retail is where classic time intelligence really starts to creak. In a 4-4-5 structure the reporting “months” run four or five weeks so that comparable periods hold the same number of Saturdays. Once the correct Week, Period, and Quarter columns are mapped to a retail calendar, functions such as TOTALQTD, TOTALYTD, and the new weekly functions can work with that structure directly.</p><p><strong>3. ISO week based reporting for international operations</strong></p><p>Teams across Europe usually expect ISO 8601 week numbering, where week 1 is whichever week contains the year’s first Thursday, while other regions happily stick with a standard US calendar. Put both calendars on the same Date table and one model serves both audiences correctly.</p><p><strong>4. Comparing a global calendar with a calendar for a region or business unit</strong></p><p>A multinational might report globally on a standard Gregorian calendar while letting individual business units keep fiscal calendars that match local rules. Holding all of those calendars over the same underlying date data beats maintaining a separate model for every subsidiary.</p><p><strong>5. Sparse or incomplete date data</strong></p><p>Sometimes the date table is incomplete on purpose. A retailer drops Sundays because the stores are shut; a market data model holds trading days only. Classic time intelligence insists on every date between the first and the last. The calendar based approach works with the dates you actually have, so PREVIOUSDAY simply steps from Monday back to Saturday when Sunday is missing rather than throwing an error.</p><p><strong>6. Lunar calendars and 13 month calendars for specialized industries</strong></p><p>Agriculture, payroll, and a handful of international markets run on lunar calendars or on 13 equal months. Because the feature assumes nothing about structure, these are supported exactly like a Gregorian calendar. Map the columns that represent each period and you are done.</p><p><strong>7. Week to date reporting</strong></p><p>If you have ever needed a true week to date total, TOTALWTD makes it trivial once the calendar carries the right week categories. Classic time intelligence never had a native function for this, and the workarounds were rarely pretty.</p><h3><strong>How to Set It Up, Step by Step</strong></h3><p><strong>Step 1: Enable the preview feature</strong></p><p>Calendar based time intelligence is a preview feature, so you need to enable it first:</p><ol><li>In Power BI Desktop, go to <strong>File &gt; Options and settings &gt; Options &gt; Preview features</strong>.</li><li>Select <strong>Enhanced DAX Time Intelligence</strong>.</li><li>Select <strong>OK</strong>.</li><li><strong>Restart Power BI Desktop</strong> for the change to take effect.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*el4iFHymz-XKnmFbUgIGvA.png" /></figure><p><strong>Step 2: Make sure you have a proper date table</strong></p><p>You need a table whose rows represent time periods. Usually that is a dedicated Date table built in Power Query, generated with CALENDAR or CALENDARAUTO, loaded from a source system, or maintained in an external tool. It does not have to contain every date, but for most models a complete dedicated calendar table is still the easiest thing to live with.</p><p><em>Quick reference for a basic Power Query M date table:</em></p><p>let</p><p>StartDate = #date(2010, 1, 1),</p><p>EndDate = #date(2030, 12, 31),</p><p>NumberOfDays = Duration.Days(EndDate — StartDate) + 1,</p><p>DateList = List.Dates(StartDate, NumberOfDays, #duration(1,0,0,0)),</p><p>DateTable = Table.FromList(DateList, Splitter.SplitByNothing(), {“Date”}),</p><p>AddYear = Table.AddColumn(DateTable, “Year”, each Date.Year([Date]), Int64.Type),</p><p>AddMonthNumber = Table.AddColumn(AddYear, “Month Number”, each Date.Month([Date]), Int64.Type),</p><p>AddQuarter = Table.AddColumn(AddMonthNumber, “Quarter”, each “Q” &amp; Text.From(Date.QuarterOfYear([Date])), type text)</p><p>in</p><p>AddQuarter</p><p>Before defining the calendar, add any columns needed for your fiscal or retail structure, such as fiscal year, fiscal period, ISO week, or retail period label.</p><p><strong>Step 3: Open Calendar options</strong></p><p>Right click the table you want the calendar on, usually the Date table, and choose Calendar options. The same screen is available from the Table tools ribbon once the table is selected. It lists whatever calendars already exist on that table and lets you:</p><ul><li>Create a new calendar (<strong>New calendar</strong>)</li><li>Edit an existing calendar (<strong>Edit</strong>)</li><li>Delete a calendar (<strong>Delete</strong>)</li><li>Set the table as the model’s date table (<strong>Mark as date table</strong>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*F2IEv8xhtKY3XovWKQUZyA.png" /></figure><p>You can also define calendars through external tools such as Tabular Editor or directly in the <strong>TMDL view</strong> in Power BI Desktop.</p><p><strong>Step 4: Name the calendar and assign column categories</strong></p><p>Give the calendar a name that is unique across the whole semantic model. Two calendars cannot share a name even when they sit on different tables. Then use Add category to map your columns to their time categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*nBsMw31uHlOOfWx2y7BlGA.png" /></figure><p>Available categories fall into two groups:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*EjFtxlRoQju7iT3wX20f5w.png" /></figure><p>Every category needs one primary column and may carry associated columns alongside it. Power BI sorts on the primary column and treats it as the main field for functions such as TOTALMTD. If your display column does not sort naturally, “March 2025” stored as text being the classic offender, give it a proper sort column. Alternatively, keep the sortable field as the primary column and let the friendlier label ride along as an associated one.</p><p><em>Example of a Fiscal Calendar mapping:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*i6Va6BR9S2Z_ioSNg8m9sA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*fqkBbw6os521BQ889eJb2Q.png" /></figure><p><strong>Step 5: Validate the calendar</strong></p><p>Two layers of validation exist:</p><p><strong>Real time validations</strong> are checked immediately and must pass before you can save:</p><p>· The calendar name is unique in the model</p><p>· No column is assigned to more than one category in the same calendar</p><p>· <strong>Period uniqueness:</strong> The assigned categories must provide enough information to identify a time period. For example, a Week calendar needs either the Week category alone or a valid combination such as Week of Year and Year</p><p>· <strong>Consistent categorization:</strong> A column cannot be assigned to one category in one calendar and a different category in another calendar on the same table</p><p><strong>Offline validations</strong> are optional but strongly recommended. Run them manually by selecting <strong>Validate data</strong>. They inspect the table data and may take longer on large tables:</p><p>· No blank values in a category’s columns</p><p>· Higher level and lower level categories maintain a one to many relationship, such as Year to Month</p><p>· Columns at the same level maintain a one to one relationship</p><p>· Primary and associated columns within the same category maintain a one to one relationship</p><p>Power BI will happily save a calendar that failed offline validation. I would not take it up on that offer. Nine times out of ten the warning is pointing at a real problem in the date table, and it is far cheaper to fix now than after the model ships.</p><p><strong>Step 6: Repeat the process for additional calendars</strong></p><p>One table can hold as many calendars as you need. Run through Steps 4 and 5 again to sit a Gregorian Calendar next to a Fiscal or Retail Calendar, giving each its own name and column mappings.</p><p><strong>Step 7: Use the calendar in DAX</strong></p><p>Once defined, reference the calendar by name in time intelligence functions instead of a raw date column:</p><p>— Year-to-date sales on the Fiscal calendar</p><p>Sales FYTD = TOTALYTD ( [Sales], ‘Fiscal Calendar’ )</p><p>— Week-to-date quantity on a retail calendar (new capability)</p><p>Qty WTD = TOTALWTD ( [Total Quantity], ‘Retail Calendar’ )</p><p>— Prior year using DATEADD</p><p>Sales PY = CALCULATE ( [Sales], DATEADD ( ‘Gregorian’, -1, YEAR ) )</p><p>If the calendar name does not exist, or it lacks the categories a function needs, Power BI raises an error. TOTALWTD, for instance, wants enough week related categories to pin down the reporting period. I count that as a feature: far better a loud error than a measure quietly handing back the wrong number.</p><h3><strong>A Note on How Time Shifts Behave</strong></h3><p>Calendar based functions split into two camps, and the difference matters once a calculation touches several categories:</p><p>· <strong>Fixed functions:</strong> DATEADD and SAMEPERIODLASTYEAR shift only the category specified in the function and leave the context of other columns unchanged.</p><p>· <strong>Flexible functions:</strong> Functions such as TOTALYTD, TOTALQTD, and PARALLELPERIOD perform a hierarchical shift. They clear the filter context on the shifted category and on related categories defined by the calendar structure.</p><p>Where this bites in practice is with columns like an IsWorkingDay flag. If that column is marked as time related but never assigned to a category, flexible functions wipe its filter context while DATEADD and SAMEPERIODLASTYEAR leave it alone. If your calendar carries flags like that, test both behaviors rather than assuming the filter survives.</p><h3><strong>Setup Checklist and Prerequisites</strong></h3><p>· Power BI Desktop from <strong>September 2025 or later</strong></p><p>· The <strong>Enhanced DAX Time Intelligence</strong> preview feature enabled, followed by a restart of Power BI Desktop</p><p>· A dedicated table to host the calendars, usually the Date table</p><p>· Fewer than 200 columns in the host table. If the table has more than 20,000 rows, offline validations will not run automatically, although you can still add and save a calendar</p><p>· A clear mapping between source columns and time categories for each calendar, including Year, Quarter, Month, Week, Date, and any partial categories</p><p>A unique name for every calendar in the semantic model</p><h3><strong>Limitations Worth Knowing Before You Adopt This</strong></h3><p>There is a lot to like here, but preview is preview. Plan around these before you roll it out widely:</p><p>· <strong>RLS can produce unexpected results.</strong> Time intelligence calculations may behave unexpectedly when a fact table both defines a calendar and is subject to row level security. Test this carefully if your model uses RLS.</p><p>· <strong>Performance is not final.</strong> Since the feature is still in preview, current performance may not reflect the generally available release.</p><p>· <strong>Authoring is currently limited to Desktop.</strong> Calendars cannot yet be created directly in the Power BI Service. You must define them in Power BI Desktop, through TMDL, or with an external tool.</p><p>· <strong>Avoid auto date and time.</strong> Do not use the auto date and time feature alongside custom calendars in the same model.</p><p>· <strong>Live connections and composite models are not supported.</strong> Calendars cannot currently be used with these model types.</p><p>· <strong>Calendar based time intelligence functions cannot be nested.</strong> For example, PREVIOUSDAY ( PREVIOUSMONTH ( ‘Calendar’ ) ) is not supported. Restructure the calculation with CALCULATETABLE instead: CALCULATETABLE ( PREVIOUSDAY ( ‘Calendar’ ), PREVIOUSMONTH ( ‘Calendar’ ) ).</p><p>· <strong>Each column can have only one category in a calendar.</strong> If you reuse a column across several calendars on the same table, its category must remain consistent.</p><h3><strong>Can Users See Different Calendars Based on RLS?</strong></h3><p>As soon as a model holds several calendars, someone will ask whether RLS can show Finance the fiscal calendar and everyone else the calendar year version.</p><p><strong>Short answer: no. RLS filters data rows; calendars are model metadata. The two live on different layers, and one cannot reach the other</strong>.</p><p><strong>Why RLS can’t switch calendars</strong></p><p>· RLS filters <strong>rows</strong> in a table through a DAX expression linked to the user’s identity, usually USERNAME() or USERPRINCIPALNAME().</p><p>· A calendar is <strong>model metadata</strong>. It defines which columns represent Year, Month, and other time categories. This structure applies to every user who queries the table.</p><p>· Even when the same Date table contains both Gregorian and Fiscal Calendars, RLS cannot make one user see one calendar and another user see the other. A measure that references the Fiscal Calendar always uses fiscal year logic, while a measure that references the Gregorian Calendar always uses calendar year logic.</p><p>· The earlier caution still applies. Time intelligence calculations can behave unexpectedly when a fact table both defines a calendar and is subject to RLS. Treat this as a risk to test, not as a method for choosing a calendar by role.</p><h3><strong>How to provide a different calendar for each user or audience</strong></h3><p>Since RLS cannot flip the calendar itself, the practical move is to control what each user can see or select. There are three sensible routes:</p><p><strong>1. Object level security (OLS).</strong> Create separate measures for each calendar, such as Sales YTD (Gregorian) and Sales YTD (Fiscal), and use OLS to hide measures that a role should not see. Finance can see only the fiscal measures, while Operations can see only the calendar year measures. This is the clearest and most secure option because it controls access to measures and other model objects.</p><p><strong>2. Separate report pages or visuals for each audience.</strong> Build each page or visual with the measures for the appropriate calendar, then use navigation or bookmarks to guide users. This separates the experience but does not provide security by itself.</p><p><strong>3. A user aware router measure.</strong> Use this approach when one measure needs to return a different result based on the user’s identity:</p><p>Sales YTD (Dynamic) =</p><p>VAR CurrentUser = USERPRINCIPALNAME()</p><p>VAR IsFinance = LOOKUPVALUE ( SecurityTable[IsFinance], SecurityTable[User], CurrentUser )</p><p>RETURN</p><p>IF (</p><p>IsFinance,</p><p>TOTALYTD ( [Sales], ‘Fiscal Calendar’ ),</p><p>TOTALYTD ( [Sales], ‘Gregorian’ )</p><p>)</p><p>This works, but notice that the calendar names inside TOTALYTD are still hard references. You cannot pass a text variable in place of a calendar, because DAX resolves it much like a table reference rather than a runtime parameter. The measure is picking between calculations you already wrote; it is not changing the calendar on the fly.</p><p>So if Finance needs fiscal figures while everyone else needs calendar year figures, reach for OLS or a router measure. RLS was never built to decide which calendar definition a calculation should use.</p><h3><strong>Closing Thoughts</strong></h3><p>Calendar based time intelligence tackles a problem modelers have been patching around for years. Define your custom calendars, keep several of them on one Date table, and let DAX read each structure directly, weekly calculations included. If your model juggles fiscal and calendar reporting, retail 4-4-5 periods, ISO weeks, or trading day data, this can strip out a lot of brittle DAX.</p><p>It is still preview code, so test RLS behavior, performance, and the Desktop only authoring story properly before you tear out something that already works in production. For a new model that needs more than one definition of time, though, it is worth a look today. It also says a good deal about where Power BI time intelligence is heading.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><p><strong>💡 </strong><a href="https://powerbi-masterclass.short.gy/pbi-gpt?utm_source=medium&amp;utm_campaign=pbi-gpt-medium-post-end"><strong>MUST TRY — Power BI GPT — Personal Power BI Learning Coach</strong></a><strong>💡</strong></p><p><strong>Power BI Masterclass Article Classification</strong></p><p><strong>Level:</strong> Intermediate</p><p><strong>Category:</strong> DAX, Data Model</p><p><strong>Tags:</strong> Tutorial, DAX, Data Model</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a4c325e283c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/power-bis-new-calendars-feature-defining-multiple-calendars-for-smarter-time-intelligence-7a4c325e283c">Power BI’s New Calendars Feature: Defining Multiple Calendars for Smarter Time Intelligence</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power BI Aggregation Table: A Deep Dive into Speeding Up DirectQuery at Scale]]></title>
            <link>https://medium.com/microsoft-power-bi/power-bi-aggregation-table-a-deep-dive-into-speeding-up-directquery-at-scale-92abbcb0e4f9?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/92abbcb0e4f9</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[reduce-model-size]]></category>
            <category><![CDATA[performance-optimization]]></category>
            <category><![CDATA[sumarize-table]]></category>
            <category><![CDATA[aggrgated-table]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 17:47:21 GMT</pubDate>
            <atom:updated>2026-11-08T13:36:10.242Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Power BI Aggregations pre‑summarize large DirectQuery tables so most queries are answered from fast in‑memory data instead of the source, dramatically improving performance.</em></p><h3><strong>Introduction</strong></h3><p>Semantic models keep getting bigger, and the hardware underneath them isn’t keeping pace. Fact tables with hundreds of millions or even billions of rows are routine now in retail, telecom, and financial services, and Import mode simply can’t hold that much data in memory at a sensible cost. DirectQuery fixes the scale problem: the data stays where it lives, and nothing gets duplicated into the model. But it hands you a new problem in return. Every visual interaction fires a live query back to the source, so whatever latency the source has becomes the latency your users feel. A slicer click that would be instant against an in-memory cache can sit there for several seconds while a busy warehouse catches up.</p><p>Aggregations are how Power BI splits the difference. They let a model keep DirectQuery’s scale and flexibility while behaving like Import for the queries that matter most: the summarized, high-frequency ones that make up the vast majority of real report usage. The idea itself is straightforward. You store a pre-summarized copy of the fact table in memory, and Power BI quietly sends eligible queries there instead of to the source.</p><p>This article walks through aggregations in Power BI end to end: the architecture behind them, the benefits and the trade-offs, when the pattern is actually worth adopting, what you need in place on the server and modeling side, a worked configuration example, what they mean for row-level security (RLS), how automatic aggregations differ, and the pitfalls that tend to show up in production.</p><h3><strong>How Aggregations Work: The Architecture</strong></h3><p>An aggregation setup comes down to two tables built from the same business process at two different grains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*b0CCm0Ms6mqWFcvgeMH5bA.png" /><figcaption><em>How Power BI decides whether a query can be answered from the in-memory aggregation table.</em></figcaption></figure><ul><li>The detail table (say, Sales_Detail) holds the full-grain fact data, one row per transaction. It usually stays in DirectQuery because it is far too large to import.</li><li>The aggregation table (Sales_Agg) holds that same data pre-summarized to a coarser grain, perhaps by day, product category, and region. It sits in Import mode, so it lives entirely in memory.</li><li>The query engine handles the redirection for you. For every DAX query a visual generates, it checks whether the aggregation table’s columns and summarization types can answer the request. If they can, the answer comes out of memory in milliseconds. If they can’t, say the visual needs a transaction-level attribute that only exists in the detail table, the query simply falls through to DirectQuery as usual.</li></ul><p>None of this is visible to the report author or the end user. Nobody queries the aggregation table directly. It is hidden from the field list, and from the outside the model looks and behaves like one unified table.</p><h3><strong>1. Benefits of Using Aggregations</strong></h3><p><strong>Faster reports without importing everything.</strong> The aggregation table lives in memory, so any query it can answer comes back almost instantly. No round trip to the source, no network latency, no waiting on a source-side query to finish.</p><p><strong>Less load on the source system.</strong> Most BI queries users generate are aggregate in nature: totals by month, region, or category rather than row-by-row detail. Sending that traffic to an in-memory cache instead of the backend database cuts the query volume hitting the source, which matters a lot when that source is shared with other workloads or billed by compute.</p><p><strong>Scale beyond what Import can handle.</strong> The detail fact table stays in DirectQuery, so there is no practical row-count ceiling forcing a redesign as the data grows. You keep that scale and still get Import-like speed for the queries that make up most real usage.</p><p><strong>Composite models give you both.</strong> One semantic model can mix Import for the aggregation table and DirectQuery for the detail table, so report authors get flexibility without an all-or-nothing storage mode decision across the whole model.</p><p><strong>Invisible to report users.</strong> Redirection happens automatically. People filter, slice, and drill as normal, and they never need to know an aggregation table is involved.</p><p><strong>Graceful fallback.</strong> If a visual needs a column the aggregation doesn’t cover, Power BI goes to the DirectQuery detail table instead. You get speed where it is possible and full accuracy always, so there is no risk of an incomplete or wrong answer just because the summary didn’t cover something.</p><h3><strong>2. Cons and Trade-offs</strong></h3><p>Aggregations aren’t free performance. You trade query speed for extra modeling, refresh, and maintenance work, so it is worth weighing that before you commit to the pattern:</p><ul><li><strong>The aggregation table has to be processed.</strong> It is an Import table, so it needs its own refresh cycle to load and stay in step with the DirectQuery detail table. That means more refresh time and compute on top of whatever the rest of the model already runs, and if it sits on a separate schedule from the detail source, the two can drift apart between refreshes.</li><li><strong>Data can be slightly stale.</strong> The aggregation table is a snapshot taken at refresh time, so there is always a window where it lags the live detail table. A pure DirectQuery model never has that gap, because every query hits current data by definition.</li><li><strong>More modeling complexity.</strong> Column mappings, summarization types, and relationships at the aggregation’s grain all have to be built and kept correct. Get one of them wrong, whether it is the grain, a missing GroupBy column, or a broken relationship, and query redirection quietly stops working. Power BI just falls back to the slower detail table without surfacing an error to the modeler.</li><li><strong>Grain changes mean rework.</strong> If report requirements shift and users start asking for a different level of summarization, the aggregation table has to be redesigned and remapped. It doesn’t adjust itself, unlike automatic aggregations.</li><li><strong>More moving parts to watch.</strong> Two tables now answer related questions, which means more places for refresh failures, relationship errors, and unexpected fallbacks to hide when performance regresses.</li><li><strong>Cost grows with the number of aggregation tables.</strong> Building several at different grains covers more query patterns, but each one adds its own processing time and memory footprint.</li><li><strong>Automatic aggregations shift some of this burden without removing it.</strong> Training and cache refreshes still consume processing time and Premium or Fabric capacity, and they only work with a limited set of data sources, covered further below.</li></ul><p>So aggregations are a genuine win for the queries that hit them, but you pay for that win with an extra table to process, refresh, and maintain correctly.</p><h3><strong>3. When to Use Aggregations</strong></h3><p>Aggregations are not something you switch on everywhere. They are a targeted fix for a specific pattern. Reach for them when:</p><ul><li><strong>The detail fact table is too big for Import.</strong> Hundreds of millions of rows or more, where importing the full grain isn’t feasible or the refresh window is unacceptably long.</li><li><strong>Most report usage sits at a summarized grain.</strong> Executive dashboards, trend charts, and KPI cards usually aggregate by month, region, or product category rather than by individual transaction.</li><li><strong>Users still need occasional drill-through to full detail.</strong> Aggregations don’t take detail access away. They make the common summarized path fast while leaving row-level data available when someone needs it.</li><li><strong>You are already on DirectQuery or Direct Lake and feeling the latency.</strong> If slow query response against the source is the main complaint you hear, aggregations go straight at that problem.</li><li><strong>You want to take load off a shared or metered source.</strong> Cutting query volume is worth real money when the system also serves other workloads or is billed by compute.</li></ul><p>They are usually not worth the effort when the fact table is already small enough to import wholesale. At that point plain Import mode gives you the best performance anyway, with none of the extra modeling complexity. A decent rule of thumb: if you are not already fighting DirectQuery latency, you probably don’t need aggregations yet.</p><h3><strong>4. Server-Side Requirements</strong></h3><p>Aggregations depend on particular storage mode combinations and a bit of modeling setup on the model side.</p><p><strong>Storage mode combinations</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*PhBWJfAWDs772umCNaaVhg.png" /></figure><p><strong>Composite model requirement</strong></p><p>Mixing Import and DirectQuery tables in one model requires the model to be in Composite (mixed) storage mode. That is the modern default for models combining storage modes, but it is worth confirming if you are extending an older model.</p><p><strong>Column mapping and summarization</strong></p><p>In the model view in Power BI Desktop, you map the aggregation table’s columns to the matching columns on the detail table through the Manage aggregations dialog. Each column gets a summarization type:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*7QSKuxaGGHrfV2AmfrIHQw.png" /></figure><p>Here is what a mapping looks like for a Sales_Agg table built at Date, Region, and Category grain from a Sales_Detail DirectQuery table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*yOpcZLaHdLCWhAJj4J6Cug.png" /></figure><p><strong>Grain and relationships</strong></p><ul><li>Every GroupBy column defines part of the aggregation’s grain and has to map to a matching column on the detail table.</li><li>Relationships from the aggregation table to your dimension tables should mirror the detail table’s relationships, adjusted for the coarser grain. A month-level aggregation, for instance, relates to the Date table on a Month key rather than a full date key, because individual dates no longer exist as distinct rows in the summary.</li></ul><p><strong>Visibility</strong></p><p>Hide the aggregation table from Report view. Users and read-only consumers can’t query it directly anyway. They query the model through the detail table’s field names, and Power BI redirects eligible queries behind the scenes. If the table isn’t already hidden, the Manage aggregations dialog hides it for you when you select Apply all.</p><p><strong>Query redirection scope</strong></p><p>A visual gets redirected only when every field it needs can be served by the aggregation table’s GroupBy or aggregated columns. One field outside that scope, such as a transaction ID, a free-text note, or a customer email, sends the whole query to the detail table. It is all or nothing per query. Partial redirection isn’t possible.</p><p><strong>Validation rules enforced by Power BI Desktop</strong></p><p>A few structural rules get enforced for you in the Manage aggregations dialog:</p><ul><li>Except for Count and Count Table Rows, the detail column has to share the same data type as the aggregation column.</li><li>Chained aggregations across three or more tables are not allowed. An aggregation in Table A can’t reference an aggregation in Table B that itself references Table C.</li><li>Duplicate entries are not allowed when two of them share the same summarization function and point at the same detail table and column.</li></ul><h3><strong>5. Prerequisites for Setting Up Aggregations</strong></h3><p>Before you start building, make sure these are in place:</p><ul><li><strong>A large DirectQuery or Direct Lake fact table that is genuinely causing measurable performance problems.</strong> Aggregations should solve a real bottleneck, not a hypothetical one. Building them speculatively just adds maintenance cost with nothing to show for it.</li><li><strong>A clear picture of how your reports actually query.</strong> Know which grains come up most often, whether that is day or month, product or category, region or country, because that is what the aggregation table should be built around. Query Diagnostics and Performance Analyzer in Power BI Desktop are the practical way to see which visuals are slow and what grain they query at.</li><li><strong>A composite (mixed-mode) semantic model</strong>, since Import and DirectQuery tables have to coexist.</li><li><strong>Power BI Desktop access with modeling permissions</strong>, so you can build the aggregation table in Power Query and configure the mappings in Manage aggregations.</li><li><strong>A defined dimension model for the aggregation table to relate to at the right grain.</strong> Aggregations depend on relationships lining up correctly with dimension tables, not just with the fact table.</li><li><strong>A refresh strategy for the aggregation table</strong>, because it is Import mode and has to stay in sync with the underlying detail data. Decide up front how often it refreshes and how you will communicate staleness to users if the two tables can drift between refreshes.</li></ul><h3><strong>6. Implications for Row-Level Security (RLS)</strong></h3><p>There is one security consideration here that is easy to miss: RLS has to be applied consistently to both the aggregation table and the detail table it summarizes. Otherwise it quietly fails to protect the aggregation table.</p><p>An aggregation table is simply another representation of the same underlying data, so filtering only the detail table is not enough. If a query gets redirected to the aggregation table and that table isn’t reached by the same RLS filter, the query returns unfiltered data. That is a real security gap, not a performance quirk.</p><p><strong>The reliable pattern: filter through a shared dimension</strong></p><p>The supported approach is to define the RLS rule on a dimension table that sits on the filtering side of relationships to both the detail fact table and the aggregation table. For example:</p><p>DAX Filter on Geography table:</p><p>[Region] = “West”</p><p>If Geography relates to both Sales_Detail and Sales_Agg at the appropriate grain, the [Region] = “West” filter propagates through both relationships on its own. A query answered from the aggregation table and one answered from the detail table both come back correctly secured, so the user sees consistent results no matter which table Power BI picked.</p><p>Compare that with an RLS rule applied straight to a column on Sales_Detail with no equivalent relationship reaching Sales_Agg. In that case the rule secures the detail table and leaves the aggregation table effectively unfiltered.</p><p><strong>Key points to design around</strong></p><ul><li><strong>RLS has to filter both tables, either directly or through a shared dimension.</strong> This is the core requirement, and it is non-negotiable when RLS and aggregations live in the same model.</li><li><strong>A rule that only reaches the detail table is a security gap.</strong> Design and test with that specifically in mind. Don’t assume a rule that works against the detail table automatically covers the aggregation table.</li><li><strong>Hidden aggregation tables help, but they are not protection on their own.</strong> Users and report queries reference the detail table’s field names rather than the aggregation table, so nobody needs to know it exists. That hidden, read-only nature is part of why the feature doesn’t expose an obvious second door into the data, but it is no substitute for correctly designed RLS filtering.</li><li><strong>Test RLS against visuals you know are aggregation-eligible.</strong> Redirection is automatic and invisible, so verify the security behavior both for queries that get redirected and for ones that fall through to detail. Testing only against detail-table queries leaves you short of real coverage.</li><li><strong>Automatic aggregations carry the same requirement with less visibility into it.</strong> Because the system manages them, you never hand-build the relationships you would otherwise inspect to check RLS propagation. The model’s relationship and RLS design still has to satisfy the same rule of filtering both tables. You just can’t see it as directly.</li></ul><p><strong>Practical checklist</strong></p><ol><li>Identify every dimension table that carries an RLS rule.</li><li>Confirm that dimension has an active relationship to both the detail table and the aggregation table, at the correct grain on each side.</li><li>Use View As in Power BI Desktop or the Service to test each role against a visual you know will be redirected to the aggregation table, then confirm the results match what the same role sees against the detail table.</li><li>Repeat this after any change to the aggregation table’s grain or relationships. A grain change can break RLS propagation quietly, even when the aggregation still works functionally.</li></ol><p>The practical takeaway: whenever RLS and aggregations coexist in a model, treat RLS validation on the aggregation table as a mandatory test step rather than an afterthought to detail-table testing.</p><h3><strong>7. Automatic Aggregations</strong></h3><p>Building and maintaining aggregation tables by hand takes real modeling skill: picking the right grain, mapping columns, keeping relationships aligned, and revisiting the design as query patterns move. Automatic aggregations take most of that manual work off your plate by using machine learning to build and maintain the aggregations for you.</p><p><strong>How it works</strong></p><p>Power BI logs model and report queries, keeping a rolling seven-day window of activity per model. On the first scheduled refresh at whatever frequency you pick, daily or weekly, it runs a training operation: it reads the query log and then creates, updates, or removes in-memory aggregation tables based on what people actually query. The computed data is loaded into the in-memory cache during the refresh that follows training. From there the system keeps adapting. Aggregations nobody queries anymore get retired, and new patterns get summaries of their own.</p><p><strong>Requirements for automatic aggregations</strong></p><ul><li><strong>Licensing and capacity:</strong> Power BI Premium (per capacity), Premium Per User, Power BI Embedded, or Fabric capacity.</li><li><strong>Storage mode:</strong> the model has to be DirectQuery, or a composite model where the tables being aggregated use a DirectQuery connection. Import-only tables are not eligible.</li><li><strong>Supported data sources only:</strong> Azure SQL Database, Azure Synapse Dedicated SQL Pool, SQL Server 2019 and later, Google BigQuery, Snowflake, Databricks, and Amazon Redshift. Anything outside that list is not eligible, and user-defined aggregations are your fallback.</li><li><strong>No single sign-on (SSO) on the source:</strong> tables using an SSO-enabled data source are skipped automatically.</li><li><strong>Training enabled and a scheduled refresh:</strong> turn on automatic aggregations training in the semantic model’s settings in the Power BI service, and schedule at least one refresh, since training runs as part of it.</li></ul><p><strong>Tuning and monitoring</strong></p><p>Once it is running, the model settings page gives you a simple control to estimate the performance gain for a given percentage of queries served from the in-memory cache, so you can tune the balance between cache size and coverage. Since the whole point is cutting backend query volume, it is worth checking now and then how much traffic really comes from cache versus the source, especially after a big shift in usage such as a new dashboard rolling out to a large audience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*bn1wL9lVT8lkoLh9BNsxGQ.png" /><figcaption><strong>Automatic vs. user-defined: quick comparison</strong></figcaption></figure><p><strong>Should you use automatic aggregations?</strong></p><p>If your model qualifies, meaning the right capacity, storage mode, and data source with no SSO, automatic aggregations are usually the easier place to start. They need no query-optimization expertise and they adapt as usage changes. Go with user-defined aggregations when your source isn’t on the supported list, when you are not on Premium or Fabric capacity, or when you want precise hand-tuned control over exactly what gets aggregated and at what grain, including tighter control for RLS verification.</p><h3><strong>8. Common Pitfalls in Production</strong></h3><p>A handful of problems come up again and again once aggregations move out of a proof of concept and into a production model:</p><ul><li><strong>Silent fallback with nothing alerting you.</strong> A broken mapping or relationship throws no error. Queries just quietly go back to the slower detail table. Without deliberate monitoring through Performance Analyzer traces, DAX Studio query plans, or Log Analytics on Premium and Fabric capacities, a regression can sit there until users complain.</li><li><strong>Grain mismatches after schema changes.</strong> Adding a new dimension attribute to reports, or changing how a source column is categorized, can quietly push a visual outside the aggregation’s coverage without anyone noticing. The report still works, just slower.</li><li><strong>RLS gaps introduced by later relationship changes.</strong> A relationship edited months after the original RLS design, perhaps a cross-filter direction change or a new dimension table, can break the propagation path that used to secure the aggregation table. There is usually no symptom until a security review catches it.</li><li><strong>Refresh schedule drift.</strong> If the aggregation table refreshes on a different cadence than the detail source, or its refreshes fail silently, users end up seeing numbers that don’t reconcile between an aggregation-answered visual and a detail-answered one on the same page.</li><li><strong>Over-building.</strong> Creating aggregation tables for every conceivable grain just in case adds processing and maintenance cost for summaries that may never get queried. Build from observed query patterns instead of guesses. This is exactly the problem automatic aggregations were designed to solve.</li></ul><h3><strong>Closing Thoughts</strong></h3><p>Aggregations exist to resolve one specific tension: you want DirectQuery’s scale without giving up Import’s speed. Done well, a modest set of pre-summarized rows can absorb the large majority of report traffic while the full-grain DirectQuery table stays available for the queries that genuinely need it. The trade-off is real, since you now have an extra table to process, refresh, and secure correctly. For models where DirectQuery latency is a genuine pain point, though, that trade is usually worth making.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92abbcb0e4f9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/power-bi-aggregation-table-a-deep-dive-into-speeding-up-directquery-at-scale-92abbcb0e4f9">Power BI Aggregation Table: A Deep Dive into Speeding Up DirectQuery at Scale</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fabric Data Agent vs. Copilot Studio vs. Microsoft Foundry: A Practical guide]]></title>
            <link>https://www.towardsdeeplearning.com/fabric-data-agent-vs-copilot-studio-vs-microsoft-foundry-a-practical-guide-d4c7d1541aac?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4c7d1541aac</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[copilot-studio]]></category>
            <category><![CDATA[fabric-data-agent]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[microsoft-foundry]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 11:33:51 GMT</pubDate>
            <atom:updated>2026-11-08T13:36:41.395Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Fabric Data Agent vs. Copilot Studio vs. Microsoft Foundry: A Practical Guide for Data &amp; Analytics Engineers</strong></h3><p>If you work in the Microsoft data ecosystem, you’ve probably run into all three of these names in the same breath: <strong>Fabric Data Agent</strong>, <strong>Copilot Studio</strong>, and <strong>Azure AI Foundry</strong> (recently renamed <strong>Microsoft Foundry</strong>). They all involve “AI agents,” they all show up in the same architecture diagrams, and Microsoft’s own marketing sometimes blurs the line between them.</p><p>But they solve three genuinely different problems. This post breaks down what each one actually does, how they differ architecturally, and how you’d combine them in a real enterprise data platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*POB0IGJhSfejmUY4ltCOFQ.png" /></figure><h3><strong>1. Fabric Data Agent: Conversational Analytics Over Your Governed Data</strong></h3><p><strong>What it is</strong></p><p>A Fabric data agent is a generally available Microsoft Fabric feature that turns your OneLake data objects like lakehouses, warehouses, KQL databases, Power BI semantic models, ontologies, and graph models into a conversational Q&amp;A system. You configure it once, publish it, and from then on anyone in your organization can ask plain-English questions about that data and get accurate, context-rich answers without knowing SQL, DAX, or KQL.</p><p>Within a broader agentic architecture, the Fabric data agent’s job is narrow and specific: it’s the conversational analytics component, sitting directly on top of governed data in OneLake.</p><p><strong>How it actually works</strong></p><p>Under the hood, a Fabric data agent runs on the Azure OpenAI Assistant APIs (transitioning to the Responses API more on that below) and follows a fairly disciplined pipeline for every question:</p><ol><li><strong>Question parsing and validation</strong>: The agent checks the question against security protocols, responsible AI policies, and the requesting user’s permissions. Microsoft Purview governance controls (DLP, access restrictions) are enforced at this stage too.</li></ol><p><strong>2. Data source identification</strong>: Using the <em>requesting user’s own credentials</em>, the agent inspects schema across whichever sources are configured (Lakehouse, Warehouse, Power BI semantic model, KQL database, ontology, Microsoft Graph) to figure out which one actually answers the question. For Power BI semantic models specifically, only <strong>Read</strong> permission is needed, Build permission isn’t required, and the user doesn’t even need workspace access.</p><p><strong>3. Tool invocation and query generation</strong>: Based on the identified source, it routes to the matching translation engine:</p><ul><li><strong>NL2SQL</strong> for Lakehouse/Warehouse</li><li><strong>NL2DAX</strong> for Power BI semantic models (via the model’s XMLA endpoint)</li><li><strong>NL2KQL</strong> for KQL databases, including Eventhouse real-time data, with support for KQL user-defined functions</li><li><strong>Microsoft Graph queries</strong> for organizational data</li></ul><p><strong>4. Query validation</strong>: The generated query is checked for correctness and policy compliance before it ever runs.</p><p><strong>5. Query execution and response</strong>: The validated query executes read-only against the source, and results come back formatted as tables, summaries, or key insights.</p><p>That read-only enforcement is worth calling out explicitly: a Fabric data agent only ever reads. It cannot write back to your Lakehouse or Warehouse, no matter how the question is phrased.</p><p><strong>How it’s exposed to the outside world</strong></p><p>Once published, a Fabric data agent exposes a <strong>Model Context Protocol (MCP) endpoint</strong>, meaning any MCP-aware tool, application, or agentic runtime can query it directly. It can also be:</p><ul><li>Added to Microsoft 365 Copilot for natural-language insights inside Word, Excel, Teams, etc. (Purview governance still applies here).</li><li>Called as a <strong>knowledge source tool</strong> in Microsoft Foundry Agent Service.</li><li>Called as a plugin from Copilot Studio.</li></ul><p>Service principal authentication landed as a preview feature in mid-2026, which matters a lot for production scenarios, before this, only interactive user sign-in (delegated tokens) was supported, which was a blocker for backend services and shared-backend multi-user apps.</p><h3><strong>2. Copilot Studio: The Low-Code Agent and Workflow Builder</strong></h3><p><strong>What it is</strong></p><p>Copilot Studio is a graphical, low-code studio for building and managing AI-powered agents and automated workflows, then publishing them to the channels where your users already work like Teams, websites, Microsoft 365 Copilot, and more. Its whole reason for existing is to make agent-building accessible to business analysts and IT professionals, not just developers, while still leaving room for pro-code extension when needed.</p><p><strong>What you actually build in it</strong></p><p>Copilot Studio organizes everything around three building blocks that can be combined into an end-to-end business process:</p><ol><li><strong>Agents</strong>: AI assistants that hold conversations and complete tasks, following your instructions, drawing on connected knowledge sources, and invoking tools to take action. You can describe an agent in plain language and Copilot Studio scaffolds it. Some agents can even be given their own account so they can act proactively rather than only in response to a chat message.</li><li><strong>Workflows</strong>: drag-and-drop automations where each step can reason and act, blending deterministic automation with AI flexibility. These include built-in testing and human-in-the-loop checkpoints.</li><li><strong>Agent flows</strong>: the native flow format in Copilot Studio (similar in feel to Power Automate), runnable standalone or attached to an agent as a callable tool.</li></ol><p><strong>The harness concept</strong></p><p>A detail that’s easy to miss but matters a lock: whatever you build runs on a <strong>harness</strong>, the underlying engine that determines how it reasons and how it’s billed. Copilot Studio currently offers three:</p><ul><li><strong>GitHub Copilot harness</strong>, for reasoning-heavy, multi-step, complex business processes. Billed via Copilot Credits (usage-based).</li><li><strong>Standard harness</strong>, for rule-based agents built around structured “topics” (a defined conversational path with steps, questions, and conditions). If a request falls outside the designed topics, the agent can still fall back to a conversational answer from connected knowledge. Licensed/billed separately from the GitHub Copilot harness.</li><li><strong>Copilot chat harness</strong>, specifically for extending Microsoft 365 Copilot Chat with your organization’s own knowledge, so employees get grounded answers without leaving their normal M365 experience.</li></ul><p>Choosing the right harness is effectively choosing how much “reasoning autonomy” versus “designed conversation flow” you want and it directly affects your licensing model.</p><p><strong>Connectivity</strong></p><p>Copilot Studio’s strength is breadth of connectivity into the Microsoft ecosystem and beyond: Teams, Power Platform, Microsoft Graph, and a large catalog of prebuilt and custom connectors reaching third-party systems. This is also where agents can be given triggers and actions, responding autonomously to events like a new record appearing or a customer inquiry coming in, without a human initiating the conversation.</p><p><strong>Where it tends to hit a ceiling</strong></p><p>Copilot Studio’s low-code knowledge layer is abstracted, you don’t get direct control over chunking or retrieval tuning. In practice, it performs best with knowledge bases in roughly the 500-document range; beyond that, teams typically start looking at Microsoft Foundry for finer control.</p><h3><strong>3. Microsoft Foundry (formerly Azure AI Foundry): The Pro-Code Agent Platform</strong></h3><p><strong>What it is</strong></p><p>Microsoft Foundry is the developer-first, enterprise-grade platform for building, deploying, and scaling custom AI agents and applications. Where Copilot Studio optimizes for speed and accessibility, Foundry optimizes for control, scale, and integration depth. The core building capability here is Foundry Agent Service.</p><p><strong>What an “agent” means in Foundry</strong></p><p>Foundry defines an agent as an AI application that uses a model from the Foundry model catalog to reason about a request and take autonomous, multi-step action, calling tools, pulling external data, and making decisions, sometimes with no chat interface at all (triggered purely by system events). Every agent is built from three components:</p><ol><li><strong>Mode:</strong> from the Foundry catalog (GPT-4o, Llama, DeepSeek, Mistral, and others), swappable without rewriting agent logic.</li><li><strong>Instructions</strong>: prompt-based, or actual code for a Hosted agent.</li><li><strong>Tools</strong>: the mechanism for reaching data or taking action.</li></ol><p><strong>Two agent types</strong></p><p>Foundry deliberately gives you a spectrum of control:</p><ul><li><strong>Prompt agents</strong>: defined purely through configuration (instructions, model choice, tools), authored in the Foundry portal or via SDK/REST. Foundry runs them entirely, no application code, no compute management. Best for getting started fast or for production agents that don’t need custom orchestration logic.</li><li><strong>Hosted agents</strong>: your own agent code, built with Microsoft Agent Framework, LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK, the GitHub Copilot SDK, or anything else that is shipped as a container or a zip, run by Foundry with a managed endpoint, autoscaling, a dedicated Microsoft Entra identity, and full observability.</li></ul><h3><strong>Side-by-Side Comparison of these</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*Vf3DeafgmYoVrKp6BwgOMQ.png" /></figure><h3><strong>How They Work Together</strong></h3><p>None of these three is really a competitor to the others, they sit at different layers of the same stack, and Microsoft’s own documentation is explicit that they’re meant to be composed.</p><p><strong>The pattern in practice:</strong></p><p>Fabric Data Agent (data layer)</p><p>│ MCP endpoint / Fabric tool</p><p>▼</p><p>Microsoft Foundry (orchestration + custom logic layer)</p><p>│ Agent published via Teams/M365/Entra Agent Registry,</p><p>│ or embedded as a tool/plugin</p><p>▼</p><p>Copilot Studio (business-facing conversational layer)</p><p>│</p><p>▼</p><p>End users in Teams / M365 Copilot / web chat</p><ol><li><strong>Fabric Data Agent is the grounding source, not the front door.</strong> You configure it once against your governed Lakehouse, Warehouse, KQL, and semantic model data, and it becomes queryable by everything above it via its MCP endpoint, from Copilot Studio (as a plugin), from Foundry (as a built-in knowledge tool using identity passthrough), or from a custom app calling the endpoint directly.</li><li><strong>Foundry does the heavy reasoning; Copilot Studio does the friendly front end.</strong> A common enterprise pattern is: developers build the specialized, data-grounded, multi-step agents in Foundry (where you get model choice, custom tools, content safety, and observability), while business makers assemble the actual conversational experience end users interact with in Copilot Studio. The two can even hand off to each other via agent-to-agent patterns.</li><li><strong>They converge on the same distribution surface.</strong> Whether an agent was built in Copilot Studio or Foundry, both can ultimately publish to Microsoft Teams and Microsoft 365 Copilot, so end users never need to know or care which platform is doing the work behind the scenes.</li></ol><h3><strong>Bottom Line</strong></h3><ul><li><strong>Fabric Data Agent</strong> = the governed, read-only conversational layer over your Fabric data. Configure it like a Power BI report, publish it, and it becomes a reusable analytics building block for everything else.</li><li><strong>Copilot Studio</strong> = the fast, low-code way to put an agent or automated workflow in front of business users, wherever they already work.</li><li><strong>Microsoft Foundry</strong> = the pro-code platform for building custom, production-scale, enterprise-secured agents and the natural place to combine Fabric data grounding with more sophisticated reasoning and orchestration.</li></ul><p>Used together, they form a clean separation of concerns: Fabric owns the data and governance, Foundry owns the custom reasoning and enterprise security, and Copilot Studio owns the last-mile user experience.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4c7d1541aac" width="1" height="1" alt=""><hr><p><a href="https://www.towardsdeeplearning.com/fabric-data-agent-vs-copilot-studio-vs-microsoft-foundry-a-practical-guide-d4c7d1541aac">Fabric Data Agent vs. Copilot Studio vs. Microsoft Foundry: A Practical guide</a> was originally published in <a href="https://www.towardsdeeplearning.com/">Towards Deep Learning</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Incremental Refresh in Power BI: A Deep Dive into the Optional Settings]]></title>
            <link>https://medium.com/microsoft-power-bi/mastering-incremental-refresh-in-power-bi-a-deep-dive-into-the-optional-settings-2e87adcb22ca?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e87adcb22ca</guid>
            <category><![CDATA[incrementalrefresh]]></category>
            <category><![CDATA[refresh-optimization]]></category>
            <category><![CDATA[data-refresh]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 10:30:32 GMT</pubDate>
            <atom:updated>2026-11-08T13:37:16.713Z</atom:updated>
            <content:encoded><![CDATA[<p>Incremental Refresh has become one of the most powerful features in Power BI for handling large datasets efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*v7hZRoPYqvwsRY9jmDGKng.png" /></figure><p>To learn more about the basics of incremental refresh visit t<a href="https://medium.com/towards-data-engineering/unlocking-faster-smarter-data-refreshes-in-power-bi-a-deep-dive-into-incremental-refresh-f9e3cbaef581">his link</a></p><p>While most users understand the basic setup, defining the historical range and refresh period, the <em>optional settings</em> are where the real magic happens. These advanced configurations help you optimize performance, reduce refresh times, and even enable real‑time analytics.</p><p>If you’re working with enterprise‑scale data or building mission‑critical dashboards, these optional settings can elevate your data model from “good” to “exceptional.”</p><p>Let’s break them down.</p><h3><strong>1. Real‑Time Insights with DirectQuery (Premium Feature)</strong></h3><p>One of the most exciting optional capabilities is the ability to combine Incremental Refresh with DirectQuery. This hybrid approach gives you the best of both worlds:</p><ul><li><strong>Historical data</strong> stored in memory for fast performance</li><li><strong>Latest data</strong> queried directly from the source in real time</li></ul><p>This means your reports can reflect the most recent transactions, even those that occurred <em>after</em> the last scheduled refresh.</p><p><strong>When this matters</strong></p><ul><li>Retail sales dashboards needing up‑to‑the‑minute POS data</li><li>Operational monitoring (fleet, logistics, IoT)</li><li>Financial systems where every second counts</li></ul><p>This feature is exclusive to Power BI Premium<strong>,</strong> but if your organization relies on real‑time decision‑making, it’s worth every bit of the investment.</p><h3><strong>2. Only Refresh Complete Days</strong></h3><p>Not all data is created equal, and not all days are complete when your refresh kicks in.</p><p>This option ensures that Power BI refreshes only fully completed days, preventing partial-day data from slipping into your reports.</p><p><strong>Why this is important</strong></p><p>Imagine a daily sales dashboard that refreshes at 3 AM. If the system includes data from midnight to 3 AM, your “daily totals” become misleading. By enabling this option, Power BI waits until the day is fully closed before refreshing it.</p><p><strong>Perfect for</strong></p><ul><li>Daily sales or production metrics</li><li>Financial closing processes</li><li>Any scenario where partial-day data creates confusion</li></ul><p>It’s a simple checkbox, but it can dramatically improve the accuracy of your reporting.</p><h3><strong>3. Detect Data Changes for Smarter Refreshing</strong></h3><p>Incremental Refresh already reduces the amount of data Power BI processes, but this option takes optimization even further.</p><p>With Detect Data Changes, Power BI refreshes only the partitions where data has actually changed. It does this by monitoring a column, typically a Last Updated or Modified Date timestamp.</p><p><strong>How it works</strong></p><ul><li>You select a date/time column that tracks updates</li><li>Power BI checks the maximum value for each partition</li><li>If nothing changed → that partition is skipped</li></ul><p><strong>Benefits</strong></p><ul><li>Faster refresh times</li><li>Reduced load on source systems</li><li>Lower resource consumption in Premium capacities</li></ul><p>This is especially valuable for large fact tables where only a small portion of rows change daily.</p><h3><strong>Putting It All Together</strong></h3><p>These optional settings aren’t just “nice to have”, they’re strategic tools for building scalable, high‑performance Power BI solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*tqoEjfH6LHd2QWps-HEWhQ.png" /></figure><h3><strong>Final Thoughts</strong></h3><p>Incremental Refresh is more than a performance feature; it’s a data strategy. By leveraging these optional settings, you can:</p><ul><li>Deliver real-time insights</li><li>Improve data accuracy</li><li>Reduce refresh times</li><li>Optimize Premium capacity usage</li><li>Build enterprise-grade models with confidence</li></ul><p>If you’re already using Incremental Refresh, exploring these options is the next step in your Power BI mastery.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e87adcb22ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/microsoft-power-bi/mastering-incremental-refresh-in-power-bi-a-deep-dive-into-the-optional-settings-2e87adcb22ca">Mastering Incremental Refresh in Power BI: A Deep Dive into the Optional Settings</a> was originally published in <a href="https://medium.com/microsoft-power-bi">Power BI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering CI/CD in Microsoft Fabric: The Complete Dev/Test/Prod Playbook for Enterprise Analytics]]></title>
            <link>https://medium.com/towards-data-engineering/mastering-ci-cd-in-microsoft-fabric-the-complete-dev-test-prod-playbook-for-enterprise-analytics-edc222922642?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/edc222922642</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[git-integration]]></category>
            <category><![CDATA[deployment-pipelines]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sun, 12 Jul 2026 17:25:28 GMT</pubDate>
            <atom:updated>2026-11-08T13:37:45.979Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Deployment Pipelines, Variable Libraries, and Git Integration Work Together to Deliver a Modern, Scalable DevOps Lifecycle</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*BlhIOXyY9kNm6FuvJTJXOg.png" /></figure><p>Microsoft Fabric is rapidly becoming the unified platform for enterprise data engineering, BI, and real-time analytics. But as teams scale past a single developer and a single workspace, the real challenge stops being “how do I build a pipeline or a lakehouse” and becomes “how do I move my work through Dev, Test, and Production without breaking connections, hardcoding values, or losing track of who changed what.”</p><p>Fabric answers this with three capabilities that are designed to be used together:</p><ul><li><strong>CI/CD Deployment Pipelines</strong>: the release mechanism that promotes items across environments</li><li><strong>Variable Library</strong>: the parameterization engine that keeps environment-specific values out of your code</li><li><strong>Git Integration (with branching)</strong>: the version-control layer that governs how changes get made in the first place</li></ul><p>This article covers each in depth, corrects a few commonly repeated but slightly outdated claims about how they behave, and then shows how the three combine into a single Dev → Test → Prod lifecycle.</p><h3><strong>1. CI/CD Deployment Pipelines: The Release Mechanism</strong></h3><p>A Deployment Pipeline promotes workspace items like notebooks, lakehouses, pipelines, semantic models, reports, and more; through a sequence of stages, typically</p><p>Dev → Test → Prod</p><p>where each stage is mapped to its own Fabric workspace. Microsoft Fabric CI/CD deployment pipelines support 2 to 10 stages, depending on your environment needs.</p><p><strong>Comparing stages</strong></p><p>Before you promote anything, the pipeline shows you what’s changed. Fabric pairs items across stages by matching item type, name, and folder path, then labels each one based on its comparison status. The exact labels depend on which deployment pipeline UI you’re using:</p><p><strong>Original UI:</strong></p><ul><li><strong>New</strong>: exists in the source stage, not in the target. Will be cloned on deployment.</li><li><strong>Different</strong>: exists in both, but one version changed since the last deployment. The source overwrites the target regardless of where the change was made.</li><li><strong>Missing from (source stage)</strong>: exists in the target but not the source. Deployment doesn’t touch these.</li></ul><p><strong>New UI (currently in preview):</strong></p><ul><li><strong>Same as source</strong>: no difference.</li><li><strong>Different from source</strong>: a schema change, a property/name change, or an unapplied deployment rule.</li><li><strong>Only in source</strong>: new item, will be cloned on deployment.</li><li><strong>Not in source</strong>: exists in the target only; can’t be deployed and isn’t affected.</li></ul><p>A useful detail either way, if you move an item into a different folder, it’s flagged as <em>Different</em> even though nothing in the item itself changed. Folder path is treated as part of the item’s identity.</p><p><strong>Autobinding: what it actually does</strong></p><p>“Autobinding” gets mentioned a lot in Fabric CI/CD discussions, and it’s worth being precise about it. It refers to how deployment pipelines maintain dependency connections between items, the canonical example is a report that depends on a semantic model.</p><ul><li>If the linked item already exists in the target stage, Autobinding reconnects the deployed item to it automatically. Deploy a report from Dev to Test, and if its semantic model was already deployed to Test, the report automatically binds to the Test copy.</li><li>If the linked item doesn’t exist in the target stage, the deployment fails outright. Use the Select related button when deploying to pull in dependencies automatically and avoid this.</li><li>Autobinding also works across pipelines, if a report in one pipeline depends on a semantic model living in a different pipeline, Fabric can still bind them correctly at matching stages, provided both pipelines have the same number of stages.</li></ul><p><strong>Known limitations worth knowing before you rely on this:</strong></p><ul><li>Direct Lake semantic models do not Autobind, if a LakeHouse and its Direct Lake semantic model are deployed together, the semantic model in the target stage stays bound to the <em>source</em> stage’s LakeHouse. You need a data source rule to rebind it.</li><li>Autobinding isn’t supported for Dataflow Gen2 items at all.</li><li>If you <em>don’t</em> want Autobinding (e.g., you want reports to always point at a production semantic model regardless of stage), you can prevent it by not co-locating the items in the same stage, using a parameter rule, or connecting through a proxy semantic model.</li></ul><p><strong>Deployment rules: the legacy parameterization tool</strong></p><p>Before Variable Library existed, <strong>deployment rules</strong> were the only way to override an item-specific setting per stage, for example, telling a semantic model in Test to point at the Test database instead of Dev’s. Deployment rules still work and are still sometimes necessary (some item types don’t yet support variable libraries), but Microsoft’s current guidance is explicit: use Variable Library first, and fall back to deployment rules only where variable libraries aren’t yet supported for that item type.</p><p><strong>Automating with service principals: the ownership gotcha</strong></p><p>When you automate deployments (via the deployment pipelines REST API, Azure DevOps, or GitHub Actions) using a service principal rather than a user, there’s a real and well-documented catch: the service principal becomes the owner of any newly deployed semantic models and paginated reports. Since a service principal can’t configure OAuth credentials, this breaks scheduled refresh for those items until ownership is manually taken over by a user. This is worth planning around explicitly in any automated pipeline design, it’s not something Fabric “fixes” automatically; it’s a constraint you architect around (e.g., by having a designated user take ownership post-deployment, or avoiding SPN-driven deployment for items that need OAuth-based refresh).</p><h3><strong>2. Variable Library: Environment-Specific Configuration Without Hardcoding</strong></h3><p>Variable Library is a first-class Fabric item type that exists to hold environment-specific values <em>outside</em> any single item’s definition, solving the exact scaling problem deployment rules run into once you have shortcuts, pipelines, notebooks, and models all needing different values per environment.</p><p><strong>How it’s structured</strong></p><ul><li>You define variables inside the library (supported types: Boolean, Datetime, Guid, Integer, Number, String).</li><li>You group variable values into value sets, typically one per environment (dev, test, prod).</li><li>Every value set exists in every stage of a deployment pipeline, but only one is active per stage at a time, and you choose the active set independently for each stage.</li><li>Switching which value set is active does not count as a content change when comparing stages, it’s treated as stage configuration, not item definition.</li></ul><p><strong>Tip:</strong></p><p><em>Set a default environment separate from Dev, Test, and Prod, and keep its values blank or dummy. This ensures that if an active environment isn’t explicitly selected, the process fails safely instead of accidentally pulling from or pushing data into the wrong environment.</em></p><p><strong>How items actually consume a variable</strong></p><p>This is a detail worth getting right, since it’s often oversimplified: you don’t hand-type a variable reference as free-form syntax.</p><p>In a pipeline, you add a Library variable reference in the pipeline canvas’s bottom panel (a picker shows you all your Variable Libraries), then pull that reference into any activity’s settings through Add dynamic content → Library variables in the expression builder. If the variable is a Connection reference or Item reference type, you can drill into its properties (connection ID, item ID, workspace ID) with a . after the variable name. Once wired up, running the pipeline uses whatever value is currently active in that workspace’s Variable Library, no code edits required when you promote to another stage.</p><p>One current limitation: Number-type variables aren’t supported inside pipelines (Boolean, Datetime, Guid, Integer, and String are).</p><p><strong>How it behaves inside a deployment pipeline</strong></p><p>The Variable Library itself deploys through the pipeline like any other item. Deployment doesn’t touch each stage’s <em>active</em> value set, Dev stays on dev, Test stays on test but you can update the values stored inside the library at any time, and every item referencing that variable picks up the new value immediately, with no redeployment needed.</p><p><strong>Automating it with fabric-cicd</strong></p><p>If you’re scripting deployments rather than clicking through the UI, Microsoft’s fabric-cicd Python library (pip install fabric-cicd) handles Variable Library with a specific sequencing rule, it always deploys the Variable Library first, before anything that depends on it, and then activates the value set whose name matches the target environment you pass into the job. That means your value sets need to be literally named test or prod to line up with an automation job targeting those environments.</p><p><strong>Tip:</strong></p><p><em>Always keep the value set and the workspace name same.</em></p><h3><strong>3. Git Integration and Branching — Where the Content Comes From</strong></h3><p>Everything above assumes items already exist in a workspace, ready to promote. Git integration governs how those items get created, reviewed, and changed in the first place, the continuous integration (CI) half underneath deployment pipelines.</p><p><strong>Binding a workspace to Git</strong></p><ul><li>You connect a workspace to a specific branch in Azure DevOps, GitHub, or GitHub Enterprise.</li><li>Every item is tracked by an internal logical ID, which is how Fabric recognizes “this is the same notebook” across branches, workspaces, and deployment stages. You should never modify this value directly.</li><li>Item types with auto-binding support (a related but distinct concept from deployment-pipeline autobinding, this version applies during Git sync) automatically restore their relationships after an Update from Git operation. Types without it may need a manual rebinding script afterward.</li><li>If a workspace or Git folder contains unsupported item types, the connection still works, those items are simply ignored. They aren’t synced or deleted, but they also can’t be committed or updated from Git.</li></ul><p><strong>Branched Workspaces: the branching workflow</strong></p><p>To work on a change in isolation, a developer uses Branch out to another workspace from the Source Control pane. This creates a new Git branch off the current branch’s latest commit, then either spins up a new workspace bound to it or rebinds an existing workspace to it.</p><ul><li>You can branch out everything, or use Select items individually (preview) to bring over just a subset, any dependency of a selected item has to be included alongside it (there’s a Select related items helper for this).</li><li>Anything not yet committed to Git can be lost during branch-out, always commit first.</li><li>Typical cycle: work in the isolated branched workspace → commit to the feature branch → open a pull request to main → review and merge through the Git provider → the source Dev workspace gets prompted to Update from Git and pull in the merged result.</li></ul><p>Two operations that are easy to confuse:</p><ul><li><strong>Switch branch</strong> rebinds the current workspace to a different branch and <em>overwrites</em> its items to match, anything present in the old branch but missing from the new one gets deleted from the workspace.</li><li><strong>Checkout new branch</strong> instead branches off your <em>current</em> state, preserving any uncommitted work, mainly used to resolve merge conflicts without losing changes.</li></ul><p>A recent enhancement worth knowing about: selective branch mapping, which lets different workspaces or folders within the same repository each track their own branch independently, along with a built-in diff view in Source Control so you can review changes before committing or pulling.</p><p><strong>Recommended branching model</strong></p><p>A simple, proven pattern for Fabric teams:</p><ul><li><strong>main</strong> → production-ready content</li><li><strong>dev</strong> → active integration branch</li><li><strong>feature branches</strong> → isolated developer work, one per change</li></ul><p>Developers work in feature branches (via branched workspaces), merge into dev once reviewed, and merge dev into main when validated. Deployment pipelines then take over, promoting main’s content through Test and Prod. This keeps merge conflicts contained and production risk low.</p><h3><strong>4. What’s Actually Supported</strong></h3><p>CI/CD support varies significantly by item type, and this list changes frequently, so treat this as a snapshot rather than a permanent reference, check the official supported-items pages (https://learn.microsoft.com/en-us/fabric/cicd/deployment-pipelines/intro-to-deployment-pipelines?tabs=new-ui) for Git integration and deployment pipelines before you design around a specific item type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*nzwKErrJUbofx7k5CKElTQ.png" /></figure><p>A good number of these are still marked <em>preview</em>, and several important exclusions remain outside CI/CD scope entirely regardless of item type, workspace permissions, capacity settings, and OneLake file-level ACLs are managed separately and aren’t part of either Git integration or deployment pipelines.</p><h3><strong>5. How All Three Work Together</strong></h3><p>Putting the pieces in the order they actually execute:</p><ol><li><strong>Git integration + branching</strong> governs how a change gets made safely. A developer branches out into an isolated workspace, makes changes, commits, and opens a pull request. Review and merge happen in the Git provider, this is the CI half.</li><li>Once merged, the source Dev workspace pulls in the change via <strong>Update from Git</strong>.</li><li>A <strong>Deployment Pipeline</strong> promotes that content Dev → Test → Prod, the CD half. Along the way, <strong>autobinding</strong> reconnects dependent items automatically (with the noted exceptions), and the comparison view tells you exactly what’s changing before you commit to the promotion.</li><li>Riding along inside that same pipeline, the <strong>Variable Library</strong>’s active value set for each stage resolves the <em>same</em> promoted item, the same pipeline, the same shortcut, the same notebook, to the correct environment-specific value, with zero manual edits after promotion.</li><li>If this needs to run unattended, fabric-cicd, the Fabric CLI, Terraform’s Fabric provider, or the Azure DevOps Pipelines extension for Fabric can drive the whole sequence, with the caveat that service-principal-driven deployments need a plan for the ownership handoff described above.</li></ol><p><strong>In short:</strong> Git integration answers <em>how did this change get here safely</em>. Deployment pipelines answer <em>how did it get promoted</em>. Variable Library answers <em>why does it still work correctly once it lands</em>.</p><p><strong>Key Takeaways</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*ehgjgKyTwgrfayryNH5_ag.png" /></figure><p>Together, these three aren’t optional extras bolted onto Fabric, they’re the actual mechanism by which a Fabric solution goes from “works on my workspace” to a governed, repeatable, team-scale deployment process.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edc222922642" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/mastering-ci-cd-in-microsoft-fabric-the-complete-dev-test-prod-playbook-for-enterprise-analytics-edc222922642">Mastering CI/CD in Microsoft Fabric: The Complete Dev/Test/Prod Playbook for Enterprise Analytics</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Is Dataflow Gen2 Slow (compared to PySpark notebooks)?]]></title>
            <link>https://pub.towardsai.net/why-is-dataflow-gen2-so-slow-bc203873996f?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc203873996f</guid>
            <category><![CDATA[data-factory]]></category>
            <category><![CDATA[pyspark-vs-dataflow-gen-2]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[dataflow-gen2]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 11:43:50 GMT</pubDate>
            <atom:updated>2026-11-08T13:38:14.423Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>A Guide for Microsoft Fabric Engineers. Understanding the architecture, benchmarking against PySpark, and knowing when to use what</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cu_X4w66RIh4pFOiawptug.png" /></figure><p>If you’ve worked with <strong>Microsoft Fabric’s Dataflow Gen2</strong>, you’ve probably had this moment: you kick off what looks like a simple transformation, and then… nothing. For 45 seconds. A minute. Sometimes longer. You start wondering if something went wrong, or if you made a terrible architectural choice.</p><p>You didn’t. But there’s a lot going on beneath that spinning cursor, and understanding it will change how you design your Fabric pipelines entirely.</p><p>This article covers three things:</p><p>1. Why Dataflow Gen2 is slow (the root causes)</p><p>2. Why it’s slower than PySpark Notebooks (the architectural tradeoff)</p><p>3. What you can actually do about it (practical fixes and decision rules)</p><h3>Part 1: The Root Cause, It’s Spark All the Way Down</h3><p>The single biggest reason Dataflow Gen2 feels slow, especially on small jobs, is that it runs on Apache Spark under the hood.</p><p>Spark is a distributed processing engine built for massive datasets. It’s the same technology behind large-scale data lakes, petabyte-scale analytics, and enterprise ETL pipelines that process billions of rows. When you run a Dataflow Gen2, Fabric is essentially spinning up a Spark cluster, running your transformation, and tearing it back down.</p><p>That spin-up alone adds 30 to 120 seconds of cold start latency, before a single row of your data is touched.</p><p>This isn’t a bug. It’s the architecture. But it catches a lot of engineers off guard, especially those coming from Power Query or SQL backgrounds where small transformations execute in seconds.</p><h3>Part 2: The 8 Reasons Your Dataflow Gen2 Is Slow</h3><h4>1. Spark Cold Start (The Big One)</h4><p>Every execution allocates compute from scratch. There’s no persistent, always-on cluster waiting for your query. The moment you hit Run:</p><p>• A cluster is requested and allocated</p><p>• The Spark environment is initialized</p><p>• Only <em>then</em> does your data get processed</p><p>For a 10,000 rows dataset, you’re paying Spark startup tax on work that a SQL stored procedure would finish in milliseconds.</p><h4>2. No Always-On Compute</h4><p>Unlike a dedicated SQL pool or a database server, Dataflow Gen2 doesn’t maintain a hot engine between runs. Every scheduled refresh, every manual trigger; cold start, every time.</p><h4>3. Built for Big Data, Not Small Jobs</h4><p>Dataflow Gen2 is optimized for large-scale transformations across millions of rows, parallel processing across distributed partitions, and complex multi-step transformations on structured or semi-structured data.</p><p>If your use case is loading a 50KB lookup table or doing a three-column pivot on a few thousand rows, you’re using a freight train to deliver a pizza.</p><h4>4. Data Serialization and Movement Overhead</h4><p>Reading from a source and writing to a Lakehouse or Warehouse isn’t as simple as it sounds. Spark internally shuffles data across partitions, converts formats (often to Parquet or Delta), and manages distributed write coordination. Each of these steps adds overhead that compounds with complexity.</p><h4>5. Complex Transformations Are Genuinely Expensive</h4><p>Certain operations carry a heavy Spark cost: joins (especially between large tables), aggregations and GROUP BY operations, window functions, and derived columns with complex conditional logic. Poor partitioning makes all of these worse, if Spark doesn’t partition your data well relative to your transformations, it spends more time shuffling than computing.</p><h4>6. Default Parallelism May Not Fit Your Data</h4><p>Spark’s auto-configuration is a best guess. It often results in too many small partitions (causing excessive overhead) or too few partitions (causing underutilized compute and serial bottlenecks). Neither extreme is fast.</p><h4>7. Debug Mode vs. Production Runs</h4><p>If you’re testing in Debug mode, expect it to be noticeably slower than a production pipeline run. Debug mode is not representative of real-world performance; but many engineers benchmark from there and walk away with the wrong impression.</p><h4>8. Sink Operations Are a Hidden Slowdown</h4><p>Writing data <em>out</em> is often where time disappears. Auto-creating tables forces schema inference at runtime, small file writes create fragmented Delta tables, and schema mismatches trigger retries or conversions. This is one of the most overlooked performance killers in Dataflow Gen2.</p><h3>Part 3: Why Dataflow Gen2 Is Slower Than PySpark Notebooks</h3><p>Dataflow Gen2 uses Power Query (M language) as its authoring interface. That M code gets translated into Spark jobs by the Fabric engine before execution:</p><p><em>M Query → Fabric engine → Spark plan → Execution</em></p><p>PySpark in a Notebook goes directly:</p><p><em>Your code → Spark execution</em></p><p>Every translation layer adds overhead. The Fabric engine has to interpret your M transformations, generate a Spark execution plan, and optimize it, and that optimization isn’t always as good as what an experienced engineer would write manually.</p><h4>The 9 Specific Gaps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*pBT8_-vC0f-1vd74XHvHiw.png" /></figure><h4>The Design Intention Behind the Gap</h4><p>This isn’t a flaw in Dataflow Gen2. It’s a deliberate design tradeoff:</p><p>You are trading performance and control for ease of use and accessibility. Dataflow Gen2 is, in a very real sense, the Power BI of data engineering; approachable, visual, and productive for the right workloads. PySpark is the full engine, exposed.</p><p>The mistake isn’t using Dataflow Gen2. The mistake is using it for workloads that need what PySpark provides.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*vRothMoTy2IJNscj9xIBAA.png" /></figure><h3>Part 4: How to Make Dataflow Gen2 Faster</h3><p>Even within its constraints, there’s meaningful room to optimize.</p><h4>Match the Tool to the Workload First</h4><p>Before tuning anything, ask honestly: <em>should this even be a Dataflow Gen2?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*5VUU1yg0pcRrQUakkyTRsg.png" /></figure><h4>Push Work Back to the Source</h4><p>Use query pushdown wherever possible. Select only the columns you need, filter rows before they hit Spark, and let the source system do the heavy filtering. The less data Spark has to ingest, the faster it runs.</p><h4>Reduce Transformation Steps</h4><p>Every transformation step is a Spark stage. Combine steps where you can. Avoid redundant intermediate outputs. The shorter your transformation chain, the less total overhead accumulates.</p><h4>Optimize Joins</h4><p>Use broadcast joins for small lookup tables; this avoids expensive data shuffles. Filter before joining, not after. Where you can pre-aggregate or pre-filter a dataset before a join, apply it.</p><h4>Control Partitioning Intentionally</h4><p>Don’t leave partitioning entirely to Spark’s auto-config. Avoid designs that create thousands of tiny partitions. Aim for partition sizes in the 128MB–512MB range. Choose distribution keys that match your transformation patterns.</p><h4>Pre-Create Your Sink Tables</h4><p>One of the easiest wins: don’t let Dataflow Gen2 auto-create tables in production. Pre-create your target tables with the correct schema. This eliminates runtime schema inference, table creation overhead, and potential type mismatch retries. After large loads, run OPTIMIZE on your Delta tables.</p><h4>Think in Batches, Not Rows</h4><p>If you find yourself designing row-by-row logic; loops, conditional row updates, iterative patterns; stop. Rewrite it as a bulk transformation. Spark is built for set-based operations. Row-level iteration is catastrophically slow in a distributed engine.</p><h4>Fewer, Bigger Pipelines</h4><p>Many small Dataflows chained together multiply your cold start tax. Consolidate where it makes sense, fewer, well-optimized Dataflows will almost always outperform many lightweight ones strung together.</p><h3>Final thoughts</h3><p>Dataflow Gen2 isn’t <em>slow</em>, it’s appropriately sized for a different problem than many people use it for.</p><p>It’s a distributed data transformation engine built for scalability, not speed on small tasks. It will always have startup overhead, because that overhead is the cost of elastically provisioning compute on demand. For the workloads it’s designed for millions of rows, complex multi-step transformations, scalable ETL, that tradeoff is completely justified.</p><p>The engineers who struggle with it are usually the ones applying it to jobs that don’t need distributed compute. The ones who thrive are the ones who respect the tool’s nature and design accordingly.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc203873996f" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/why-is-dataflow-gen2-so-slow-bc203873996f">Why Is Dataflow Gen2 Slow (compared to PySpark notebooks)?</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medallion Architecture: A Practical Guide to Organizing Modern Data Platforms like MS Fabric]]></title>
            <link>https://medium.com/towards-data-engineering/medallion-architecture-a-practical-guide-to-organizing-modern-data-platforms-like-ms-fabric-259add7b8463?source=rss-af60bd1dece7------2</link>
            <guid isPermaLink="false">https://medium.com/p/259add7b8463</guid>
            <category><![CDATA[lakehouse-architecture]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <category><![CDATA[msfabric]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <dc:creator><![CDATA[Fahad Shamim]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 11:44:53 GMT</pubDate>
            <atom:updated>2026-11-08T13:38:42.441Z</atom:updated>
            <content:encoded><![CDATA[<p>As organizations continue to grow their data footprint; ingesting from applications, files, IoT devices, and business systems; keeping that data organized and trustworthy becomes increasingly difficult. Without a clear structural framework, teams routinely encounter inconsistent data quality, duplicated business logic, and fragile reporting pipelines.</p><p>Medallion architecture addresses these challenges head-on.</p><p>It is a layered data design pattern commonly used in data lakes and Lakehouses and is tightly associated with modern platforms such as Databricks and Microsoft Fabric. The pattern organizes data into three progressive tiers of quality and refinement; Bronze, Silver, and Gold; preserving raw data while enabling clean, business-ready outputs for analytics and reporting.</p><h3>The Three Layers of Medallion Architecture</h3><p>Each layer serves a distinct purpose in the data lifecycle. Together, they balance flexibility with governance and performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*f6cX5R1S-auzzzGTwEYa_g.jpeg" /></figure><h3>Bronze: Raw Ingestion</h3><p>The Bronze layer is the entry point for all incoming data. Its purpose is simple: store everything exactly as it arrives, without modification.</p><p>• Ingest data directly from source systems</p><p>• Stored as-is, with no transformation applied</p><p>• Serves as an immutable historical archive</p><p>• Typically append-only, preserving original records for future reprocessing</p><h3>Silver: Cleansed and Enriched</h3><p>The Silver layer is where raw data becomes reliable. Records are cleaned, validated, and standardized to produce a consistent, trustworthy dataset.</p><p>• Applies deduplication, validation, and format standardization</p><p>• May join data across multiple source systems</p><p>• Retains granularity while ensuring consistency</p><p>• Primarily consumed by data engineers and advanced analysts</p><h3>Gold: Business-Ready</h3><p>The Gold layer is optimized for consumption. Data here is aggregated, enriched with business logic, and structured around domains that reflect real organizational needs.</p><p>• Aggregated and shaped to reflect business concepts</p><p>• Optimized for dashboards, BI tools, ML models, and executive reporting</p><p>• Organized around business domains (e.g., “Daily Sales by Region”)</p><p>• Directly consumed by analysts, end users, and BI platforms</p><h3>Why Medallion Architecture Matters</h3><p>The value of medallion architecture extends well beyond simple layer separation. It establishes a scalable framework for managing data quality, ensuring transparency, and building trust in analytics across the organization.</p><p>• Data Quality: Each successive layer enforces stricter validation and transformation standards</p><p>• Reprocessing: The Bronze layer always preserves the original source data, enabling full reprocessing when logic changes</p><p>• Auditability: End-to-end data lineage can be traced across all three layers</p><p>• Scalability: Teams can operate at whichever layer is appropriate for their role and workload</p><p>• Separation of Concerns: Ingestion, cleansing, and serving are decoupled, reducing complexity and risk</p><h3>Common Deployment Models</h3><p>Medallion architecture can be deployed in several ways, depending on your organization’s governance model, team structure, and platform configuration. The three most common approaches are described below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*rS5Ck5-b7kp0moPmK4ufrw.jpeg" /></figure><p><strong>Recommended approach</strong>: For most production environments, provisioning a dedicated workspace per Medallion layer delivers the strongest governance posture, clearest ownership boundaries, and most granular access control. The trade-off, however, is the loss of cross-database query support, making this approach a poor fit for teams that rely heavily on T-SQL cross-referencing as it is not supported, may be in Future Microsoft will add support for it.</p><h3>Choosing Between a Warehouse and a Lakehouse</h3><p>In Microsoft Fabric, medallion architecture can be implemented using Lakehouses, Warehouses, or a hybrid of both. The right choice depends on the nature of your data, the skills of your team, and your expected consumption patterns. Because Fabric enables multiple analytical engines to operate over a single copy of data in OneLake, teams have real flexibility to select the model that fits both their technical environment and business requirements.</p><p>The following patterns represent common implementation choices. They are guidelines, not prescriptions, actual configurations may vary significantly in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*MIED8xOS3FI1HjFJcpVD-A.jpeg" /></figure><p>Choosing between Warehouse vs. Lakehouse SQL endpoint is one of the most common Fabric architecture decisions: if your team writes T-SQL and needs DML (inserts/updates), use the Warehouse. If you’re querying Delta tables from the Lakehouse and feeding Power BI DirectLake, the SQL endpoint is sufficient and cheaper.</p><h3>Selecting the Right Orchestration and Transformation Tools</h3><p>If you are evaluating which Microsoft Fabric data integration service to use within a medallion architecture, the following questions can guide your decision:</p><p>• What is your primary objective? Are you ingesting data, transforming it, replicating it across systems, orchestrating pipelines, or handling real-time streaming?</p><p>• What is your team’s technical profile? Do you need a no-code or low-code experience, or are you comfortable building and maintaining code-based pipelines?</p><p>• What kind of workload are you running? Is it batch, bulk load, incremental refresh, continuous streaming, or near-real-time processing?</p><p>• How complex are your transformations? Are you applying lightweight cleansing rules, or building multi-step, domain-specific business logic?</p><p>Your answers will point you toward the right combination of tools, whether that is Data Factory pipelines, Dataflow Gen2, notebooks, or a combination thereof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*ezhZug9sMwRFomEdRBinqQ.jpeg" /></figure><p>A few things worth calling out about the skill-level groupings:</p><p><strong>Low skill</strong> tools (Dataflow Gen2, Data Activator, Factory pipelines) are where business analysts and less technical data team members can operate independently, no code required, or just M/GUI config.</p><p><strong>Medium–High skill</strong> tools (Spark Notebooks, Job Definitions, KQL) assume engineering or data science backgrounds. Notebooks in particular carry hidden complexity, managing compute, Delta table optimization, and Spark configs adds up fast.</p><h3>Example: Using a sample data for a Restaurant Chain</h3><p>To make these concepts concrete, consider a multi-market restaurant company using medallion architecture to consolidate and analyze operational and sales data. Each layer plays a specific role in preparing that data for reliable reporting.</p><h3>Bronze Layer: Raw Ingestion</h3><p>• Individual markets and countries submit raw sales data in JSON or CSV format</p><p>• Data is stored exactly as received, with no transformation or validation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*lfNObAKA2WvyTPsTgsfLew.png" /></figure><h3>Silver Layer: Standardization and Enrichment</h3><p>• Date formats are normalized across all source markets</p><p>• All currency values are converted to a single standard (e.g., USD)</p><p>• Test transactions and employee sales are filtered out</p><p>• All Dimensions have Keys</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*p3so2OnrQSfC13Y2Ul1XOw.png" /></figure><h3>Gold Layer: Business-Ready Output</h3><p>• A daily sales summary table is built, aggregated by store, country, and date</p><p>• This dataset feeds directly into dashboards and executive reporting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6rhAGu_mSifNtJjsyNUpZg.png" /></figure><h3>Conclusion</h3><p>Medallion architecture provides a practical, proven framework for bringing structure, quality, and reliability to modern data platforms. By separating raw ingestion, data refinement, and business-ready outputs into clearly defined layers, organizations can build systems that are easier to govern, maintain, and scale over time.</p><p>Whether you are working in Microsoft Fabric, Databricks, or another Lakehouse platform, the medallion pattern offers a strong architectural foundation for trustworthy analytics and better-informed decision-making.</p><p><em>Follow for more practical content on Microsoft Fabric, Power BI, modern data analytics and data engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=259add7b8463" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/medallion-architecture-a-practical-guide-to-organizing-modern-data-platforms-like-ms-fabric-259add7b8463">Medallion Architecture: A Practical Guide to Organizing Modern Data Platforms like MS Fabric</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>