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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.