I'm using devexpress 12.1.5 version.
I need to add 2nd grand total column and row to my pivot grid.
1st grand total is ok. It counts total sum and i need 2nd grand total column and rows to show percentage of this values.
I tried to add another field with same values and only showed grand total values, but Previous field doesn't show. So, I think, I need to add 2nd grand total to original field.
From: Custom PivotGrid Grand total
You can use the PivotGridControl.CustomSummary event to
accomplish this task. Please refer to the How to provide custom
summary values for Total, Grand Total and ordinary cells example
demonstrating how to provide custom values only for Grand Total cells.
Refer these:
Custom Summaries
Grand Totals
PivotGrid and calculate Custom Grand total based on other Grand Total
Devexpress Pivotgrid: How to define custom summary
Related
Am using tryton 6.0.0,
In the table Lines ,I have create an invoice has two lines (the name of the account tax in both of them is "Umsatzsteuer – Normalsatz", one of them has a quantity positive and the other one has a negative value.
the story that after add a negative value in quantity field to one line, like in the screenshoot.
enter image description here
in the Tax Lines , there was 2 lines of taxes appear like in the screenshoot:
enter image description here
i want to know, why the second line appear in Tax Lines table in case i add a negative value of quantity in the Lines table???
PS: the second line from the table Tax Lines does not appear when i add a positive value of the quantity.
How i can fix that and why this thing happen if we add a negative value of quantity.
Thanks in advance.
This is the expected behaviour because tryton allows to set different account on taxes depending on the sign. As the tax lines are used to properly create the account moves the amounts are splited based on the sign.
I want to create a grouping and then print sum as per the design
Cognos report mock picture
I am able to do grouping of first two columns(when groups are present) but for totals column. I am unable to perform. Can anyone tell me the steps to group and display the output as the picture
Select the column you want to summarize and click the Sum -> Total option. This will create a total row for each group you have, and a single overall total at the bottom. You can delete any subtotal lines you do not want. If you click the Unlock button, you can edit the titles within the totals row.
I have a large grid and I need to add a count in the footer, to calculate count of non-nullable and not empty cells in column, but standart count aggregate gives only completed total count result. In custon templates I find ability only for using these completed aggregation functions (min, max, sum, count...). Is there any ideas how to count only filled cells in column and display result in footer of grid?
You can configure the columns.footerTemplate property as a function, and use some custom logic to count the non-null fields, then display it in the footer of the respective column, e.g.:
Example
If someone interests how I have solved it, I will answer in general.
I have created custom column in result's data (before binding it to grid) with values 1 or 0: 1 - if I want to count current row in result; 0 - if I don't. Then I have used sum aggregate function for this column instead count. And then I just only have not displayed this column in grid for users.
This approach gives ability to write your custom logic outside of kendo footer template, you just use count (in this case sum) for results of your custom logic.
All other approaches and solutions, which I've tried did not help.
I am using Devexpress XtraGrid Control, Here I can count the number of rows in footer of grid. but for this I need to set count property of SummeryItem in grid for at least one column. I dont want to do like this.
I want count number of rows in xtraGrid without referring any one column in grid. I just want to show number of rows count. when user will filter that rows, at that time count also need to be changed.
Is there any option to show this number in Group header panel?
I'd use BaseView.RowCount to get the row count and draw it within CustomDrawGroupPanel event.
You can use the customsummarycalculate event to count the number of rows currently shown in the filtered collection and display it in the summary area (generally, I put that text in the summary area of the ID field for the collection I'm using - as I never have a need to put anything else there).
I don't know if this is an update but:
int i = view.SelectedRowsCount;
I have to use DevExpress's Xtra Reports which is in a third-part app. I have a group header that displays 'State' but grouped by 'Sum(Payment_Amount)' in descending order of the total and not the name of the state (This is a requirement.).
Group Header: State
Detail: Each item in this State | Payment_Amount
Group Footer: Sum(Payment_Amount) for this State
Must sort the groups by the Sum(Payment_Amount) in descending order.
Example: if California has the greatest total amount of the payments, it is first and not Wyoming.
How do I include the Sum(Payment_Amount) in the grouped header collection? Can't include the value of the textbox. Not allowed to put an aggregate function in the expression of a calculated field.
I had to include a sum of these values in the data source. The report is actually grouped on these values and not the names.