Discussion Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have two groups in my report. Group 1 defines the group names (group a, group b, etc.) Group 2 defines stratums within the group (Group a stratum 1). I have manual running totals in each group. I need to create a formula that references the running totals in both groups and calculates a percentage that displays in the footer of Group A. Example: (RunningTotal Group A -RunningTotal Group B)/RunningTotal Group A. When I try this calcuation either 0 or the last value in the running total is displayed. How do I get around this?
3 replies
by lilangel369
I'm having the same problem. Did you find a solution for this?
by ehall
I did find a solution. I created a subreport that stores the running total for one of the groups in a shared variable. In the main report, I reference the variable in a formula to calculate the percentage between both report groups.
by dr dij
In some cases you don't even need subreports as xtal allows you to put subtotals ahead of group, etc. when xtal parses report, if there are any needing to be subtotaled ahead it makes an extra pass to calculte these totals 1st.
subreports can be slow if using another data source, but they are slick. xtal can't read two databases in one report. but add a subreport and you could have an external access table you read with key from your companies erp system for example.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies
Discussion Locked
Best Ways to Improve Website Visibility
0 helpful
5 replies