0
0
Power BIbi_tool~10 mins

Creating dataflows in Power BI - Formula Evaluation Walkthrough

Choose your learning style9 modes available
Sample Data

Sample customer data table with IDs, names, and countries to be used in a Power BI dataflow.

CellValue
A1CustomerID
B1Name
C1Country
A2101
B2Alice
C2USA
A3102
B3Bob
C3Canada
A4103
B4Charlie
C4USA
Formula Trace
Table.SelectRows(Source, each [Country] = "USA")
Step 1: Source
Step 2: each [Country] = "USA"
Step 3: Table.SelectRows(Source, each [Country] = "USA")
Cell Reference Map
    A          B          C
1 CustomerID   Name      Country
2 101         Alice      USA  <-- included
3 102         Bob       Canada
4 103         Charlie    USA  <-- included
The formula references the 'Country' column in the source table to filter rows where Country is 'USA'. Rows 2 and 4 meet this condition.
Result
    A          B          C
1 CustomerID   Name      Country
2 101         Alice      USA
3 103         Charlie    USA
The resulting table after applying the filter shows only customers from the USA.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula Table.SelectRows(Source, each [Country] = "USA") do?
AAdds a new column named USA
BDeletes rows where Country is USA
CKeeps only rows where Country is USA
DSorts the table by Country
Key Result
Table.SelectRows filters a table by keeping rows that meet a condition.