Quantcast
Channel: FLEXquarters.com Limited
Viewing all articles
Browse latest Browse all 313

Troubleshooting - How do I remove subtotals and blank lines in sp...

$
0
0

Troubleshooting - How do I remove subtotals and blank lines in sp_report

Problem Description:

I'm trying to link a general ledger report in Excel. I've created the sp_report SQL query in Microsoft Query just fine, but the data that it returns contains subtotals and blank lines. I know that I can write script/filter in Excel to eliminate these lines but I can't figure out what parameters to use to do it using QODBC?



 

Solution:

In QODBC, You can remove subtotals and blank lines in sp_report by adding below condition.

where RowType='DataRow'

For example:

sp_report ProfitAndLossDetail show TxnType, Date, RefNumber, Name, Memo, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance parameters DateMacro = 'ThisYearToDate' where RowType='DataRow'




Viewing all articles
Browse latest Browse all 313

Trending Articles