Forum Discussion
how to create table Summarizecolumns keep filter context
- 8 years ago
If you use that function inside a measure the answer is YES. But if want to use to create a new table (Like Summarize or CalculateTable) is not possible.
The calculated table is preprocessed before use slicer visual to filter data. So we are not able to use the checked slicer value in the calculated table. (v-qiuyu-MSFT)
Interesting. Good to know. I thought there is a way to keep filter context when creating calculate/summarizae table.
parry2k Had a similar issue and found a solution by creating a measure within my summary table that changed its value based on the sum of the rows. For example, I have a table like this for a household survey:
| Row | Category |
| 1 | Has internet |
| 2 | Has telephone |
| 3 | Has computer |
| 4 | Has washer |
| 5 | Has car |
Then a measure within the same table table that looks something this:
IF(SUM(ROW)=1,[SUMX expression to summarize households with internet],IF(SUM(ROW)=2,[SUMX expression to summarize households with telephone] etc.
Then I can create any graphic where I plot my measure against the column "Category", and the measure will adjust dynamically to any filters applied.
This is a very basic explanation, but can post a more complete example if that would be helpful.