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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dario_87
Regular Visitor

Filter tables based on two columns in DirectQuery

Hi,

I'm designing a report in DirectQuery with this Tables:Schermata 2018-02-21 alle 11.25.29.png

 

 

The table ReportScores is the main, linked with Scores and CustomerDetails using "Partita Iva" (Vat Number) as a key.

All of these three tables could be updated with new rows ("Data Aggiornamento" as updating date).

 

My goal is to link correctly these tables using both "Partita Iva" and "Data Aggiornamento Modello".

If I would filter ReportScores by a date, for example 01 - March, I need that the report upload data from Scores and CustomerDetails where Scores.DataAggiornamento is the 1st <= ReportScores.DataAggiornamentoModello and where CustomerDetails.DataAggiornamento is the 1st <= ReportScores.DataAggiornamentoModello.

 

Remember that my customer want only DirectQuery mode.

 

Thank you for supporting.

1 REPLY 1
Dario_87
Regular Visitor

Sorry,

CustomerDatails must provide only the last updated row (for each vat number).

 

This because the possible relationships must be one:many, one:one or many:one

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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