cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

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.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





1 ACCEPTED SOLUTION

Accepted Solutions
Vvelarde Super Contributor
Super Contributor

Re: how to create table Summarizecolumns keep filter context

@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)

 




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




View solution in original post

6 REPLIES 6
Super User
Super User

Re: how to create table Summarizecolumns keep filter context

Any suggestion, or alternate solution  for this.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Super User
Super User

Re: how to create table Summarizecolumns keep filter context

Any help here.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Vvelarde Super Contributor
Super Contributor

Re: how to create table Summarizecolumns keep filter context

@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




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




Super User
Super User

Re: how to create table Summarizecolumns keep filter context

Thanks @Vvelarde

 

The basic question here is if a calculated table can be created from already filter applied to the source table from slicers?

 

Assume, a table has data for each day Jan 1 to Dec 31, and date slicer is selcted Mar 1 - Mar 31, can DAX create create calcualted table for that date range selected by slicer.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Vvelarde Super Contributor
Super Contributor

Re: how to create table Summarizecolumns keep filter context

@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)

 




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




View solution in original post

Super User
Super User

Re: how to create table Summarizecolumns keep filter context

Interesting. Good to know. I thought there is a way to keep filter context when creating calculate/summarizae table.






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 46 members 994 guests
Please welcome our newest community members: