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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors