Power BI playground: practice DAX
A report canvas that works like Power BI Desktop, with a sample sales model and three measures to start from. Write a new measure, drop it into a visual and see the result. You don't need an account, and there is nothing to install.
Opening the workspace
Opening the workspace
Independent training simulationNot affiliated with Microsoft CorporationDetails
Independent training simulation
This is an independently developed educational simulator by The Work Gym, designed for practising Microsoft Power BI-related workflows. It is not the official Microsoft Power BI application.
The Work Gym is not affiliated with, sponsored by, endorsed by or certified by Microsoft Corporation.
Power BI is a trademark of the Microsoft group of companies.
What you can try
- Add a measure:
Average Order = DIVIDE([Total Sales], [Order Count]). - Count customers:
Customers = DISTINCTCOUNT(Sales[CustomerKey]). - Change the filter context:
West Sales = CALCULATE([Total Sales], Store[Region] = "West"). - Share of total:
% of Sales = DIVIDE([Total Sales], CALCULATE([Total Sales], ALL(Store))). - Time intelligence:
Sales LY = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date])). - Put Product[Category] in the table, add a slicer, and watch every measure follow the filters.
The sample data
A sales model in a star schema: a Sales fact table with amount, cost, quantity and dates, related to Date, Product, Customer and Store tables. Three measures are ready: Total Sales, Order Count and Total Quantity, and a table visual shows sales by region.
Learn it step by step
The playground checks nothing. In the course, lessons come in order and every exercise is checked the moment you finish it, with a hint that names the mistake. The first unit is free.
Course: Power BILesson 1: Your first visual: from fields to a chartLesson 18: Your first DAX measuresLesson 24: CALCULATE: change the filter contextLesson 25: ALL and percent of totalLesson 29: Date tables and time intelligenceTest your level
Questions about the playground
Is this Microsoft Power BI?
No. It is an independent practice simulator built by The Work Gym to look and behave like Power BI Desktop, so what you practice carries over. It is not made, endorsed or supported by Microsoft.
Which DAX functions work?
The ones most reports use: aggregations, COUNTROWS and DISTINCTCOUNT, DIVIDE, IF and SWITCH, CALCULATE with filters, ALL and ALLEXCEPT, SUMX and other iterators, RELATED, and the common time intelligence functions. A function the simulator does not know shows an error, as Power BI would.
Is the Power BI playground free?
Yes. You don't need an account or a card, and it runs in your browser, so there is nothing to install.
Is my work saved?
Only in this browser. The playground keeps your last session on this device so it is there when you come back, and sends nothing to an account. Start again puts the sample data back.
Other playgrounds
- SQL playground
Run any query on a sample store database: products, customers, orders and employees.
- Python playground
A Python notebook with pandas and sample CSV files, running in your browser.
- Excel practice sheet online
A spreadsheet that works like Excel, with 30 sample orders for formulas, pivots and charts.
- Linux terminal online
A Bash-style terminal with sample logs, a CSV and a config file to practice commands on.
- Power Query online playground
Clean and reshape messy sample files in a Power Query Editor.
- Git playground
A sample repository with branches and commits to practice Git commands on.