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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
San_eve
Regular Visitor

Table Visual based on selected value from the slicer

Hi,

 

I have a table just like below table.

San_eve_0-1659941652034.png

 

I have a slicer for brand. When I select any brand on the slicer I should get the table visual based on the Brandtype.

 

Example:

 

If I select A in the slicer, I should get below output

San_eve_0-1659941880525.png

 

As A and C belong to same Brand Type. I am new to Power BI and unable to find a solution to it

 

Thanks for any help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@San_eve , Create an independent table with distinct brand 

 

brand = distinct(Table[brand])

 

then create a measure like

measure =

var _tab = summarize(filter(Table, Table[Brand] in values(brand[brand]) ), Table[brand_type])

return

calculate(Sum(Table[Sales]), filter(Table, Table[brand_type] in _tab))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
San_eve
Regular Visitor

Thank you very much!!! Sorry, I made you work a bit

amitchandak
Super User
Super User

@San_eve , Please find the attached file

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
San_eve
Regular Visitor

Thank you! I am getting errors in Summarize. Can you explain the logic here? Thanks again

@San_eve , Please share the error,

 

Based on independent we are getting brand, By passing those brand I and trying getting brand_type, The same brand type I am trying use to get amount

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
amitchandak
Super User
Super User

@San_eve , Create an independent table with distinct brand 

 

brand = distinct(Table[brand])

 

then create a measure like

measure =

var _tab = summarize(filter(Table, Table[Brand] in values(brand[brand]) ), Table[brand_type])

return

calculate(Sum(Table[Sales]), filter(Table, Table[brand_type] in _tab))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi Again! Is there a way to limit number of rows in table visual? My viusal is dynamic and for some brands the slide bar is appearing on the screen. Thanks for your help!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.