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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.