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
Santoshepuru
Frequent Visitor

Display based on slicer

Hi! I have information of 15 products. Each product can be compared to a few products in the list and not with all products..so what I need is if I select a product from slicer I need to have a bar chart which has only products which it can be compared to. Help me with this. I am new to power bi and dax. Thanks in advance.

1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hi:

When you set up your model(or table), your products table will want to have a field that shows which products can be joined together. Like assigning a category or brand for each product. Something like below shows how Power BI wil be able to pick up and report on related products. E.g., if product A is chosen than products D & F will be able to be compared in a visual or table/matrix.

 

I hope this answers your question. Thanks..

 

ProductGrouping_IDOther InfoOther Info
A1  
B2  
C3  
D1  
E3  
F1  
G3  

View solution in original post

3 REPLIES 3
Santoshepuru
Frequent Visitor

Thanks for the reply. How to get a bar chart once i have the grouping. 

You would have other tables, like a fact table with the products and perhaps sales amounts, dates, etc.  I will attach a data model so you can see the idea more clearly. Once yor model is set up it's very easy to make bar chart.

You click the chart style you like(Top Right of Canvas)  and put fields in the fields well(Dates and Price) . I will put image here to show.

Whitewater100_0-1653406086690.png

 

I hope this is a solution for you..

 

 

Link for example model:

https://drive.google.com/file/d/1QgEO4YwQQh2lqtXk1hnwQYVBuv6BbKcS/view?usp=sharing 

Whitewater100
Solution Sage
Solution Sage

Hi:

When you set up your model(or table), your products table will want to have a field that shows which products can be joined together. Like assigning a category or brand for each product. Something like below shows how Power BI wil be able to pick up and report on related products. E.g., if product A is chosen than products D & F will be able to be compared in a visual or table/matrix.

 

I hope this answers your question. Thanks..

 

ProductGrouping_IDOther InfoOther Info
A1  
B2  
C3  
D1  
E3  
F1  
G3  

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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