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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
yashwant101
Helper III
Helper III

Cross Filtering Based on Only One Column of a Table Visual

Hi all,

 

I have 2 table visuals. Both the tables have same columns. Both have a unique key and data associated to them. In the first table we have just the latest record for the unique key and the second one has historical values for each key. The requirement is that when I click on a row in the first table, the secon one shiuld show the historical values of that key. Right now it is filtering based on all columns and I am getting the latest row in blow table as well, where I want the complete history. 

 

For now I have duplicated the table in data modeling, created a relationship between the tables on unique key and used them. Is there any othr way to achieve this?

 

Regards,

Yashwant

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @yashwant101 ,

Below is my table1 :

vxiandatmsft_0-1721724444005.png

Below is my table2 :

vxiandatmsft_1-1721724444007.png

You can create a measure:

Measure = 
VAR _a = SELECTEDVALUE('Table (2)'[ID])
RETURN
IF(SELECTEDVALUE('Table'[ID]) = _a  , 1 , 0)

And then you can apply this measure to table2:

vxiandatmsft_2-1721724466812.png

Then the final output is shown in the following figure:

vxiandatmsft_3-1721724477225.png

Best Regards,

Xianda Tang

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
Anonymous
Not applicable

Hi @yashwant101 ,

Below is my table1 :

vxiandatmsft_0-1721724444005.png

Below is my table2 :

vxiandatmsft_1-1721724444007.png

You can create a measure:

Measure = 
VAR _a = SELECTEDVALUE('Table (2)'[ID])
RETURN
IF(SELECTEDVALUE('Table'[ID]) = _a  , 1 , 0)

And then you can apply this measure to table2:

vxiandatmsft_2-1721724466812.png

Then the final output is shown in the following figure:

vxiandatmsft_3-1721724477225.png

Best Regards,

Xianda Tang

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

danextian
Super User
Super User

Hi @yashwant101 ,

 

As always, please provide sample data and your expected result from that in a workable format like an Excel file in the cloud. Please refer to this sticky post on how to your questions answered quickly - https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/td-p/144... 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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