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
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
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.