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
Anonymous
Not applicable

REMOVE rows that have the same text in column one and balance to zero in column 2

I have a report Im attempting to create for several of our internal accounts.

I only need the information that does not have a balancing entry also entered.

One of these accounts is an invoiced not received account, and the other is a work in progress.

Screenshot 2024-09-24 095123.png

 The first 2 lines need to bo deleted in this example.

The first column is the voucher text, if it matches AND the next column has a positive and negative matching amount both lines need to be gone.

We only want to see the ones with out an outbound entry.

 

I am extramly new to Power Bi, I do not know dax or m (neither does my co-worker) So we are both stuck.

Any help would be greatly appreciated (especially if it takes into account this is the first report I am writing and assumes im like a toddler 😅).

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

Here is one way to do this.

In Power Query (M) we will group by Voucher Text, sum the Amount for each group and then filter out groups that have a zero sum.

As an example table...

jgeddes_0-1727187604222.png

Select the 'Voucher Text' column and select 'Group By' from the Home ribbon.

Select Advanced grouping and create the columns as below...

jgeddes_1-1727187698064.png

Clicking 'OK' you will get a table like...

jgeddes_2-1727187752784.png

Filter the 'Group Sum' column to exclude zero values.

jgeddes_3-1727187797447.png

Now expand the table in the 'All Rows' column.

Deselect the 'Voucher Text' column as you already have it and deselect the 'Use original column name...' as you do not need it.

jgeddes_4-1727187903332.png

You should now have a table without offsetting entries.

jgeddes_5-1727187949031.png

You can delete the 'Group Sum' column as it is no longer needed.

 

Hope this points you in the right direction.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
jgeddes
Super User
Super User

Here is one way to do this.

In Power Query (M) we will group by Voucher Text, sum the Amount for each group and then filter out groups that have a zero sum.

As an example table...

jgeddes_0-1727187604222.png

Select the 'Voucher Text' column and select 'Group By' from the Home ribbon.

Select Advanced grouping and create the columns as below...

jgeddes_1-1727187698064.png

Clicking 'OK' you will get a table like...

jgeddes_2-1727187752784.png

Filter the 'Group Sum' column to exclude zero values.

jgeddes_3-1727187797447.png

Now expand the table in the 'All Rows' column.

Deselect the 'Voucher Text' column as you already have it and deselect the 'Use original column name...' as you do not need it.

jgeddes_4-1727187903332.png

You should now have a table without offsetting entries.

jgeddes_5-1727187949031.png

You can delete the 'Group Sum' column as it is no longer needed.

 

Hope this points you in the right direction.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

I have come back to this time and time again. This is well explained and easy to follow. My most recent questions have been hard to get step by step answers, this one just makes me smile.

 

I have used this on at least 7 different reports, as many of the reports in our system are incorrect, and none come in anything other than PDF.

Anonymous
Not applicable

Thank you so much!

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.