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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.