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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors