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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Tom8558
Regular Visitor

Transform Excel Formula to Power Query

Excel Formula.jpg

I would like to implement the solution above in Power Query from Power BI.
In the end, I want only the data to be loaded that has the value "FALSE" in the "Remove" field. This field is not in the original table.
Thanks in advance

Tom

1 ACCEPTED SOLUTION
tharunkumarRTK
Super User
Super User

@Tom8558 

I have taken a data sample and transformed the excel formula to m-code 

Screenshot 2024-07-27 at 10.35.29 PM.png

Table.AddColumn(#"Changed Type", "Remove Filed", each let
__A = [A],
__B = [B],
__FilterB = Table.SelectRows(#"Changed Type", each [B] = __B)[A],
__MaxValue = List.Max(__FilterB)
in 
[A] < __MaxValue)

You can find the file here: Link

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



 

View solution in original post

1 REPLY 1
tharunkumarRTK
Super User
Super User

@Tom8558 

I have taken a data sample and transformed the excel formula to m-code 

Screenshot 2024-07-27 at 10.35.29 PM.png

Table.AddColumn(#"Changed Type", "Remove Filed", each let
__A = [A],
__B = [B],
__FilterB = Table.SelectRows(#"Changed Type", each [B] = __B)[A],
__MaxValue = List.Max(__FilterB)
in 
[A] < __MaxValue)

You can find the file here: Link

 



Need Power BI consultation, hire me on UpWork .


If the post helps please give a thumbs up



If it solves your issue, please accept it as the solution to help the other members find it more quickly.




Tharun



 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.