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

Power Query filter based on other lines' value

Hello there, 

 

I've been struggling finding how I could filter one column (or marked the lines that I'm interested in) depending on lines' value

with Power Query. 

 

First, some context :

I have a .xlsx file on which there are quotes we send to our client. Each quote has a number. Every time we change it because the client wants other things on the quote, that creates a new line with the same number but with another version. 

 

Example :

First drawing : the number of the quote is 1234 and its version is 1. If there is a modification, I would have another line with the same number of quote (1234) but the version would be 2. And so on. 

 

Here is an impression of the .pbix I linked with this publication : 

enzomanfredi_0-1617355796960.png

My problem is that I don't care if the quote is in the version 1,2 or 3. What I simply want is to have the latest version of my quote i.e : 

- If the latest version of the quote is 5, I don't want the versions 1,2,3 and 4 

- If the latest version of the quote is 1, I want it ofc 🙂

 

I've been trying to find one way to mark the latest version of one quote but I don't know if I can do it with Power Query and which tools would help me acheive it. 

 

Would you be so kind to help me with this please ? 🙂 

Have a good day you all 🙂

 

Enzo

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

You can do a 'Group By' using 1st column and choose MAX for the version.

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

You can do a 'Group By' using 1st column and choose MAX for the version.

Anonymous
Not applicable

Oh my ! Genius ! Thank you so much for your quick response, it's working perfectly 😍

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.