Forum Discussion
sukram1
3 years agoFrequent Visitor
Table as Filter in CALCULATE
Hello, first of all: the introduction takes a little longer, because I have to explain why we do what. We need to create a report at our company that needs to show 3 values each for multiple distri...
- 3 years ago
You could try something like
Distribution channel 1 total = VAR FilterTable = CALCULATETABLE ( SUMMARIZE ( 'Filter table', 'Filter table'[distribution channel], 'Filter table'[segment], 'Filter table'[product] ), 'Filter table'[id] = 1 ) VAR Result = CALCULATE ( [Sum], TREATAS ( FilterTable, 'Table'[distribution channel], 'Table'[segment], 'Table'[product] ) ) RETURN Result
johnt75
Super User
3 years agoYou could try something like
Distribution channel 1 total =
VAR FilterTable =
CALCULATETABLE (
SUMMARIZE (
'Filter table',
'Filter table'[distribution channel],
'Filter table'[segment],
'Filter table'[product]
),
'Filter table'[id] = 1
)
VAR Result =
CALCULATE (
[Sum],
TREATAS (
FilterTable,
'Table'[distribution channel],
'Table'[segment],
'Table'[product]
)
)
RETURN
Result