Forum Discussion

parry2k's avatar
parry2k
Icon for Super User rankSuper User
8 years ago
Solved

how to create table Summarizecolumns keep filter context

Hi there, 

 

I have a table with following 3 columns and there is a slicer on date and I'm trying to create a calculated table with keeping current filter context from date slicer:


column in my table : Category, date, amount

 

This is the command I'm trying for calculated table:

 

Table3 Is Zero = 
 SUMMARIZECOLUMNS(Table3[Category],Filter(Table3,Table3[Amount]=0), "IsData",CountRows(Table3))

 

What I'm getting in summary table for all the rows from table3 not what is selected on date slicer, how I can keep the filter context from table3.

  • parry2k

     

    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)

     

7 Replies

      • Vvelarde's avatar
        Vvelarde
        Icon for Community Champion rankCommunity Champion

        parry2k

         

        Hi, i think that is not possible because Datasource & New Tables (From Dax)  is loaded to the data Model and don't be interactive with visuals or measures.

         

        Regards

         

        Victor