Free tools & games for everyone
Free · No sign-up · No accounts
Write measures on a small star schema and see filter context at work: totals, CALCULATE, ALL, SUMX and one-way or two-way relationships.
Relationships to Sales:
| Tab | Move between the boxes, lists and buttons |
|---|---|
| Enter | On the Work it out button: run the measures |
The lab has a star schema of four made-up tables: 72 sales lines, 8 products, 5 stores and 6 months. Each description table has a one-to-many relationship to Sales. The measure language is our own small evaluator, written in the style of the formula languages of business-intelligence tools (such as DAX in Power BI): SUM, AVERAGE, MIN, MAX, DISTINCTCOUNT, COUNTROWS, SUMX, RELATED, DIVIDE, BLANK, CALCULATE with filters such as Product[Category] = "Bikes", and ALL or REMOVEFILTERS on a table or a column. Inside SUMX a measure or CALCULATE turns the current row into a filter (context transition), as those languages do.
It covers only these functions and simple filters, and it does not copy any product. Real tools have many more functions, data types, many-to-many relationships and rules for ambiguous paths. Not affiliated with or endorsed by Microsoft or any other software maker; product names are trademarks of their owners.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product