Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
anwarbi
Helper III
Helper III

Filter Table using slicer

Hi,
 
I am trying to filter a data table using the below Dax, where i am filtering the table by manually entering the Company name "ABC", I am getting the desired table output.
 
Can I make this dax dynamic by using a slicer to select the company name, instead of manually entering- ABC in this case.
 
Filtered table = SUMMARIZE(FILTER('Data-2024','Data-2024'[Company]="ABC"),'Data-2024'[Country],'Data-2024'[Company],'Data-2024'[Product],'Data-2024'[Sales])
 
Regards,
Anwar
1 ACCEPTED SOLUTION
belvoir99
Resolver III
Resolver III

SUMMARIZE is a function to group the data, reducing the amount of data in the rows and using aggregate functions to summarize some columns. You can filter out data as you have found, although CALCULATE is the best method for filtering data in a measure.

 

Alternatively if you want to slice on the grouped table you should create a Calculated Table (Modeling > New Table) e.g.

SUMMARIZECOLUMNS(
	'Data-2024'[Country],
	'Data-2024'[Company],
	'Data-2024'[Product],
	"Total Sales", SUM('Data-2024'[Sales])
)
  

 

For the slicer, just select select the slicer visual and drop the Company column onto the visual.

 

If you use the Table visual, then you might find that you get the desired result by just dragging columns from 'Data-2024' table onto the visual, with the Sales column being the last one. The latter will create a implicit measure and sum the sales for each country x company x product. You don't then need the summary table per above.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @anwarbi ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

belvoir99
Resolver III
Resolver III

SUMMARIZE is a function to group the data, reducing the amount of data in the rows and using aggregate functions to summarize some columns. You can filter out data as you have found, although CALCULATE is the best method for filtering data in a measure.

 

Alternatively if you want to slice on the grouped table you should create a Calculated Table (Modeling > New Table) e.g.

SUMMARIZECOLUMNS(
	'Data-2024'[Country],
	'Data-2024'[Company],
	'Data-2024'[Product],
	"Total Sales", SUM('Data-2024'[Sales])
)
  

 

For the slicer, just select select the slicer visual and drop the Company column onto the visual.

 

If you use the Table visual, then you might find that you get the desired result by just dragging columns from 'Data-2024' table onto the visual, with the Sales column being the last one. The latter will create a implicit measure and sum the sales for each country x company x product. You don't then need the summary table per above.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.