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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FIRESS
Frequent Visitor

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!





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.

Thank you so much!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.