Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report: drill down & aggregation also for external data sources #365

Closed
vermeeren opened this issue Aug 4, 2023 · 3 comments
Closed

Report: drill down & aggregation also for external data sources #365

vermeeren opened this issue Aug 4, 2023 · 3 comments
Assignees
Labels
enhancement Feature request pending release part of the next release version
Milestone

Comments

@vermeeren
Copy link

Hi @Rello,

I've been fiddling with Analytics recently and must say I'm really impressed with how smooth it works and the integration with real-time data pickable from Nextcloud is very nice to work with. Thanks a lot for creating this!

What I haven't been able to find, or perhaps it is not possible, is the ability to list the total/sum of all entries in the table. For example on the built-in demo analytics downloads, how to determine the sum of all downloads across all versions?

My use case is using Nextcloud Tables and having for example a simple list of keys and numbers (some form of statistics). It would be great if Analytics could show the sum of all entries per current filter/drilldown configuration. In other words, a total/sum of the individual entries, filtered to exactly the same as shown in the listing below the graphs in the table view.

Thanks

@Rello
Copy link
Owner

Rello commented Aug 14, 2023

hello @vermeeren
here is the challenge: totals/calculations are only possible during internally stored data at the moment.
e.g. if you use the demo finance report and remove the year drilldown, it will show the totals. its because the data is coming form the database and the selects can easily create the totals during the select.

for realtime data sources, data would need to be aggregated with an expensive transaction, depending on the amount of data. I will have a look if I find a usable way...

@Rello
Copy link
Owner

Rello commented Aug 15, 2023

Hi,
I added the drilldown/aggregation feature to external datasources - same as with internal data.
the data is aggregated to whatever is being displayed. if columns are removed, the data is recalculated.
hope this helps...

Bildschirmfoto 2023-08-15 um 23 54 40 Bildschirmfoto 2023-08-15 um 23 55 02 Bildschirmfoto 2023-08-16 um 00 00 12

@Rello Rello self-assigned this Aug 15, 2023
@Rello Rello added enhancement Feature request testing development finished; in testing labels Aug 15, 2023
@Rello Rello added this to the 4.10.0 milestone Aug 15, 2023
@Rello Rello changed the title Possibilities to show the total/sum of all entries Report: drill down & aggregation also for external data sources Aug 15, 2023
@Rello Rello added pending release part of the next release version and removed testing development finished; in testing labels Aug 16, 2023
@vermeeren
Copy link
Author

@Rello Perfect, thanks a lot! During experimentation I was actually confused why the drilldown wasn't showing properly and this explains why as well. Really appreciate the quick fix, getting totals this way is something I'm very happy with.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request pending release part of the next release version
Projects
None yet
Development

No branches or pull requests

2 participants