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

Filter table based on selected values from an unrelated table

I have two unrelated tables. I want to select values from one table, and then sum related values in that table. I then want to filter the second unrelated table using the sum, based on a formula comparison with a column in the second table.

 

Table 1:

PropertyValue
Red1
Orange2
Yellow3
Green4
Blue5
Indigo6
Violet7

 

Table 2:

NameValue
Fred24
Barney26
Wilma42
Betty17

 

So I want to be able to have a slicer of the Property values from Table 1. If I select Red and Blue, the sum of the related value is 6. I then want to filter Table 2 to show all names where the associated Value in Table 2 is a multiple of the sum of values in Table 1. In other words, I want to see Fred and Wilma, as 24 and 42 are multiples of 6 (the sum of 1 and 5 for Red and Blue).

 

I have the two parts working separately. I have created a measure to calculate the sum of selected values in Table 1's slicer. And I have created a calculated table to output a subset of Table 2, based on multiples. But I've only been able to do it by using hard-coded values in the calculated table. When I try to substitute the hard-coded value with the measure from Table 1, I get Table 2 returned entirely.

 

I'm not sure that calculated tables (via DAX) are the way to go. I've also tried adding a calculated column to Table 2. I'm not even sure if DAX is the appropriate way to solve this, which is why I've posted in this forum instead of DAX.

1 ACCEPTED SOLUTION
ms_steve
New Member

1 REPLY 1
ms_steve
New Member

I think I have found a solution by adapting the approach taken in this post: https://community.fabric.microsoft.com/t5/Desktop/Filtering-a-table-based-on-values-from-an-unrelate....

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.