Grand Totals functionality under Group and Sort
Hello community,
Does anyone know if there is a solution for rolling up text fields in the summary line item (under the Show Grand Totals functionality under Group and Sort)? I can only find that date fields and formula fields summarize. I would like to be able to summarize all the data in one line items so I wont have a really long schedule and I can present to my end users accordingly.
Thanks,
P6GURUYOU
Hope I understand, if you have the groups setup, you should be able to (CRXI instructions) right click on the item in the Details line, insert a summary, you can select sum, add the sum to the group. For the locations, insert a summary count, and add that to the groups.
What I do sometimes, is select the option to add summary to all groups, Perhaps change the font to red, I can see the totals
I want, and just suppress the other groups. Just a quick and dirty way to do the totals.
Similar Messages
-
Grand Total function on a report
The Grand Total function is working for only one of the two columns I need it to work in for my report. The data in the column in question is text data that has been CASTed to Integer with no issues but still won't display a grand total. Exporting to Excel works fine for both column totals but that defeats the purpose and is mentioned as a possible troubleshooting clue.
Check over <a href = "http://forums.oracle.com/forums/thread.jspa?threadID=951997&tstart=0" target = "_blank">here</a>
Regards -
I have a requirement to group and sort in a report. Group should be based on id, sort based on time. Time sort should be the priority. Meaning, first criteria to sort is time, but if the id is repeated, time should be sorted for that id.
e.g, If I have ids A,B,C and values are such that A - 9:15 AM, B - 9:00 AM, A - 10:00 AM, C - 9:30 AM.
Requirement is as below
B - 9:00 AM
A - 9:15 AM
A - 10:00 AM
C - 9:30 AM
If I apply sort on time without group on id, I am getting data in the below manner which is not correct.
B - 9:00 AM
A - 9:15 AM
C - 9:30 AM
A - 10:00 AM
If I apply group first, I am not able to apply sort. Since the requirement is to show the least time first.
Please advice.use the variable
=Min([Time]) In ([ID])
to sort. Then hide the column by reducing the width and making the font and background color as white. -
Use Parameter to choose Group and Sort options
I've got a report that gets used for several different puposes, and needs to be grouped or sorted differently each time. How can I use a parameter to let the user choose the group and sort options at runtime?
I'm using CR2008, and SAP B1 2005. The various grouping options I want to offer include SKU, Vendor and Description, and sorting within those Groups by SKU or Description.
I'm a newbie with CR, so detailed instructions would be really helpful.You can create a report using parameter field. Follow these steps
-- Create new parameter in the field explorer window
-- The parameter shouls be static and enter all the field names on which you want to create in the values option
-- Now create a formula like this
if {?Parameter}="fieldname1" then
else
if {?Parameter}="fieldname2" then
else
-- Now insert new group and select this formula
-- Now the group will change according to the parameter selected
Please note that if you have different data types of fields you must need to convert totext()
as If condition will allow only one data type output.
Also when you insert any group by default the data is sorted on grouped field. If you want to sort on another field then you need to insert a summary field on that and go to report>group sort expert>select the field-->All based on the summary inserted.
Hope this helps!
Raghavendra -
Hi, I am a new PPM user I am trying to group my activities but the Group and Sort window does not respond. Any ideas?
I beg your pardon, but in your example in the insert statement you have 1, 1, Ship , whereas in your report you display 1, 0 , Ship.
Why not avoid the problem at the source, byt letting T-sql do the work:
with a ([Group], [FirstSort])
AS (SELECT [GROUP], MIN(sort) As FirstSort from dbo.Table_1 group by [group])
select a.[GROUP], a.FirstSort, c.[Item] AS FirstItem , b.[sort], b.[item]
from a
inner join dbo.table_1 as b on a.[Group] = b.[group]
inner join dbo.Table_1 as c on a.[Group] = c.[group] and a.[FirstSort] = c.[Sort]
order by a.[group], b.[sort] -- LEAVE OUT the order BY in the report dataset
Gives this result (I took the insert statements from your example)
GROUP FirstSort FirstItem sort item
1 0 Bike 0 Bike
1 0 Bike 1 Car
1 0 Bike 1 Train
1 0 Bike 1 Ship
2 0 Lorry 0 Lorry
2 0 Lorry 1 Bus
Jan D'Hondt - SQL server BI development
sorry for that .. will take care heare by
ShanmugaRaj -
Dashboards PowerShell Grid Widgets - Grouping and Sorting?
First of all, to those who made Dashboard PowerShell Grid Widgets possible - Thank you, Thank you, Thank you. Love it! So much more power except for the output......
Is there a way to group and sort my results or is it my system? Clicking the column header doesn't seem to work, no personalize option, nor does sorting in the script seem to work.
Thank you.
BTW, it looks like the dashboard is sorting by ID no matter what one does.Tried it, doesn't work. Moreover, the example in the link uses CreateInstance
whereas I'm using CreateFromObject. Below is my code. If I run the first two lines from the SCOM PS command prompt, I receive a nicely sorted results. Not so in the PowerShell Grid Widget (PsGW). If I change
my sort property to Id, then the output order matches the PsGW. So is this a result of using
CreateFromObject?
Editorial Feedback for the SCOM Team: From all the examples I've seen on the web, and most seem to be derivative of two or three MS examples, the trend appears to be that CreateInstance
is used for the PowerShell Web Browser Widget and everyone seems to be enamored by its capabilities. It sure is pretty, but for my environment doesn't offer a great deal. I feel the real meat and potatoes is PsGW - being
able to create one's own output. I'd love to see more examples of the methods in ScritpContextObject (who's link I'm unable to add) that have nothing to do with the web.
$class = Get-SCOMClass -Name Microsoft.Windows.Cluster.Group
$clstrGrpRes = Get-SCOMClassInstance -Class $class | ? { $_.HealthState -ne "Uninitialized" } | sort-object -property Name -Descending
foreach ($gRes in $clstrGrpRes)
$dataObject = $ScriptContext.CreateFromObject($gRes,"Id=Id,Health=HealthState", $null)
$dataObject["Cluster"] = $gRes.Name.Split(".")[0]
$dataObject["Group Resource"] = $gRes.Name.Split(".")[1]
$dataObject["Hosting Node"] = ($gRes | % { $_.values } | ? { $_.Type.ToString() -eq 'GroupActiveOnNodeDuringDiscovery' } ).value
$ScriptContext.ReturnCollection.Add($dataObject)
-
Grand total of calculated column and case function in the same calcultd col
Hi Gurus,
In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
Thanks,
PoojaHi Pooja,
In the totals ,which u mentioned try using cell sum function instead of sum function.
Manikandan
GKB Consulting Inc., -
Grouping and sorting the data based on the parameter
Hi,
I need to display the total of item Cost i.e sub total based on parameter in Excel format
if value = 1 then (Subtotal by Manufacture) and sorting by Manufacture, Receipt Date, Organization, Item Code
if value = 2 then (Subtotal by Organization ) and sorting by Organization, Item, Serial Number
and at the end of report need to display full total
is it possible in excel output using the below xml , please guide me if i need to change the way of getting XML ouput or can be acheived using this.
Please find the xml , thanks in advance
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<ASWRECDTREP>
<LIST_G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>10</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
<SERIAL_NUMBER>90699100802262</SERIAL_NUMBER>
<ITEM_CODE>OM906LA.007</ITEM_CODE>
<DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
<MANUFACTURER>MER</MANUFACTURER>
<APPLICATION>INDL</APPLICATION>
<ITEM_COST>15009.09</ITEM_COST>
<MATERIAL_COST>685.25</MATERIAL_COST>
<PO_NUMBER>1001395</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>EUR</CURRENCY_CODE>
<PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>10</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PARTS</ORGANISATION_NAME>
<SERIAL_NUMBER>90699100802285</SERIAL_NUMBER>
<ITEM_CODE>OM906LA.007</ITEM_CODE>
<DESCRIPTION>MERCEDES SERIES 900 OFF HWY ENGINE 205 KW 0852</DESCRIPTION>
<MANUFACTURER>MER</MANUFACTURER>
<APPLICATION>INDL</APPLICATION>
<ITEM_COST>15009.09</ITEM_COST>
<MATERIAL_COST>685.25</MATERIAL_COST>
<PO_NUMBER>1001395</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>22-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>EUR</CURRENCY_CODE>
<PO_UNIT_PRICE>7431.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>30</ORGANIZATION_CODE>
<ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
<SERIAL_NUMBER>6520107896</SERIAL_NUMBER>
<ITEM_CODE>3500.010</ITEM_CODE>
<DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E018179</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>11126.11</ITEM_COST>
<MATERIAL_COST>664.23</MATERIAL_COST>
<PO_NUMBER>971515</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-APR-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>8063.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>30</ORGANIZATION_CODE>
<ORGANISATION_NAME>Melbourne</ORGANISATION_NAME>
<SERIAL_NUMBER>6510869062</SERIAL_NUMBER>
<ITEM_CODE>3200.010</ITEM_CODE>
<DESCRIPTION>ALLISON 3000 SERIES ON HWY TRANSMISSION E017944</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>11853.57</ITEM_COST>
<MATERIAL_COST>707.66</MATERIAL_COST>
<PO_NUMBER>982120</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>12-MAY-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>8251.6</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>D6002 G6003</SERIAL_NUMBER>
<ITEM_CODE>520 SERIES.002</ITEM_CODE>
<DESCRIPTION>KONRAD 520 SERIES MARINE STERN DRIVE</DESCRIPTION>
<MANUFACTURER>OTH</MANUFACTURER>
<APPLICATION>MARI</APPLICATION>
<ITEM_COST>9296.95</ITEM_COST>
<MATERIAL_COST>482.91</MATERIAL_COST>
<PO_NUMBER>1009062</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>24-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6939.29</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>ABC123</SERIAL_NUMBER>
<ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
<DESCRIPTION>KOHLER GENSET</DESCRIPTION>
<MANUFACTURER>KOH</MANUFACTURER>
<APPLICATION>PGEN</APPLICATION>
<ITEM_COST>756.83</ITEM_COST>
<MATERIAL_COST>.78</MATERIAL_COST>
<PO_NUMBER>1015156</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>AUD</CURRENCY_CODE>
<PO_UNIT_PRICE>20</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>40</ORGANIZATION_CODE>
<ORGANISATION_NAME>Brisbane</ORGANISATION_NAME>
<SERIAL_NUMBER>ABC124</SERIAL_NUMBER>
<ITEM_CODE>GM20541-KP1.001</ITEM_CODE>
<DESCRIPTION>KOHLER GENSET</DESCRIPTION>
<MANUFACTURER>KOH</MANUFACTURER>
<APPLICATION>PGEN</APPLICATION>
<ITEM_COST>756.83</ITEM_COST>
<MATERIAL_COST>.78</MATERIAL_COST>
<PO_NUMBER>1015156</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>14-OCT-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>AUD</CURRENCY_CODE>
<PO_UNIT_PRICE>20</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>06R1017763</SERIAL_NUMBER>
<ITEM_CODE>6062HK30.005</ITEM_CODE>
<DESCRIPTION>DETROIT SERIES 60 MARINE ENGINE 615 KW 2949322</DESCRIPTION>
<MANUFACTURER>MDD</MANUFACTURER>
<APPLICATION>MARI</APPLICATION>
<ITEM_COST>99125.34</ITEM_COST>
<MATERIAL_COST>2028.31</MATERIAL_COST>
<PO_NUMBER>883339</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>05-MAR-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>63768</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935001</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935002</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310935003</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1000221</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>01-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876301</SERIAL_NUMBER>
<ITEM_CODE>T350R.004</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>9465.69</ITEM_COST>
<MATERIAL_COST>597.33</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876302</SERIAL_NUMBER>
<ITEM_CODE>T350R.004</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>9465.69</ITEM_COST>
<MATERIAL_COST>597.33</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>6936.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6510876303</SERIAL_NUMBER>
<ITEM_CODE>T375R.002</ITEM_CODE>
<DESCRIPTION>ALLISON TORQMATIC ON HWY TRANSMISSION</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>10224.19</ITEM_COST>
<MATERIAL_COST>645.19</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>7433.3</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940354</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940355</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940356</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>6310940357</SERIAL_NUMBER>
<ITEM_CODE>2500.003</ITEM_CODE>
<DESCRIPTION>ALLISON 2000 SERIES ON HWY TRANSMISSION E016189</DESCRIPTION>
<MANUFACTURER>ATD</MANUFACTURER>
<APPLICATION>ONHY</APPLICATION>
<ITEM_COST>4855.33</ITEM_COST>
<MATERIAL_COST>306.39</MATERIAL_COST>
<PO_NUMBER>1005777</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>23-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>3574.9</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
<G_ASW_REC_DATE>
<ORGANIZATION_CODE>70</ORGANIZATION_CODE>
<ORGANISATION_NAME>NDC - PRODUCT</ORGANISATION_NAME>
<SERIAL_NUMBER>5272003543</SERIAL_NUMBER>
<ITEM_CODE>T1637K33.002</ITEM_CODE>
<DESCRIPTION>DETROIT SERIES 4000 INDUSTRIAL ENGINE 1865 KW 2456291</DESCRIPTION>
<MANUFACTURER>MDD</MANUFACTURER>
<APPLICATION>MNIG</APPLICATION>
<ITEM_COST>420083.16</ITEM_COST>
<MATERIAL_COST>3785.85</MATERIAL_COST>
<PO_NUMBER>921170</PO_NUMBER>
<TRANSACTION_RECEIPT_DATE>30-JUN-09</TRANSACTION_RECEIPT_DATE>
<VENDOR_LOT_NUM></VENDOR_LOT_NUM>
<CURRENCY_CODE>USD</CURRENCY_CODE>
<PO_UNIT_PRICE>301549</PO_UNIT_PRICE>
</G_ASW_REC_DATE>
</LIST_G_ASW_REC_DATE>
</ASWRECDTREP>
Best Regards,
MahiHi Vetri,
I tried to implement the solution you have given and i am getting error,
I tried to see the output by loading the xml to the template given in BIP Blog in the following Link,
http://blogs.oracle.com/xmlpublisher/2007/05/left_up_down_right_group.html
I am getting the same error,Please help me how to overcome this.If possible send me the template that was working for you.
The error log is as follows:
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Users\MAHESH\Desktop\Grouping.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Users\MAHESH\Desktop\EmployeeListing.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:629)
at RTF2PDF.runXDO(RTF2PDF.java:439)
at RTF2PDF.main(RTF2PDF.java:289)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at oracle.xdo.parser.v2.XSLTContext.peekExprValue4Grouping(XSLTContext.java:871)
at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:536)
at oracle.xdo.parser.v2.XPathFunctionCall.evaluate(XPathFunctionCall.java:583)
at oracle.xdo.parser.v2.XSLVariable.getValue(XSLVariable.java:205)
at oracle.xdo.parser.v2.XSLVariable.processAction(XSLVariable.java:117)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 15 more
Best Regards,
Mahi -
What's the best way to create sub-totals & grand-total in SQL2008 R2 (and beyond)?
What is the easiest way to get sub totals and a grand total on data that is being grouped? It looks like RollUp might work, but it's being depreciated.
My query is:
SELECT
COMPANY
,INVSTR_CD
,STATE_C
,SUM(CO_SHARE_TOTBAL) as CO_SHARE_TOTBAL
FROM #ASSET AS A
WHERE A.D_GETIT = 'Y'
GROUP BY COMPANY, STATE_C, INVSTR_CD
ORDER BY COMPANY, INVSTR_CD, STATE_C
I need to provide a sub-total of the SUM'd field (SUM(CO_SHARE_TOTBAL) as CO_SHARE_TOTBAL), at the change of the COMPANY field.
Then a Grand Total of all the SUM'd fields (SUM(CO_SHARE_TOTBAL).
Thanks in advance!!
-Al HIf you post DDL of your table (only relevant columns) and some data and desired output, I may try to reproduce it. Did you check Jacob's blog post and the very last query? It does take a few trials before getting this correct.
Naomi,
I did try the last query on Jacob's post. I couldn't get the first column to populate.
Thanks for the offer of help.
DML is:
Create Table #ASSET2 (
[COMPANY] [varchar] (5) NULL
,[INVSTR_CD] [varchar](5) NULL
,[STATE_C] [char](2) NULL
,[SHARE_TOTBAL] [decimal] (15,2) NULL)
Data is:
Insert into #ASSET2 VALUES ('00000','099 ','FL','115226.77')
Insert into #ASSET2 VALUES ('22222','030 ','CA','309899.43')
Insert into #ASSET2 VALUES ('00000','010 ','CA','524296.89')
Insert into #ASSET2 VALUES ('00000','099 ','IL','51699.70')
Insert into #ASSET2 VALUES ('00000','789 ','PA','90856.04')
Insert into #ASSET2 VALUES ('22222','010 ','CA','66951.33')
Insert into #ASSET2 VALUES ('00000','099 ','CA','310046.03')
Insert into #ASSET2 VALUES ('00000','010 ','AZ','178062.08')
Insert into #ASSET2 VALUES ('00000','099 ','NY','278489.10')
Desired results would be the following:
COMPANY INVSTR_CD STATE_C SHARE_TOTBAL
00000 010 AZ 178062.08
00000 010 CA 524296.89
00000 099 CA 310046.03
00000 099 FL 115226.77
00000 099 IL 51699.70
00000 099 NY 278489.10
00000 789 PA 90856.04
TOTAL COMPANY 00000 1548676.61
22222 010 CA 66951.33
22222 030 CA 309899.43
TOTAL COMPANY 22222 376850.76
GRAND TOTAL 1925527.37
-Al H -
New function Planning Group and Affiliate in Business partner/Account tab
Hi all!
I'm using SAP 8.8 PL10 , Localization Australia. I have new function in Business partner/Account tab is Planning Group and Affiliate.
Can you explain ? i don't see any help file about this.Hi,
You may check this: What is the use of AFFILIATE check box in Business partner?
Thanks,
Gordon -
CREATE TABLE [dbo].[Table_1](
[group] [int] NULL,
[sort] [int] NULL,
[Item] [nchar](10) NULL
) ON [PRIMARY]
GO
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (1, 1, N'Car ')
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (2, 1, N'Bus ')
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (1, 0, N'Bike ')
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (2, 0, N'Lorry ')
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (1, 1, N'Train ')
INSERT [dbo].[Table_1] ([group], [sort], [Item]) VALUES (1, 1, N'Ship ')
Data
My Dataset Query in ssrs table
Group2 expression
Group on Group
Sort on Sort
Group 1 expression
Sort on Sort
First(Item.value ) is not working.. i need to fix in ssrs since this is an an sample data of sp with more columns
my problem is once group2 is grouped, it is not taking the sort and just dispalying the First item in the sort of the item.
ShanmugaRajI beg your pardon, but in your example in the insert statement you have 1, 1, Ship , whereas in your report you display 1, 0 , Ship.
Why not avoid the problem at the source, byt letting T-sql do the work:
with a ([Group], [FirstSort])
AS (SELECT [GROUP], MIN(sort) As FirstSort from dbo.Table_1 group by [group])
select a.[GROUP], a.FirstSort, c.[Item] AS FirstItem , b.[sort], b.[item]
from a
inner join dbo.table_1 as b on a.[Group] = b.[group]
inner join dbo.Table_1 as c on a.[Group] = c.[group] and a.[FirstSort] = c.[Sort]
order by a.[group], b.[sort] -- LEAVE OUT the order BY in the report dataset
Gives this result (I took the insert statements from your example)
GROUP FirstSort FirstItem sort item
1 0 Bike 0 Bike
1 0 Bike 1 Car
1 0 Bike 1 Train
1 0 Bike 1 Ship
2 0 Lorry 0 Lorry
2 0 Lorry 1 Bus
Jan D'Hondt - SQL server BI development
sorry for that .. will take care heare by
ShanmugaRaj -
Grouping and sorting multiple cells
Is there a way to group multiple contiguous cells so that they act as one large "super" cell, then have Numbers sort the groups according to a value in one of the individual cells in the group?
I have created a document that has several columns and rows that are added together to arrive at a value that is put into a cell in the bottom right corner of the group. I need to sort these groups according to the value in that last cell in each group.
I hope that makes sense.Seth,
Consider putting the group value in each row so that when you sort, rows with the same group value will stay together. The column with this value can be hidden and you can repeat it in another column on the last row of each group. This will probably require another auxiliary column to keep the rows in the proper order within a group, and a two-level sort.
Jerry -
Group function under parent and child model
Dear all,
I have a table with the below model.
SN Parent Child amount
1 A01 A02 1000
2 A01 A03 1000
3 A02 A04 500
4 A03 (null) 1000
5 A04 (null) 200
5 A05 (null) 1500
How can I write the query to capture the sum of amount on A01 and A05
Parent Sum of amount
A01 3700
A05 1500
Where 3700 is sum of 1000(A01-A02), 1000(A01-A03), 500(A02-A04),
1000(A03-null), 200(A04-null)
If there is n parent-child combination, how to write the generic
query ?
Thanks
Patrick LeeI do not have 8i to test with anymore, but I think this should work.
-- test data:
scott@ORA92> set null (null)
scott@ORA92> select * from t01
2 /
SN PARENT CHILD AMOUNT
1 A01 A02 1000
2 A01 A03 1000
3 A02 A04 500
4 A03 (null) 1000
5 A04 (null) 200
5 A05 (null) 1500
6 rows selected.
-- function:
scott@ORA92> create or replace function t01_func
2 (p_parent in t01.parent%type)
3 return number
4 as
5 v_amount number;
6 begin
7 select sum (amount)
8 into v_amount
9 from t01
10 start with parent = p_parent
11 connect by prior child = parent;
12 return v_amount;
13 end t01_func;
14 /
Function created.
scott@ORA92> show errors
No errors.
-- query:
scott@ORA92> select s.parent as "Parent",
2 t01_func (s.parent) as "Sum of Amount"
3 from t01 s
4 where not exists
5 (select null
6 from t01
7 where child = s.parent)
8 group by s.parent
9 /
Parent Sum of Amount
A01 3700
A05 1500
scott@ORA92> -
Hi,
I am sorting the ALV Display on the basis of Assignment Field. It is getting sorted, but it is displaying the value in all the lines/rows. I want to display it only once(the first row) if the value is same.
Also, the first line of the ALV Output is a checkbox.
At present the check-box is displayed in all the rows.
My requirement is to display the check-box once for every new Assignment. So, if there are 5 rows with the same Assignment Value then only one check-box should appear, either in the first or fifth row.
Your help will be definitely appreciated.
Thanks,
~ PayelThere is no Direct solution in this case....
1. Hade one extra field of type lenght 4 chars.
2. populate the ICON value for unselected checkbox.
3. Change the Fieldcatalog for the field which is added in step1.
4. Populate the sort information.
5. Handle the usercommand to check or uncheck based on action.
Check the sample code..
REPORT zalv_total_sub.
TYPE-POOLS: slis.
INCLUDE <icon>.
DATA: BEGIN OF it_flight OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
seatsmax LIKE sflight-seatsmax,
seatsocc LIKE sflight-seatsocc,
check(4), "Step1
END OF it_flight.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fcat LIKE LINE OF it_fieldcat,
layout TYPE slis_layout_alv.
DATA: it_sort TYPE slis_t_sortinfo_alv,
wa_sort LIKE LINE OF it_sort.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'IT_FLIGHT'
i_inclname = sy-repid
CHANGING
ct_fieldcat = it_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2.
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE it_flight
SORT it_flight BY carrid.
"Step 2....
LOOP AT it_flight.
it_flight-check = icon_wd_iframe.
MODIFY it_flight.
ENDLOOP.
wa_fcat-do_sum = 'X'.
MODIFY it_fieldcat FROM wa_fcat TRANSPORTING do_sum
WHERE fieldname = 'SEATSOCC' .
CLEAR wa_fcat.
"Step3...
wa_fcat-hotspot = 'X'.
wa_fcat-icon = 'X'.
wa_fcat-col_pos = 1.
MODIFY it_fieldcat FROM wa_fcat TRANSPORTING col_pos icon hotspot
WHERE fieldname = 'CHECK' .
wa_sort-fieldname = 'CARRID'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO it_sort.
" Step 4.
CLEAR wa_sort.
wa_sort-fieldname = 'CHECK'.
wa_sort-up = 'X'.
APPEND wa_sort TO it_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND' "Step5
is_layout = layout
it_fieldcat = it_fieldcat
it_sort = it_sort
TABLES
t_outtab = it_flight
EXCEPTIONS
program_error = 1.
"Step 5 implementation.
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
CASE selfield-fieldname.
WHEN 'CHECK'.
READ TABLE it_flight INDEX selfield-tabindex.
IF sy-subrc EQ 0.
IF it_flight-check = icon_checkbox.
it_flight-check = icon_wd_iframe.
ELSE.
it_flight-check = icon_checkbox.
ENDIF.
MODIFY it_flight TRANSPORTING check
WHERE carrid = it_flight-carrid.
ENDIF.
ENDCASE.
ENDCASE.
selfield-refresh = 'X'.
ENDFORM. "user_command
Check it and let me know if any issues with the code. -
Function Module, Group and Method
Hello All,
I have a problem which I do not know why it's happening. I have an Interface method which calls a Function Module. This interface method does not have any syntax errors.
In the Function Module itself there is field which is definied in the FUNCTION TOP INCLUDE. So It should be visible during the call of the FM. But when executing the method it dumps on the field that is in the FUNCTION TOP INCLUDE. Can someone explain why it's happening?
Best regards,
Guido KoopmannGuys,
Everything was active, the strange thing is that when I cal the FM in an normale executable program, everything is ok.
I do not get this.
Hope someone can help me out.
Best regards,
Guido Koopmann
Maybe you are looking for
-
I have a macbook pro and I connected a new iphone to my computer. Somehow all my pictures in the iphoto app deleted. How can I get them back, and no I do not have my TimeMachine On. Please help!
-
Fonts are not printing correctly
We use Jetforms 5.3.1.0.143 with QuadraMed's AFfinity product. A query is written in Affinity and used to produce a Jetform. We run the query and send to a printer. The information in the data fields prints the correct font and spacing. The text on t
-
Final Cut express wont open after Lepard Install
I just installed Lepard to my mac and Final cut wont open...its gone dead, I find out the my version of FC express is 3.5.1, I have been having a few different things happen within the last 72 hours of the install,My dock sometimes doesnt respond,I n
-
AE not recognized by Airport Utility after a steady use of several months
I have been using Airport Express (now version 6.3) with my iMac since 2007, actually I have no hassle when I set them up in the first place. But the strange thing is after a long steady connection, the internet could suddenly disappear and at the sa
-
Get data with correct array size
My VI is trying to rearrange the 2D array that I read from test.xls file, so that each function is get separated with there data in it. Look over the test.xls file that I have attached. It has 2 columns. Both contains couple functions designated with