Skip to main content

pbia - Power BI QA

Checks every page of a Power BI report: each visual's numbers against its own DAX and against the warehouse SQL, every visual drawn with data, the filters and slicers, the dataset refresh - as pytest test cases, one command.

Stage What is checked
DAX_VS_SQL each visual's DAX returns what its Dev SQL returns (row by row)
UI every page opens; every visual draws and holds data (read to its end, scrolled when it has a scroll bar)
REFRESH the dataset was refreshed recently enough
UI_VS_SQL what each visual shows = its Dev SQL (cards: one check per card)
UI_VS_DAX what each visual shows = its own DAX
CROSS_VISUAL cards agree with the tables / charts on the page
FILTERS the Filters pane and the slicers are there and unchanged since the previous run
FILTER_APPLIED slicer values (and pairs) applied one at a time: every visual still shows data
RLS (optional) each user sees only their own data

1. Install

pip install "pbia[mssql]"           # [mssql] = SQL Server / Azure SQL; also [postgres] [mysql] [oracle] [snowflake]
playwright install chromium         # once - the browser pbia uses (or it uses your installed Chrome / Edge)
az login                            # Power BI and Azure SQL tokens come from here

Python 3.10+. For Azure SQL: the ODBC Driver 18 for SQL Server.

2. Set up the project (once)

mkdir my-qa; cd my-qa
pbia --init                         # sample_config.jsonc, main.py, pytest.ini, .gitignore, README.md,
                                    # tests/_template.py (the 8 checks written out + every test feature)
copy sample_config.jsonc config.jsonc

config.jsonc holds the connection settings only:

{
  "powerbi": {"group_id": "<workspace GUID from the report URL>"},        // "me" = My workspace
  "reports": [
    {"name": "Sales Report", "report_id": "<report GUID from the report URL>", "pages": []}   // [] = every page
  ],
  "database": {"db_type": "mssql", "host": "<server>.database.windows.net", "database": "<db>",
               "auth_mode": "entra_mfa"}                                   // the az login account
}
pbia --doctor                       # checks token, reports, refresh history, browser, database - step by step

3. Build the checks (once per report, again when it changes) - in this order

# Command What it does Writes
1 pbia --capture opens the report in a browser (sign in once), goes through every page and captures each visual's query. Click the filters you need, ENTER = next page reports/<Report>/<Page>/meta_<Page>.jsonc and queries/Q<id>_<visual>.sql (DAX filled in)
2 (you) open each queries/*.sql and paste the Dev SQL under -- SQL
3 pbia --validate runs every DAX and every Dev SQL, compares them; stores the SQL results (the card checks need their column names) results in meta_<Page>.jsonc
4 pbia --ui reads every page and visual (the UI baseline) reports/<Report>/UI_BASELINE.jsonc
5 pbia --generate writes each page's checks and test settings, and its test file report_<Page>.jsonc, tests/test_<page>.py

Run any command for one report or page with --report "Sales Report" or --report "Sales Report/Sales Overview".

4. Run

python main.py                      # every test: each page's 8 checks (+ your own tests) -> one report

main.py runs tests/test_*.py (the same as pbia --test), adds RLS when configured, prints the execution summary and calls after_run(report) - your code (e.g. the PDF summaries and the monday.com upload). Options: python main.py --run-env DEV --workers 4 -k sales --case "SO_*". Exit code 0 = everything passed.

Without pytest: pbia --all runs the same checks (UI, DAX vs SQL, page checks, RLS) with one summary.

Results - results/<date>/:

File
report.jsonc the day's full report: every test case, every check, the stage summary
report_<page>_<date>.xlsx the test results per page (Results + Summary sheets)
test.log, run.log the pytest log; the log of every other command
ui/<Report>/ what each visual showed (one CSV per visual) and screenshots of failures
rules/, dax_vs_sql/ failed comparisons side by side (CSV)

and reports/<Report>/<Page>/result_<Page>.jsonc - the page's latest result per stage.

Interrupted runs resume. After every test (and every pbia --all step) the progress is saved in results/<date>/progress.jsonc. If a run is cut off (window closed, VM restart, network), run the same command again: the tests that finished are not run again, their results are kept, the rest runs. --fresh starts over.

Tokens renew themselves. A Power BI token that expires or is refused during a run (DAX queries, the REST API, the report in the browser) is renewed from az login and the call repeated; a database connection that drops (expired token, network) connects again. In a pipeline sign in with az login --service-principal ....


5. The page files - reports/<Report>/<Page>/

File What it holds Who writes it
meta_<Page>.jsonc one entry per query: visual, query file, "flag", "skip", "notes", last results --capture, --validate; you edit flag / skip / notes
queries/Q<id>_<visual>.sql the query's DAX (under -- DAX, in a /* */) and its Dev SQL (under -- SQL) --capture (DAX); you (SQL)
report_<Page>.jsonc how the page is checked and tested: tests, compare, filters, cards, checks --generate; you edit it
result_<Page>.jsonc the latest result per stage every run

report_<Page>.jsonc

{
  "tests": {
    "id": "SO",                         // test case IDs: SO_01_<query>, SO_02 ... SO_08
    "stop_on_fail": false,              // true: a test stops at its first failing check
    "off": [],                          // checks not run, e.g. ["refresh", "filter_applied"]
    "skip": {"ui_vs_sql": [5, 6]},      // queries left out of a check (also "all": [...])
    "titles": {"ui": "Overview visuals load"},  // test case names
    "descriptions": {"ui": "Every Overview visual draws with data"}   // their descriptions (report column)
  },
  "compare": {                          // DAX vs SQL and the page checks
    "decimals": 2, "abs_tolerance": 0.01, "rel_tolerance": 0,
    "time_tolerance": 0,                // seconds two durations ("0:02:31") / date-times may differ
    "allow_missing_rows": false         // true: see "Visuals that show fewer rows" below
  },
  "filters": [ ... ],                   // slicers held at a value / date range, sweeps
  "cards":   [ ... ],                   // card columns vs their Dev SQL (generated)
  "checks":  [ ... ]                    // left vs right checks (generated + your own)
}

Generated entries have "origin": "auto"; pbia never overwrites an entry that is already there, so edit them freely. "enabled": false switches a check off. Every key of this file: section 11. Your own // comments stop pbia from rewriting the file.

Leave a query out: in meta_<Page>.jsonc on the query, "skip": ["ui_vs_dax", "cross_visual"] ("all" = every check), or "flag": "SKIP"; "flag": "INTENTIONAL" = a known DAX vs SQL difference (reported, not failed). Check names: dax_vs_sql, ui, ui_vs_sql, ui_vs_dax, cross_visual, filters, filter_applied.

Hold a slicer before the page is read (the report opens with its default slicers, not the ones your browser remembers) - in "filters":

{"page": "Overview", "slicer": "Custom Date Selection", "set": {"from": "2025-01-01", "to": "today"}}
{"page": "Overview", "slicer": "Channel", "set": ["Organic Search"]}

A check of your own - in "checks":

{"id": "MY-1", "label": "Revenue card = sum of the monthly table", "page": "Overview",
 "left":  {"visual": "Revenue", "column": "Revenue", "agg": "only"},
 "right": {"visual": "Monthly Revenue", "column": "Revenue", "agg": "sum"},
 "compare": {"op": "==", "tolerance": 1}}

A side is a visual ("visual": title or "name:<Visual ID>", "column", "agg": only / sum / avg / min / max / count), a query file ("sql_file" / "dax_file"), inline "sql" / "dax", or "const". pbia --inventory lists every visual, column and value pbia can name.

Visuals that show fewer rows than DAX / SQL

  • Rows behind a scroll bar are read: pbia scrolls each chart / table to its end (waiting for the data after every scroll) and reads it again. The log (and pbia --inventory) says for every such visual what happened: scrolled 4 time(s) to its end: 30 row(s) at first, 120 at the end, does not scroll (nothing more to show), or not scrolled: its place on the screen could not be read; the export limit (ui.export_rows N) was reached means raise "ui": {"export_rows": ...}. When it says all rows came and the visual still has fewer than DAX / SQL, the visual itself shows fewer (a Top N, a visual filter) - the check's note says so - see the next points.
  • A visual showing its first rows only (a Top N) passes as PARTIAL_VISUAL when the rows it shows match and the others come after them in its order.
  • "allow_missing_rows": true (page or check compare): passes as PASSED_WITH_DIFFERENCE (PASS*) when the visual shows fewer rows, every row it shows is in DAX / SQL with the same values, and no left-over row has the label of a shown row. Otherwise it fails and says which rule broke.
  • Rounding: a visual vs DAX / SQL is compared at the decimals the visual displays (0.12 shown as 0).

6. Your own tests

A page's test file is one line; add your own tests below it. tests/_template.py (from pbia --init) has the 8 checks written out and an example of every test feature - copy it to tests/test_<page>.py to start from it instead:

from pbia import page_tests, test_case

page_tests("Sales Report/Sales Overview")


@test_case("SO_C01", title="Revenue card matches SQL (whole numbers)")
def revenue_card(qa):
    qa.check(3, decimals=0, abs_tol=1)                    # query 3: DAX vs Dev SQL, own tolerance


def test_revenue_by_product(qa):
    dax = qa.run_dax(4)                                   # query 4's DAX, live
    sql = qa.run_sql(sql="SELECT product, SUM(amount) AS revenue FROM sales GROUP BY product")
    qa.compare(dax, sql, name="revenue by product")

qa runs DAX / SQL for the page, compares and records every check in the reports; qa.stage("ui") runs one of the 8 checks; @test_case(id, title, description, run_env=["DEV", "PRD"]) names a test case.


7. Reading a failure

Every failed comparison shows both sides: the differing rows side by side in the log (= same, != differs, < only on the left, > only on the right) and in full in a CSV. A visual's side also says what the page was read with (read with: Custom Date Selection = ...; Channel = (all)): a card that is off by a share is usually another date range or slicer value than your SQL - hold it with "set".

Status Meaning
PASS / FAIL / ERROR / SKIPPED as usual; ERROR = the check cannot run as written
PASS* (PASSED_WITH_DIFFERENCE, PARTIAL_VISUAL) passed, the visual shows fewer rows - listed
ROW_COUNT_MISMATCH / VALUE_MISMATCH whole tables differ: rows only on one side / values
NO_DATA / EXPORT_FAILED / NOT_RENDERED a visual is empty / cannot be read / a page does not draw
MISSING_VISUAL / MISSING_PAGE gone since the baseline (pbia --ui --rebaseline accepts the change)
FILTER_PANE_CHANGED / SLICER_CHANGED a filter / slicer differs from the previous run
FILTER_STATE_NO_DATA a visual is empty under a slicer value (screenshot saved)
REFRESH_STALE / REFRESH_FAILED the dataset was not refreshed recently enough / the refresh failed

8. Commands

Command
pbia --init new project in the current folder
pbia --doctor check the setup step by step
pbia --capture [--refresh-dax] capture the visuals' queries; --refresh-dax --report R/P: take the current DAX of a page
pbia --validate DAX vs SQL of every query
pbia --validate --rules the page checks (reads the pages to the end first)
pbia --ui [--rebaseline] [--headed] UI check; --rebaseline accepts the report as it is; --headed shows the browser
pbia --generate report_<Page>.jsonc and tests/test_<page>.py (your edits are kept)
pbia --all [--fresh] UI + DAX vs SQL + page checks (+ RLS), one summary
pbia --test [pytest args] the tests (main.py does this too); --fresh, --case, --run-env, --workers
pbia --list / --inventory reports and pages on disk / every visual, column and value of the last UI read
pbia --remap after a republish: move checks, queries and baseline to the new Visual IDs
pbia --rls row-level security per user ("rls" block in config.jsonc)
--report "R[/P]" --workers N --config path on any command

Exit codes: 0 passed, 1 a check failed, 2 bad command / config, 3 a UI failure, 4 a source could not be reached, 5 the dataset is not refreshed; --test / main.py: pytest's codes.


9. Optional settings in config.jsonc

Everything has a default; add a block only to change it. Every key of every file, with its default: section 11.

Setting Default
"compare" decimals 2, abs_tolerance 0.01, rel_tolerance 0, time_tolerance 0 for every page (a page's compare wins); time_tolerance in seconds for durations and date-times
"ui": {"headless": false} true show the browser while the pages are read
"ui": {"refresh_max_age_days": 1} 1 0 = refreshed today
"ui": {"screenshots": "failures"} failures failures / all / none
"ui": {"filter_apply": {"enabled": false}} on the FILTER_APPLIED check (max_values 3, max_states 8, empty fail / warn)
"ui": {"filters_compare": "baseline"} previous compare filters with the baseline instead of the previous run
"ui": {"load_all_rows": false} true do not scroll visuals
"rules": {"log_rows": 40} 40 rows shown side by side in the log for a failed comparison
"database": {"auth_mode": "sql_login", "user": "..."} entra_mfa password from QA_DB_PASSWORD
"rls": {...} - row-level security: "dax" per level, "users" with "expect"

Environment variables: RUN_ENV (PRD / DEV / LOC), PBIA_WORKERS, PBIA_HEADLESS, PBIA_POWERBI_TOKEN, PBIA_SQL_TOKEN, QA_DB_PASSWORD, PBIA_HOME.


10. Troubleshooting

Symptom Fix
no Power BI token az login (pipeline: az login --service-principal ...)
a visual's numbers differ from what you see in the browser your browser remembers your own slicers; the run opens the report as published - see read with: in the failure, hold the slicer with "set"
PAGE_CHANGED_BY_SCROLL scrolling touched the page; switch it off: "ui": {"load_all_rows": false}
pip cannot find the newest version pip install --no-cache-dir --upgrade pbia (a company mirror may lag behind PyPI)
the browser is hidden pbia --ui --headed, or "ui": {"headless": false}; the first line of the run says why

11. JSON reference - every key

All files are JSONC (JSON with // comments). Any key you leave out takes its default. Settings are read in this order, and the most specific one wins: check compare > page report_<Page>.jsonc > config.jsonc > default.

11.1 config.jsonc (project folder)

"powerbi"

Key Default Values / meaning
group_id "me" workspace GUID from the report URL (.../groups/<id>/...); "me" = My workspace
token "" a fixed Power BI token; normally empty (taken from az login, or PBIA_POWERBI_TOKEN)
output_dir "reports" where the page folders are written
query_timeout 120 seconds one DAX query may take
page_load_wait 30 --capture: seconds to let a page load
headless false the test browser (qa.page, qa.refresh_dax): true hides it
login_wait 180 seconds to wait for a sign-in in that browser

"reports" - a list, one entry per report

Key Default Values / meaning
name required your name for it; the folder is reports/<name>
report_id required the GUID from .../reports/<report_id>/...
group_id powerbi.group_id its own workspace
dataset_id found from the report the semantic model's GUID
pages [] = every page [{"id": "<page id from the URL>", "name": "Overview"}]
database the top-level database keys from the table below that differ for this report
rls - this report's own rls block (see below)

"database"

Key Default Values / meaning
db_type "mssql" mssql, postgres, mysql, sqlite, snowflake, oracle
host / port / database / schema "" / 1433 / "" / "dbo" the server
connection_string "" instead of host / database
auth_mode "entra_mfa" entra_mfa (az login), ssms_interactive, sql_login (user + QA_DB_PASSWORD), windows
user "" for sql_login (the password is never stored here: QA_DB_PASSWORD)
read_only true only SELECT / WITH statements are run

"compare" - the default for every page (a page's own compare wins)

Key Default Values / meaning
decimals 2 both sides rounded to N decimals (half up) before comparing
abs_tolerance 0.01 equal when the difference is at most this
rel_tolerance 0 ... or within this share (0.01 = 1%)
time_tolerance 0 seconds two durations ("0:02:31") or date-times may differ (old name duration_tolerance)
blank_as_zero false true: a blank cell equals 0
ui_display_rounding true visual vs DAX / SQL: the query side is rounded as the visual displays it
ui_partial_rows true a visual showing the first N rows of the query (in its order) passes as PARTIAL_VISUAL (PASS*); false: ROW_COUNT_MISMATCH
ui_allow_missing_rows false true: a visual with fewer rows passes as PASSED_WITH_DIFFERENCE when every row it shows matches

"ui" - the browser run (pbia --ui, and the UI read of the tests)

Key Default Values / meaning
headless true false: show the browser (--headed or PBIA_HEADLESS=0 do it for one run)
render_timeout 120 seconds a page may take to draw
settle_seconds / quiet_seconds 5 / 15 waits after fitting the page / for pages that send no "rendered" event
width / height 1600 / 900 browser area the page is fitted into
export_rows 30000 rows read per visual (Power BI's own limit is about 30,000)
load_all_rows true scroll each scrollable visual to its end and read it again; false: no scrolling
scroll_tries 50 at most this many scrolls per visual
scroll_wait 1.5 seconds of quiet after the data a scroll asked for
scroll_patience 2 scrolls that bring nothing new before a visual counts as complete
screenshots "failures" failures, all, none
check_hidden_pages true hidden pages are checked too
refresh_check true the REFRESH check (dataset refresh age)
refresh_max_age_days 1 0 = refreshed today (UTC), 1 = today or yesterday
refresh_gate false true: a stale / failed refresh stops the run before the pages (exit 5)
watermark_sql "" SELECT MAX(<load time>) FROM ...: fails when the warehouse is newer than the refresh
new_visual_policy "add" add: a new visual is reported and added to the baseline; fail: it fails once
not_exportable_types ["qnaVisual"] visual types never read
filter_pane_check true FILTERS: the Filters pane (report + page level) compared
slicer_check true FILTERS: each slicer's field, selection and values compared
filters_compare "previous" previous: with the previous run; baseline: with the baseline (--rebaseline)
filter_apply see below the FILTER_APPLIED check
blank_check "auto" VISUAL_BLANK by pixels (pip install "pbia[ui-pixels]"); auto = when installed, off
sweeps [] filter entries for every report (same format as a page's "filters", 11.5)

"ui": {"filter_apply": {...}}

Key Default Values / meaning
enabled true false: FILTER_APPLIED is not run
max_values 3 values tried per slicer
combinations true also pairs of two slicers
max_states 8 states per page at most
empty "fail" a data visual with no data in a state: fail or warn
skip_slicers [] slicer titles / name:<Visual ID> never set
apply_selected false also slicers saved with a selection (put back afterwards)

"rules"

Key Default Values / meaning
log_rows 40 rows shown side by side in the log for a failed whole-table check
fresh_ui true tests: UI vs DAX / SQL read the page first (once per test session); false: use the last --ui run

"rls" - row-level security (pbia --rls; top level for every report, or inside one report)

"rls": {
  "dax": {"region": "EVALUATE VALUES('Geo'[Region])"},      // one query per level; its first column is read
  "users": [
    {"username": "user@company.com", "role": "Region South", // the user to test as (role: shown in the report)
     "expect": {"region": ["South"]},                        // the values this user may see, per level
     "require_all": false}                                   // true: an expected value not visible fails too
  ],
  "case_sensitive": true
}

Environment variables: RUN_ENV (PRD / DEV / LOC), PBIA_HEADLESS (0 shows the browser), PBIA_WORKERS, PBIA_POWERBI_TOKEN, PBIA_SQL_TOKEN, QA_DB_PASSWORD, PBIA_HOME.

11.2 meta_<Page>.jsonc - one entry per query

pbia writes this file. You edit only these keys:

Key Values / meaning
flag "" (checked), "SKIP" (left out of every check), "INTENTIONAL" (a known DAX vs SQL difference: reported, not failed)
skip the checks this query is left out of: ["ui_vs_sql", "cross_visual"]; ["all"] = every check
notes free text, shown in the report

Check names (used by skip, tests.off, tests.skip, tests.titles, tests.descriptions): dax_vs_sql, ui, refresh, ui_vs_sql, ui_vs_dax, cross_visual, filters, filter_applied.

11.3 report_<Page>.jsonc - the page's file

Key Meaning
tests how tests/test_<page>.py runs (below)
compare this page's compare settings: the "compare" keys of 11.1 (decimals, abs_tolerance, rel_tolerance, time_tolerance, blank_as_zero); the three ui_ flags can be written with or without ui_
filters slicers held / cleared / swept before the page is read (11.5)
cards card columns vs their Dev SQL (11.6)
checks left vs right checks (11.4)

"tests"

Key Default Values / meaning
id the page's initials ("Sales Overview" -> "SO") test case ID prefix: SO_01_<query>, SO_02 ... SO_08
stop_on_fail false true: a test stops at its first failing check
off [] checks not run at all, e.g. ["refresh", "filter_applied"]
skip {} queries left out of a check: {"ui_vs_sql": [5, 6], "all": ["C1"]}
titles built in test case names: {"ui": "Overview visuals load"}
descriptions built in test case descriptions (the report's Description column): {"ui_vs_dax": "Each Overview visual = its DAX"}
report_name the page folder name used in the result file names

11.4 A check - an entry of "checks"

{"id": "MY-1", "label": "Revenue card = sum of the monthly table", "page": "Overview",
 "left":  {"visual": "Revenue", "column": "Revenue", "agg": "only"},
 "right": {"visual": "Monthly Revenue", "column": "Revenue", "agg": "sum"},
 "compare": {"op": "==", "tolerance": 1}}
Key Default Values / meaning
id required unique in the file; generated ones: UIvSQL-<Q>, UIvDAX-<Q>, CARD-<Q>_<COLUMN>, XV-<hash>
label the id the name shown in the report
page the file's page the page the visuals are on
left / right required a side (below)
compare the page's see the table below
enabled true false: not run
note "" free text shown with the result
filter "" run under one filter state id from a sweep ("Region=East")
for_each_filter false true: run once in every filter state
depends_on [] check ids that must pass first (otherwise this one is skipped)
origin - "auto" = written by pbia; never overwritten once there

A check's "compare"

Key Default Values / meaning
op "==" ==, !=, <, <=, >, >= (two whole tables: only ==)
tolerance page abs_tolerance absolute difference allowed
rel_tolerance page rel_tolerance share allowed (0.01 = 1%)
round_to page decimals decimals both sides are rounded to
time_tolerance page time_tolerance seconds for durations / date-times
blank_as_zero page / config true: a blank cell equals 0
display_rounding / partial_rows / allow_missing_rows page / config as the ui_ flags in 11.1, for this check only

A side (left / right) - one of:

Form Example
a visual {"visual": "Revenue"} (its title) or {"visual": "name:<Visual ID>"}
a query's visual {"query_id": 3} (the visual of query 3 on this page)
a query file {"sql_file": "queries/Q3_Revenue.sql"} (its -- SQL part) / {"dax_file": "..."} (its DAX)
inline {"sql": "SELECT ..."} (a list of lines also works) / {"dax": "EVALUATE ..."}
a number {"const": 100} or just 100
arithmetic {"op": "divide", "operands": [<side>, <side>], "scale": 100} - add, subtract, multiply, divide

Options on a visual / query side:

Key Default Values / meaning
column - (whole table) one column: by its name as the visual / query shows it
agg - only (exactly one value), first, sum, avg, min, max, count, distinct_count
coerce "" numeric, percent ("74%" -> 74)
scale 1 multiply the value (100: a share as a percent)
where [] [{"column": "Channel", "op": "==", "value": "Email"}]; ops ==, !=, in, not_in, contains, blank, not_blank
drop_totals true a table's Total row is left out
page the check's the visual is on another page
report this report another report in config.jsonc (cross-report)
filter the check's a filter state id
allow_underlying false true: accept a visual that exports only row-level data

Without column, both sides are compared as whole tables. Columns are paired by name, then by their values, and rows are matched by their labels. pbia --inventory lists every visual, column and value you can name.

11.5 A filter - an entry of "filters" (or ui.sweeps)

{"page": "Overview", "slicer": "Custom Date Selection", "set": {"from": "2025-01-01", "to": "today"}}  // hold a range
{"page": "Overview", "slicer": "Channel", "set": ["Organic Search"]}                                  // hold values
{"page": "Overview", "slicer": "Year", "clear_only": true}                                            // clear it
{"label": "Region", "slicer": "Region", "values": ["East", "West"], "include_all": true}               // sweep
Key Values / meaning
page the page; leave it out for every page the slicer is on
slicer the slicer's title or name:<Visual ID>
table / column the model field (only when the slicer does not report it)
set hold the slicer before the page is read: ["A", "B"] (values) or {"from": "...", "to": "today"} (dates)
clear_only true: clear the slicer (the report's saved selection is not inherited)
label sweep: state ids are <label>=<value>
values sweep: the values read one by one (default: the slicer's own values)
via sweep: filter (a report-level filter, default) or slicer (drive the slicer itself)
include_all sweep: also a state with the filter cleared (<label>=*ALL*)
pin sweep: [{"table", "column", "value"}] held in every state
require_data / allow_empty sweep: a data visual with no rows in a state fails / visuals allowed to be empty
sql sweep: what a state means in SQL, for SQL with {where}: {"column": "g.Region", "values": {"East": "'EAST'"}}
field_parameter true: a field-parameter slicer (choose the measure shown)
enabled false: not used (generated entries start this way)

11.6 A card - an entry of "cards"

{"id": "CARD-3", "label": "Visits", "page": "Overview", "visual": "name:<Visual ID>",
 "sql_file": "queries/Q3_Visits.sql", "columns": {"Visits": "VISITS"}}

Each pair in columns (card column -> SQL column) becomes the check <id>_<COLUMN>. Optional keys: coerce, scale, compare, filter, for_each_filter, depends_on, enabled, note; sql can replace sql_file.

MIT licence.

Metadata

Release files for pbia 4.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pbia 4.0.7
File Size Uploaded Provenance Actions
pbia-4.0.7.tar.gz 278.6 kB With provenance Details for pbia-4.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pbia 4.0.7
File Interpreter ABI Platform Actions
pbia-4.0.7-py3-none-any.whl Python 3 none any Details for pbia-4.0.7-py3-none-any.whl

Total release size: 569.2 kB

Release files / pbia-4.0.7.tar.gz

Download URL pbia-4.0.7.tar.gz
Size 278.6 kB
Tags Source
SHA-256 checksum
How to use checksums
55e1d459edb6d5e90786671dc0d0bbbcf9f0387e63dd9188820841aac191d402
BLAKE2b-256 checksum
How to use checksums
468cdbc145ea59ca3632a069158105c0a5f7c5dbbec729eb94f54dcd28a0fc6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / pbia-4.0.7-py3-none-any.whl

Download URL pbia-4.0.7-py3-none-any.whl
Size 290.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
716d6d1da209528e01e1f1bc2b667d86d438e20b9b7c6288023163fbc7b47be2
BLAKE2b-256 checksum
How to use checksums
afb5b9d2fa022e47f715f0fb657d1a8f1b6f7f842da0d262560026fd4979140b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for pbia 4.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pbia-4.0.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.7 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page