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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Filter Table visual by Inactive Date relationship

I have a Line Chart which plots calculated measures from a Production Jobs table against 'Date'[Datevalue], where I've calculated the measures to plot on the Datevalue based on the job Created date. 

 

When I selected a date on that Line Chart visual I want to drive those dates as a filter to Table visual of the Production Jobs table info, however the active relationship between Date and ProdJobs is Datevalue-to-OpEndDate. So below I selected February 2021, and the table is filtered by OpEndDate February 2021, I want it to filter Created.

 

I've tried editing the Interaction to Off and using a custome measure:

IfFiltered = CALCULATE(IF(ISFILTERED(Date[Datevalue]),1,0),ALLSELECTED(Date[Datevalue]),USERELATIONSHIP(Date[Datevalue],ProdJobs[Created]))

and applying this to the Table visual filters, where IfFiltered is 1. This did not work however. 

 

Any help would be appreciated.  I CANNOT add a column, I'm working off a published dataset. 

 

 

161462cc_0-1631281672206.png

161462cc_1-1631281773046.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Figured it out. 

 

I created a measure on the ProdJobs table

CalcCreated = Calculate(MAXX(ProdJobs,ProdJobs[Created]),ALLSELECTED('Date'[Datevalue]),USERELATIONSHIP('Date'[Datevalue],ProdJobs[Created]))

 

In the Table visual I used this calculated measure for the Created date, and left the interactions between the two visuals ON. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Figured it out. 

 

I created a measure on the ProdJobs table

CalcCreated = Calculate(MAXX(ProdJobs,ProdJobs[Created]),ALLSELECTED('Date'[Datevalue]),USERELATIONSHIP('Date'[Datevalue],ProdJobs[Created]))

 

In the Table visual I used this calculated measure for the Created date, and left the interactions between the two visuals ON. 

amitchandak
Super User
Super User

@Anonymous , if interaction is off , then you will not get that value in measure to do calculation

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

I tried it both ways, on and off, didn't work either way 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.