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

I have two tables which have the same id column. I need to add a slicer in to filter, How?

I have two tables which have the same id column.

I need to add a slicer to drill down on sales per salesperson.

I do not know where to start, and what my dax formula should ook like.

In sql. it would be an inner join I suppose. How to handle this problem from the start? And what would the syntax look like?

1 ACCEPTED SOLUTION
v-kongfanf-msft
Community Support
Community Support

Hi @PowerNewbee ,

 

According to your description, you can establish the relationship between the two tables based on the ID, and then create the following MEASURE to get the sales corresponding to the salesman by filtering.

vkongfanfmsft_0-1713858956097.png

result_ = 
CALCULATE (
    SUM ( Table_[Sold] ),
    FILTER ( 'Table', 'Table'[Saler] = SELECTEDVALUE ( 'Table'[Saler] ) )
)

vkongfanfmsft_1-1713858978390.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
v-kongfanf-msft
Community Support
Community Support

Hi @PowerNewbee ,

 

According to your description, you can establish the relationship between the two tables based on the ID, and then create the following MEASURE to get the sales corresponding to the salesman by filtering.

vkongfanfmsft_0-1713858956097.png

result_ = 
CALCULATE (
    SUM ( Table_[Sold] ),
    FILTER ( 'Table', 'Table'[Saler] = SELECTEDVALUE ( 'Table'[Saler] ) )
)

vkongfanfmsft_1-1713858978390.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

qqqqqwwwweeerrr
Super User
Super User

Hi @PowerNewbee 

 

you can join tab;e based on ID column to acive this you can follow instruction in this article: https://www.c-sharpcorner.com/article/merge-two-tables-in-power-bi/

 

Drag ID from one of the table to another one the replation will be establised and you are done 
then ho dashboard, depending on reuiqrement you can create view say add sales person in slcier and in table add sales you view is ready

 

If you still have confusion, please sample data here that might help to look into problem statment more clearity 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

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!

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.