Free workspace dataset refresh max of 8 times a day
Premium workspace dataset refresh 48 times a day
Premium workspace dataset refresh 48 times a day
Power BI user roles: Admin, Member, Contributor
Column =
SWITCH (
TRUE (),
'Table'[Field1] = "AAA", "RETAIL",
'Table'[Field1] = "BBB", "ONLINE",
SEARCH ( "CCC", 'Table'[Field2], 1, 0 ) = 1, and 'Table'[Field1] like '%yyy%', "RETAIL",
'Table'[Field2] = "DDD", "RETAIL",
"UNKNOWN"
)

For the measure named Total Sales, calculate (=) the SUM of values in the [SalesAmount ] column in the Sales table.




| PARAMETER | ATTRIBUTES | DESCRIPTION |
|---|---|---|
| Expression |
The expression to be evaluated.
| |
| Filter | Optional Repeatable |
A boolean (True/False) expression or a table expression that defines a filter.
|
1
2
3
4
5
6
7
8
9
10
11
12
| CALCULATE ( <expression>, table[column] = 10)CALCULATE ( <expression>, FILTER ( ALL ( table[column] ), table[column] = 10 )) |