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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
martijnth
Helper II
Helper II

Direct Query and Excel (import) filter/retrieve

Dear Reader,

trying to build Direct Query report since it can refresh automatically. Now I have one Direct SQL and an Excel file. In the SQL i have 2 collumns ' Equipement'  and ' Produced on' in the Excel I have one (linked collumn, many to one) 'names'. 

 

First I want to filter in Equipement from 1to 10 then find the last product from this machine (maxx(produced on)) and return the name from excel (related) to this last build. I've tried literaly everyting with lookup and calculate but not make any progress, all help is appreciated.

reg martijn

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@martijnth,

 

You may try the TOPN Function.

https://community.powerbi.com/t5/Desktop/Card-Help/td-p/514770

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@martijnth,

 

You may try the TOPN Function.

https://community.powerbi.com/t5/Desktop/Card-Help/td-p/514770

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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