end userUpdated 2026-10-10

Build a Power BI Report

What this covers

A complete walk from an empty Power BI Desktop file to a finished, refreshable report page on the Tessallite demo model: a sales-by-product bar chart, a trend line, a country slicer, and a pair of KPI cards — connected live, so every refresh re-asks Tessallite and benefits from acceleration automatically.

Before you start

Choose the connection mode

Choose the Data Connectivity mode for the way you will use the report. The step-by-step Power BI lessons show the actual checks for both modes.

Power BI Desktop -- PostgreSQL connection dialog.

This visual walkthrough uses DirectQuery. Both DirectQuery and Import passed the bounded native PostgreSQL and BigQuery-backed lessons on the checked local installation.

Good to know. Tessallite applies your access rules when a query is sent. An imported extract or exported file is a saved copy; later changes to server permissions do not remove that copy from the file.

Step 1 — Connect and load the model

  1. Open Power BI Desktop, click Get Data, choose Database > PostgreSQL database, and click Connect.
  2. Server: your gateway host and port, for example cleo:5433 on the checked local installation.
  3. Database: acme-demo — or acme-demo/modelx to open directly on the one model this walkthrough uses.
  4. Data Connectivity mode: DirectQuery.
  5. When asked for credentials, choose Database authentication and enter your Tessallite email and password.
  6. In the Navigator, tick modelx and click Load.

The Fields pane on the right now lists the model: dimensions like product_name, country_code, and business_date; measures like net_sales and gross_margin. In DirectQuery mode there is no data in the file — the Fields pane is a window into the model, and every visual you build asks a live question.

Step 2 — The bar chart: sales by product

  1. Click the stacked bar chart icon in the Visualizations pane. An empty frame appears.
  2. Drag product_name onto the Y-axis field well.
  3. Drag net_sales onto the X-axis well.

The chart fills in — one bar per product, longest first if you sort descending (click the ... menu on the visual, Sort axis > net sales). Each drag sent a grouped query through the gateway; if the model has a summary covering sales by product, the answer came back from it in a blink.

Tip: the filter pane is server-side too. Drag channel_code into the Filters on this visual well and tick online. Power BI adds the filter to the query it sends Tessallite — the narrowing happens in the database, not in the file — so the visual stays fast and the totals stay honest.

Step 3 — The trend line

  1. Click empty canvas, then the line chart icon.
  2. Drag business_date onto X-axis and net_sales onto Y-axis.
  3. Power BI groups dates into a year-quarter-month-day hierarchy automatically; use the little expand arrows on the axis to drill down to months.

You now have the two shapes every sales report wants: who (products) and when (the trend). Both are live views of the same governed model.

Step 4 — The slicer

  1. Click empty canvas, choose the slicer icon, and drop country_code into its field well.
  2. Click a country in the slicer. Both visuals re-query and redraw for that country alone.

This is the interactive payoff of DirectQuery: a slicer click is a fresh question to Tessallite, answered live — and because the slicer applies to the whole page, your two visuals can never drift into showing different countries.

Step 5 — KPI cards

  1. Click empty canvas, choose the card visual, and drop net_sales in. A big, boardroom-ready number.
  2. Repeat with gross_margin, or with a model measure like Revenue if your report prefers the governed headline.

Keep the cards at the top of the page, chart and trend below, slicer at the left — the same layout instinct as the Excel dashboard, and for the same reason: the eye lands on the headline first.

Step 6 — Save, refresh, and share sensibly

Save the .pbix. From now on:

Common trap: rebuilding the model inside Power BI. Power BI will happily let you add calculated columns and DAX measures on top of the model. Resist the urge for anything the business shares. A "net sales after adjustments" that lives only in your .pbix is a number nobody else can see, trust, or reuse — and next quarter it will disagree with the official one in a meeting, in public. If the adjustment is real, ask the modeller to add it to the model once, governed, for everyone.

Troubleshooting

SymptomLikely causeWhat to do
The Analysis Services connector asks for credentials againWindows sign-in is not set up for your computerSee the live-connection section of the connection guide, or use the PostgreSQL connector this walkthrough uses
Navigator shows nothingWrong workspace, no permitted published model, or discovery failureCheck the workspace, deployment and access; retain an actual discovery error
Connection or first load is slowCatalogue preparation and data execution are different stagesNote whether the wait is in Navigator, preview, Load or the visual; give the exact stage and error to your administrator
Authentication errors after a password changeStored credentials are staleFile > Options > Data source settings, clear the entry, and reconnect
A measure is text or shows an errorWrong field, column type or transformationCheck the loaded numeric type and field well using the step-by-step lessons