Does this help? These examples show output in summary mode. You can see I am sorting and grouping by trx date, table, recordid & account. The expected output shows I only get an account group total when the account changes. Instead, I would expect to see an account group total every time the recordid group changes as well (like you would see in SQL):
Does this help? These examples show output in summary mode. You can see I am sorting and grouping by trx date, table, recordid & account. The expected output shows I only get an account group total when the account changes. Instead, I would expect to see an account group total every time the recordid group changes as well (like you would see in SQL):
On Monday, February 27, 2017 at 4:14:48 AM UTC-5, Carlos Antonio Ruiz Gómez wrote:Too little information.
El 27/02/17 a las 01:34, Andy Conn escribió:
I have been enjoying playing with Accounting Fact Details report and been experimenting with a variety of reporting summaries. We have a large number of transactions to sort through so it is best to view the reports in summary mode. But then, I noticed that "Group By" fields do not summarize unless that group field value changes. This is not like SQL which would summarize each group if it OR a higher level group changed.
Consider the scenario: I'd like to show a summary of accounting debits and credits transactions by trxdate, table, recordid & account. If this were SQL I'd say
select trxdate, table, recordid, account, sum(debit), sum(credit) from myrv_fact_act group by trxdate, table, recordid, account
This query would return exactly what I want. In contrast, the Accounting Fact Details will only show me account summaries when it changes - regardless of whether recordid or any other higher level group by fields change. Therefore, if I have a series of transactions with different trxdate, tables, recordids that all hit the same account, I don't see the account being hit.
Am I missing something? This seems like an obvious problem with reporting.
Thanks,Andy
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/19362941-0d44-42f4-91e8-23a2cfb31ade%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/1e290991-8078-4e6c-a8c6-adbf4a9df55e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/1e290991-8078-4e6c-a8c6-adbf4a9df55e%40googlegroups.com.
--Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimexCompany: Thanh Hoa Fishery Import - Export J.s.c (Hasuvimex) DL 47Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/80059ff5-8cbe-4114-9942-d347ac108a9f%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/80059ff5-8cbe-4114-9942-d347ac108a9f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/2dbdcc21-a035-4ea3-b920-a8896fd9b6f4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/2dbdcc21-a035-4ea3-b920-a8896fd9b6f4%40googlegroups.com.
Hi Andy
WITH regional_sales AS ( SELECT region, SUM(amount) AS total_sales FROM orders GROUP BY region ), top_regions AS ( SELECT region FROM regional_sales WHERE total_sales > (SELECT SUM(total_sales)/10 FROM regional_sales) ) SELECT region, product, SUM(quantity) AS product_units, SUM(amount) AS product_sales FROM orders WHERE region IN (SELECT region FROM top_regions) GROUP BY region, product;
--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/IElG9CIhG50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/f3290377-7c35-41e2-822a-8b1dd018fe6f%40googlegroups.com.