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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
NeilJustice
Frequent Visitor

remove rows in a table based on a condition.

 

I have a table imported into power BI (sample below) i want to be able to filter either the table or when i create a visual that will only show me the row with the highest Transaction Id, in this example it would be the first rows. I do not want to see the other rows as the total invoice amount is the same. In esscence it is the same transaction but has gone through a series of workflows, so i only want to see the one with the higher Transaction Id, all transaction ids are a unique number. The table has thousands of lines with multiple invoice Ids the same or just one line, any ideas how i can resolve this. sorry but it wont let me upload the xls table 

 

 

NeilJustice_0-1696778184140.png

 

 

 

 

 

 

DateAccount noInvoice idTransaction idinvoice numberdepartmentcost centre nocost centre descriptionsupplier namesupplier site codeinvoice header descriptiontotal invoice amounttransaction typepo numberaccount code description
3/4/2023522410206410499873610499873641AB12345DP110254000WFLCA Supplier LTDABC123Desc3,991.37Non-PO Other fees

3/4/2023

522410206410499873610499873631AB12345DP110254000WFLCA Supplier LTDABC123Desc3,991.37Non-PO 

Other fees

3/4/2023

522410001110499873610499873611AB12345DP110254000WFLCA Supplier LTDABC123Another description3991.37Non-PO 

Pending Allocation

1 REPLY 1
Dangar332
Super User
Super User

Hi, @NeilJustice 

You can try to make new table 

Addcolumn ('yourtable',"hightranid", calculate (maxx ( filter ('yourtable','yourtable'[Invoice id]), 'yourtable'[Transaction id])))

 

You can make new measure which use instead of transaction Id column 

 

New measure= 

maxx ( filter ('yourtable','yourtable'[Invoice id]), 'yourtable'[Transaction id])

 

 

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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