-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Display a new row "Total" showing the sum of values for all DataTable columns #5267
Comments
+1 for disabling it by default Perhaps we can also make it a global setting in Settings/Manage/User settings for users convenience. Another idea - after turning totals on for the first time for specific widget, we can ask user if he wants to display it for all tables (and where to disable it if he changes his mind). What do you think? |
@rivadav Good ideas and suggestions! I moved ticket to Short term. |
fyi: looking into report totals calculator this currently only works for a few defined metrics that can be easily summed. It doesn't work for avg, min, max, or any processed metric etc. This won't be too easy to develop. You'd think using but even this won't work in all cases. Eg many filters and processors wouldn't be applied, depending on the report you may even need to apply the queued filters first or later after summing all rows etc. Also it wouldn't process any processed metrics. for many reports it would likely work just like that but not for all and not in all cases depending on which features are used. There may be a way by not using I can create a simple PR for it and maybe someone can have a look to see if the data is mostly correct? Note: Because it calculates totals also for averages, it will show on hover percentage values for pretty much all columns now. This would be fixed and removed so they only appear on those columns as defined before. The grey percentage values can only be calculated for values that can be summed. Todo: It would also need lots of extra code in the visualization to not activate things like Row evolution etc. If the solution was built properly by doing this in archive creation as suggested, things like Row evolution would work for this likely. But it would also turn it into MANY days of work. Note: Would need to be tested how this affects performance. |
This solution sounds good. Also for tables that have sub-tables, then the only way to get totals across all sub-tables is to process them at archiving times as you explain here? So moving this out of 3.7.0 for now as it's a bit too complicated maybe? |
Nope, I meant it needs to fetch the dataTable that is being fetched in ReportsTotalsCalculator directly during |
Implemented feature in #13555 FYI: I didn't add a global setting to enable/disable it and neither ask on activation whether to enable it for all reports. That would be a new generic feature. Also you would kind of need to ask when disabling it for one report, whether to disable it for all reports otherwise you need to manually disable it everywhere etc. |
Should be all done 👍 |
Since #57 we process in Metadata Reports, a new
<reportTotal>
For example in this metadata api output
For Actions.getPageUrl here is the total (source code):
The goal of this issue is to:
Feel free to add your feedback as a comment here!
The text was updated successfully, but these errors were encountered: