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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
irnm8dn
Post Prodigy
Post Prodigy

Relationship Between 2 Tables - Slicer Management - Please Help!!!

I have two sets of data that have a relationship, joined by Customer ID.  Because of the nature of how the data is sent to me, I would like to only show the data where records have a match.  That is to say that the slicers only show the data of the records where the Customer ID is represented in both tables.

 

i.e. If I wanted to select the "State" from a slicer, the only states that would show would be those where a Customer ID is present in both tables...not a representation of all 50 states.

 

The actual visualizations work correctly, it is the slicers I am trying to limit.

 

Any suggestions?

1 ACCEPTED SOLUTION

Hi @irnm8dn,

 

Please check the formula as below to work on it.

 

Column = var rsult =LOOKUPVALUE(TableB[Customer ID],TableB[Customer ID],'Table A'[Customer ID])
return 
IF(ISBLANK(rsult),FALSE(),TRUE())

Capture.PNG

Also please find the file attached.

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi


Cretae a column to show the states for the matching records as shown below and create a slicer based on this column.

 

Slicer State = IF ( Table1[CustomerID]=Table2[CustomerID], Table1[State])

 

Thanks
Raj

@Anonymous


Can you help me define the State with a DAX Statement.

 

Something to the effect:

 

If Customer ID in Table A is found in Customer ID in Table B then True, else False

 

** Table A has a unique instance of Customer IDs, Table B has repeating instances of Customer ID.

 

Thanks.

Hi @irnm8dn,

 

Please check the formula as below to work on it.

 

Column = var rsult =LOOKUPVALUE(TableB[Customer ID],TableB[Customer ID],'Table A'[Customer ID])
return 
IF(ISBLANK(rsult),FALSE(),TRUE())

Capture.PNG

Also please find the file attached.

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @irnm8dn,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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