Project 1 · Part 3 of 4

From SharePoint files to a table that updates itself

Concepts

  • Shortcut transformation: an option of a table shortcut. Fabric converts the files in the source folder into a table and checks the folder every two minutes, adding new files and removing deleted ones. Unlike the shortcut in Part 2, it keeps a converted copy.
  • Delta table: the table format used in Fabric lakehouses: data files plus a log of every change, kept in a folder named _delta_log.
  • SQL analytics endpoint: a read-only view of a lakehouse’s tables that you query with T-SQL, Microsoft’s version of the SQL language. Fabric creates it with every lakehouse, under the same name.

Hands-on exercise

Keep sales_2026_11.csv from Part 1 at hand, but do not upload it to SharePoint yet.

Create the table shortcut

  1. In the Explorer pane of lh_sharepoint_demo, expand Tables, select … next to dbo, then New table shortcut.

    The menu next to dbo, with New table shortcut highlighted

  2. Select SharePoint Folder, then Existing connection. In Connection, choose cn_sp_fabricdemo and select Next. The list shows your user name after the connection name.

    Existing connection, with cn_sp_fabricdemo chosen in the Connection list

  3. Expand Shared Documents, select the box next to Sales, and select Next.

    Select a directory: the box next to Sales is selected

  4. The Transform page shows Auto-transform applied: Transform from CSV to Delta. Keep the default options and select Next:

    Option Default Meaning
    Schema options Dynamic The table adapts when a new file adds a column.
    Refresh type Mirror The table follows the folder: new files add rows, deleted files remove theirs.
    Use first row as headers On The first line of each file holds the column names.
    Delimiter Comma Commas separate the values.

    Transform from CSV to Delta with Dynamic, Mirror, headers on and Comma

  5. On the review page, select the pencil icon under Actions, rename the shortcut from Sales to monthly_sales, and select Create at the bottom right.

    Review page: the shortcut renamed to monthly_sales, with the pencil icon highlighted

    The message that the monthly_sales transformation is in progress, with a Manage shortcut link

Wait for the first conversion

  1. Wait two to five minutes. Then select … next to Tables and select Refresh.

    Explorer pane: the folder Unidentified under dbo, marked with the number 1

  2. Select monthly_sales, now directly under dbo.

    Explorer pane: monthly_sales under dbo with its eight columns

    The data preview shows what the added columns hold: __filepath__ is the name of the source file and __ingestion_timestamp__ a date and time. __corrupt__ is empty (NULL) in every row of this project.

    Data preview of monthly_sales: units, revenue_eur and the three added columns

Count the rows with SQL

  1. At the top right, select Analyze data with, then SQL analytics endpoint.

    Analyze data with: Notebook, SQL analytics endpoint (highlighted) and Eventhouse endpoint

  2. Select New SQL query.

    The SQL analytics endpoint, with New SQL query highlighted in the toolbar

  3. Paste the query below and select Run:

    SELECT COUNT(*) AS rows_loaded, MIN(sale_date) AS first_day, MAX(sale_date) AS last_day
    FROM dbo.monthly_sales;
    

    The query and its result: 1220 rows, from 2026-09-01 to 2026-10-31

Add a month in SharePoint

  1. In SharePoint, open Fabwreck-Demo › Documents › Sales and upload sales_2026_11.csv.

    Documents › Sales with the new file sales_2026_11.csv above the other two

  2. Wait about two minutes, then return to the query in Fabric and select Run again.

  3. To see where the rows came from, select New SQL query again and run a second query:

    SELECT __filepath__ AS source_file, COUNT(*) AS rows_loaded,
           MIN(sale_date) AS first_day, MAX(sale_date) AS last_day
    FROM dbo.monthly_sales
    GROUP BY __filepath__
    ORDER BY source_file;
    

    The second query and its result: one row per file, with 600, 620 and 600 rows

The two shortcuts now behave differently. Targets (Part 2) keeps no copy: the lakehouse reads the file in SharePoint. monthly_sales keeps a converted copy, which Fabric refreshes every two minutes using Spark compute.

Sources and further reading
Statement Source
Transformation: copies into a managed Delta table, run by Spark; checks every two minutes; new files add rows, deleted files remove theirs. Steps 1–5: New table shortcut on a schema, delimiter, first row as headers, shortcut name Shortcut transformations
Tables evolve as new columns appear Shortcut transformations, generally available
Delta is the default table format of a lakehouse Lakehouse and Delta tables
A Delta table is a folder of data files and a _delta_log folder that records changes Understand Delta Lake
SQL analytics endpoint: read-only, T-SQL, created automatically, same name SQL analytics endpoint
Option labels (Dynamic, Mirror), user name in the connection list, transformation in progress message, waiting time, Refresh, the Unidentified folder, the three added columns and their contents, Analyze data with, New SQL query, My queries, row counts Observed in Fabric, 30 November, 3 December and 6 December 2026

Further reading: Fabric Notes 12 (Two SQL endpoints?) and 16 (Create Delta tables with Spark) on Fabric Notes, Microsoft Data Cloud Advocacy team.