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
Alferd2727
New Member

Using slicer to get other table information

Can anyone teach me how to use slicer feature that get from current table to get the information from other table?  I required when I choose the Customer that from Table 1 in slicer, the Total Item Amount from relevant customer will shown up. I already created many to many relationship between the Customer of both table.

 

Table 1 data column : Customer ; Purchase Amount

Table 2 data column : Customer ; Item Amount

 

Thank you for advance.

1 ACCEPTED SOLUTION
Rejaul_Royel
Regular Visitor

Hay @Alferd2727 

You want to filter "Purchase Amount" and"Item Amount" with the help of "Customer" and join these two tables with many to many relationships.

This idea is not appropriate. There will be some problems, for example,

  • Few customer could not be available in the both tables
  • Same customer could be available multiple times

So, the best solution is go to power query editor and do these steps. 

  1. append both tables and its out fact tables, follow this link to do  append queries
  2. Create a duplicated copy of the queries and keep only customer column, finally  rename it dim_customer. 
  3. Remove all duplicated records from dim_customer. 
  4. Now, save and close power query editor and go to model view to join dim_customer[Customer] with fact[Customer]. Relationship type is one to many. 
  5. Now, you can use Customer from dim_customer table to get the best result.

Remember, power bi works best with one to many or many to one and filter data will flow from the direction arrow, in this case our join type is single so, data will always flow from dim_customer to fact table. 


If i answer your questions, please accept it. 

Thanks

View solution in original post

1 REPLY 1
Rejaul_Royel
Regular Visitor

Hay @Alferd2727 

You want to filter "Purchase Amount" and"Item Amount" with the help of "Customer" and join these two tables with many to many relationships.

This idea is not appropriate. There will be some problems, for example,

  • Few customer could not be available in the both tables
  • Same customer could be available multiple times

So, the best solution is go to power query editor and do these steps. 

  1. append both tables and its out fact tables, follow this link to do  append queries
  2. Create a duplicated copy of the queries and keep only customer column, finally  rename it dim_customer. 
  3. Remove all duplicated records from dim_customer. 
  4. Now, save and close power query editor and go to model view to join dim_customer[Customer] with fact[Customer]. Relationship type is one to many. 
  5. Now, you can use Customer from dim_customer table to get the best result.

Remember, power bi works best with one to many or many to one and filter data will flow from the direction arrow, in this case our join type is single so, data will always flow from dim_customer to fact table. 


If i answer your questions, please accept it. 

Thanks

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.