13.10Choosing the function that builds the table
You now know several functions that build a table, FILTER, CALCULATETABLE, VALUES, SUMMARIZE and others. They look alike, and the hardest part is often choosing the right one. This lesson compares them with each other, then shows which one to recommend depending on what you want to get.
13.10.1What they have in common
These functions build their table from what the filters leave visible, those of the visual, of a slicer or of CALCULATE. Filter modifiers follow other rules. ALL, for example, builds its table without taking any filter into account.
In our data, only one customer is an individual, Sam Lee, in Toronto. Here are three tables evaluated under the same filter, which keeps only the individuals:
| Customers[Name] | |
|---|---|
| 1 | Sam Lee |
| Customers[Name] | Customers[Type] | Customers[Customer ID] | Customers[City] | |
|---|---|---|---|---|
| 1 | Sam Lee | Individual | C007 | Toronto |
| Customers[Name] | |
|---|---|
| 1 | Kumora |
| 2 | Movara |
| 3 | Northel |
| 4 | Orvane |
| 5 | Ribelia |
| 6 | Sam Lee |
| 7 | Talvio |
VALUES finds only Sam Lee. FILTER goes only through the customers the filter leaves, and Northel, the other customer in Toronto, is not one of them. ALL returns the 7 customers, as if there were no filter.
The functions of this lesson therefore depend on where you write them. On two different rows of a visual, the same formula can build two different tables.
The rest of this lesson is part of izyDAX Pro
You have just read the first section. The next 4, their animations, the exercises and the summary are waiting for you with izyDAX Pro, in a single payment.