Remove Total rows from Quickbooks report

abalserv

New Member
Joined
Oct 25, 2013
Messages
30
hi Folks
Been playing around with Power Query and I'm experimenting with a QuickBooks file. I've got as far as loading it into PowerQuery, filling down names but now what I want to do is remove every row that has a prefix Total (as when I pull it from the QuickBooks file, it gives me headings per customer and a total per customer (which I can remove using native Excel tools) but now how can I set this up so that when I run it again..it will do the following..
1. Remove the first occurrence of a name (this is the customer name in Quickbooks - it has no data beside it)
2. Remove the occurrence of a name with Total beside it e.g. Total Alex Blakey.

So that when this query is run again, it will do all this automatically. Thank you :-)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Presuming that the table has a column that is also blank on those rows, such as Date, you could create a measure and show this instead of showing the table value field

Code:
=IF( COUNTROWS( FILTER( Sales, Sales[Date] ) ),
    SUM( Sales[Sales] )
)
 
Upvote 0
Sorry, I totally misread that. In Power Query, again assuming that you have a date which is blank for those rows you don't want, simply filter the date column and unselect the null value.
 
Upvote 0

Forum statistics

Threads
1,224,091
Messages
6,176,294
Members
452,719
Latest member
Boonchai Charoenek

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top