Group By Calculated Columns Issue
Dear All,
I have some lists and libraries which has some calculated columns for calculating year and month based on created date and we have custom views which has group by on those calculated columns. The problem is group by is not working as expected. Attached are
the screens for reference. We have also applied the June CU still no luck.
Please help us on the resolution to the same.
Rajani.J
Make sure you dont have space in the data by any chance. You can try recreating the view again.
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin
Similar Messages
-
Grouping By a Calculated Column Issue
Hi,
I have 2 issues when I try to group by a view using a calculated column:
It will show the number of items under each group but you expand is not showing any items at all
It will show the item reproduced 333 times.
The first one it happens to all the lists and libraries on SharePoint 2013. However the second issue happened only in a document library that holds the employee Documents. The view is grouped by Document type column and the Employee column ( which is the
calculated column). It shows multiple versions of the same document as stated above.
Any help is very much appreciated.
ThanksHi,
According to your description, there is an issue when grouping by Calculated column.
It was a known issue in the early build version of SharePoint 2013, it is already fixed in the August 2013 CU:
http://blogs.technet.com/b/steve_chen/archive/2013/03/26/3561010.aspx
I suggest you install August 2013 CU or the later versions and then create new list for a test.
Best regards
Patrick Liang
TechNet Community Support -
Group By on Calculated Columns Issue
Dear All,
I have some lists and libraries which has some calculated columns for calculating year and month based on created date and we have custom views which has group by on those calculated columns. The problem is group by is not working as expected. Attached are
the screens for reference. We have also applied the June CU still no luck.
Please help us on the resolution to the same.
Rajani.JHi Rajani,
can you please paste your calculated formula here? Try this formula =TEXT(Created,"yyyy")&TEXT(Created,"mm") to check it is working correctly with numeric month or not?
Thanks. -
Would like to know how to create a calculated column whose value is equal to other column's value. ie, i am having a column called BU in Content TYPE HUB and its propagated in my subscriber site collection say
http://srvr1/sites/demo. i would like to create a new site column in Demo, say, BU_Calc that must be equal to the value of BU.i would like to use the BU_Calc for further processing.
help is appreciated!
DasI don' t think this can be done at Content Type level. You can do this:
1) create the two columns in Site collection
2) subscribe the source column and calculated column in a list.
3) set the default value of the calculated column like this:
http://sharepoint-community.net/profiles/blogs/how-to-put-a-calculated-value-in-your-list-title-column
rgds. -
Group by calculated column?
How can one group by a colum that is derived? E.g.
select
a.col1,
a.col2,
(select count(*) from table_b b where b.ix=a.ix) as foo,
count(*)
from
table_a a
group by ??????
Unlike "order by" I cannot simply "group by 1,2,3", and calling out the volumn alias "foo" doesn't work either.SELECT a.col1
, a.col2
, SUM(DECODE(b.ROWID,NULL,0,1)) foo
, COUNT(*)
FROM table_a a
, table_b b
WHERE a.ix = b.ix (+)
GROUP BY a.col1
, a.col2
/ -
I am trying to learn HANA on my own.i have product id,product name,delivery date and Grossamount in my calculated view.i am trying to create calculated column where i need Grossamount in two columns based on delivery date.I have 2012 and 2013 as values for my delivery date.so i have created two column as grossamount_2012 and grossamount_2013.if i have delivery date as 4thdec,2012 i want the grossamount value to be in coloumn grossamount_2012 and the grossamount_2013 should be blank.i have written an expression like this
if("Deliverydate" <= longdate(2012-12-04),"Grossamount","0")
and it looks like this is wrong.i am getting the text Grossamount rather than values for that field in my output.so can anyone help me please?Hi chandra
i am trying to get the same result by using sql script and CE functions.i have written the following code
select A."PRODUCTID",
E."TEXT" as "PRODUCTNAME",
C."COUNTRY",
D."DELIVERYDATE",
Sum(D."GROSSAMOUNT") as "GROSSAMOUNT"
from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products" as A
inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.BusinessPartner" as B
on A."SUPPLIERID" = B."PARTNERID"
inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" as C
on B."ADDRESSID" = C."ADDRESSID"
inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Purchase.Item" as D
on A."PRODUCTID" = D."PRODUCTID"
inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Util.Texts" as E
on A."NAMEID" = E."TEXTID"
GROUP BY A."PRODUCTID",E."TEXT",C."COUNTRY",D."DELIVERYDATE";
this is working fine but i want to split the grossamount based on current year and last year.Any idea how to do this
In calculation view using script can we use if and case statements? -
Calendar All Day Events, Calculated Columns, Timezone and DayLight Savings - Issues
Hi
I have a calendar where I am trying to display in one column using a calculated field (TitleWithTimes):
Start time (only display time) - End Time (only display time) : Title i.e. 00:00 - 23:59 : Test Event
So I add an all day event to the calendar for this month (February), it appears correctly:
i.e. 00:00 - 23:59 : Test Event 1
I am based in the UK so my time zone is currently GMT/UTC.
However if I add any all day events to the calendar in April when the time zone switches to GMT+1, the start and end times appear incorrect.
i.e 01:00 - 00:59 : Test Event 2
Field: TitleWithTimes
=TEXT([Start Time],"hh:mm")&" - "&TEXT([End Time],"hh:mm")&" : "&Title
This issue only occurs with ALL Day Events when the events are scheduled for a in the period of the year where the Time Zone becomes GMT + 1. My regional settings everywhere in SharePoint are correct as are all the SharePoint servers.
I have done lots of searching and troubleshooting to try and resolve this issue but it appears nobody has found a reliable fix for this issue with calculated fields, all day events and time zones? Does anyone have any ideas of workarounds?
ThanksHi,
I understand that you had issues about the calculated field in calendar.
This is a reproducible issue, when creating an all day event, the calculate column based on the Start Time/End Time is different from the original column value. The date is stored in SQL in GMT time and is displayed in SP in the correct time in lists. So
returning the start time in a calculated column for an all day event returns the start time in GMT time, which is not the current time most likely.
As a workaround, you can regenerate the calculate column to add one day/minus one day based on whether the event is an all day event, or create a workflow to copy the start time column to your created date/time column.
Here is a similar thread for your reference:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/27ab0bb0-245b-46ca-9f87-c0eb043653ef/date-formatting-in-calendars-returns-wrong-day?forum=sharepointgeneral
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Issue with non calculated column in a fact table
Hi All,
With 3 facts(Fact1,Fact2,Fact3) and 2 Confirmed Dimensions my joins work fine in Criteria when I include All calculated columns from facts. If I try to include a non calculated column from Fact1(Which is a number Data type) Columns from Fact2 and Fact3 show Null values. I know it is not recommended to include dimension columns in fact , does OBIEE not support Number type non calculated columns as well? Is there any work around that I can bring in my non calculated column from Fact and still get results for other fact columns.Iam at 11.1.1.7 of OBIEE
Let me know if Iam not clear.
Your help is much Appreciated.
Thanks,
Vineela.i would like to add 2 fields into my fact tables - LOAD ID (populated by a sequence during each load) and LOAD DATE.
as these fields are not related to any reporting dimensions, it is still possible to add them in OWB ? the fact wizard always ask for a foreign key to a dimension ...
Duncan,
If you want to add non dimensional attributes to a fact by using OWB, you can create additional measures to it and use them as attributes.
Igor -
Calculated column doesn't expand the items in list view
Dear All,
I have a calculated column
Week with formula, =INT((DAY([Start Time])+6)/7)
in one of my lists. I'm displaying a view of this list in a SharePoint page, group by column Year and column
Week. But when the page is loaded with items, I'm only able to expand the list view up to
Year column level. When I click on Week section it doesn't show / expand the items under it.
Further more when I use a different calculated column with a function like (=TEXT(Date,"yyyy")) I don't get above error.
Any Idea?
Thanks,
DilipHi Dilip,
According to your description, an issue occurs when you try to expand the subgroups in a list contains Calculated column.
It is an known issue in SharePoint 2013, there are some workarounds I can provide as below:
As the first workaround, you can set the groupings to expanded by default, though it would make the grouping collapsed by default, then the grouping would function
normal.
As the second workaround, you can create a SharePoint Designer Workflow and add a “Do Calculation” action to calculate the value you needed. Then add a “Update List
Item” action to add the value to a “Single line of text” column. We will use the “Single line of text” column in the grouping instead of the Calculated column.
As the third workaround, you can install the latest update of SharePoint to fix the issue for new Document Libraries. For the existing libraries, after the installing
the update, you can use PowerShell to make an update to each item in the library, it will make the old items get normal in the grouping.
About how to update list items in a list/library using PowerShell, a demo as below for your reference:
$web = Get-SPWeb http://YourServer/
$list = $web.Lists["list name"]
foreach ($item in $list.Items)
$item.SystemUpdate();
Best regards
Patrick Liang
TechNet Community Support -
How to create a calculated column in sharepoint
I created the custom list in share point. In that list i renamed the title as
Name.
I created the WindowsID as person or group column in share point list.
In the same list, I want to create a new calculated column as EmpName as hyperlink with the below formula
="<a href='"&WindowsID &"'>"&Name&"</a>"
But I am unable to create a new column by using above formula.
Could you please let me know what i missed in the above formula.
Please note that i am unable to see the WindowsID in the insert column.
Thanks for ur support.Hello
Sorry for the delay replay.
Based on your guidance,i followed the below steps
1.created the loginname column of type person or group
2.Added the contentquery webpart
3.crated the custom xslt template
4.Please find the below template
<xsl:template name="ListingItem" match="Row[@Style='ListingItem']" mode="itemstyle">
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="LoginID">
<xsl:value-of select="ddwrt:UserLookup(string(@DomainID) ,'User')" />
</xsl:variable>
<div id="membersdiv" class="members">
<!-- <xsl:value-of select="$LoginID" disable-output-escaping="yes"/>-->
<xsl:if test="$LoginID != ''">
<a href="{$LoginID}">
<xsl:value-of select="@Title" disable-output-escaping="yes"/>
</a>
</script>
</xsl:if>
</div>
</xsl:template>
if user is having the login id then i need display the title.on click of that title i need to redirect to user settings page like http://url/_layouts/15/userdisp.aspx?ID=1 .How can i redirect to
the sharepoint personal settings page based on person click -
Error about using a concatenated calculated column in a SSAS Tabular model
Hi,
in a my tabular model I've added in a dimension table a calculated column concatenating a code and a description. The code is used to create a relation between a fact table and this dimension table.
When I try to use the tabular model inside Excel and select the concatenated column as a filter I've this error message:
I've tried to recalculate some times the tabular database after the deployment of the model changes and I've tried to run a full process of the entire database but any results.
Any suggests to me in order to solve this issue, please?
ThanksHi, I've solved. The concatenate formula was with "+" operator and not "&".
But during the column creation I've any errors also if the model in SSDT was empty.
Bye -
SharePoint 2013 Make Calculated Column based on Custom Column
In SharePoint 2013, I am trying to create a Calculated Column that is a shortened display of another Custom Column. The Calculated Column would just show the first 100 characters concatenated with "..." like in the following formula:
=LEFT([CustomColumn],100)&"..."
However, every time that I go to create this calculated column, SharePoint doesn't provide my [CustomColumn] in the "Insert Column:" list. If I type it in anyway, SharePoint throws an error.
Details on my Column, List, and Site below:
Col. Type: Multiple lines of text
Col. Group: Custom Columns
Col. Text Type: Enhanced rich text
List Content Type: Custom Type Inherits from Event
Site Type: Publishing
Also, to no avail, I found this similar post (link below), but creating the Site Column and Calculated Column
before adding it to the Content Type did not work for me.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/26a7517e-ba43-4c49-95aa-3e6f7f4207ba/calculated-field-in-content-type-not-working
Anyone out there know how to coax SharePoint into submission?!Multi lines of text are one of the types of columns which can't be used by calculated columns/fields. Among such unusable columns are also Lookup columns, People columns, External Columns, MMS columns, etc.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
I created a calculated column "Expiration Date" in SharePoint 2010 with formula, =IF([Contingent Hire]=TRUE,(Created+90),(IF([Contingent Hire]=FALSE," ")))
This works in the SharePoint list but when I go to edit the Edit Form in Designer. I get the error specified in the title of this post. I'm trying to make it so the Expiration Date is blank when another column, "Contingent Hire" (a YES/No
column) is FALSE.
The Edit Form is essentially a DataViewWebpart. If I remove the " ", like so, "(IF([Contingent Hire]=FALSE,))" from the calc column, the error goes away; however, the Expiration Date field does not
remain blank like I want it to.
Does anyone have any suggestions? (Below is the error generated when I open Designer and then try to open the Edit form for the corresponding list containing the calc column)
JackSki123Hi Jack,
Could you provide a screenshot about this issue?
As Dimitri suggested, you can install the update for your SharePoint Designer and check again.
And you can also check if you can display "NA" instead of " " in your calculated column per the following post.
http://rajeshspillai.blogspot.in/2012/03/server-returned-non-specific-error-when.html
Thanks
Daniel Yang
TechNet Community Support -
Sorry, something went wrong error when adding a calculated column
Hi I tried add a column via calculation, and it seems to not be correct because I keep getting a syntax error.. Can anyone tell me why or where I went wrong?
This is a dropdown box when a certain CIRCUIT TYPE is selected it would out put a calculation...
56, 56SW, 56FR are using the same calculation
DDS IDSL, ISDN TR, ISDN are using the same calculation
HDSL, HDSL2, HDSL4 are using the same calculation
Thank you... Here is the calculation below...
=IF([Circuit Type]="ISDN",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*2.81)+(([F1 Makeup (24)]+[F1 bridge
tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*2.03)+(([F1 Makeup (22)]+[F1 bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.42)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.84),
IF([Circuit Type]="DDS IDSL",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*2.81)+(([F1 Makeup (24)]+[F1 bridge tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*2.03)+(([F1 Makeup (22)]+[F1
bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.42)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.84), IF([Circuit Type]="ISDN T.R.",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2
Makeup (26)]+[F2 bridge tap (26)])*2.81)+(([F1 Makeup (24)]+[F1 bridge tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*2.03)+(([F1 Makeup (22)]+[F1 bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.42)+(([F1
Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.84), IF([Circuit Type]="56",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*2.45)+(([F1 Makeup (24)]+[F1 bridge
tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*1.85)+(([F1 Makeup (22)]+[F1 bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.3)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.77),
IF([Circuit Type]="56SW",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*2.45)+(([F1 Makeup (24)]+[F1 bridge tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*1.85)+(([F1 Makeup (22)]+[F1
bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.3)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.77), IF([Circuit Type]="56FR",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2
Makeup (26)]+[F2 bridge tap (26)])*2.45)+(([F1 Makeup (24)]+[F1 bridge tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*1.85)+(([F1 Makeup (22)]+[F1 bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.3)+(([F1
Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.77), IF([Circuit Type]="19.2",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*1.73)+(([F1 Makeup (24)]+[F1 bridge
tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*1.31)+(([F1 Makeup (22)]+[F1 bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*0.96)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.59),IF([Circuit
Type]="DDS T.R.",(([F1 Makeup (26)]+[F1 bridge tap (26)]+[F2 Makeup (26)]+[F2 bridge tap (26)])*1.91)+(([F1 Makeup (24)]+[F1 bridge tap (24)]+[F2 Makeup (24)]+[F2 bridge tap (24)])*1.46)+(([F1 Makeup (22)]+[F1
bridge tap (22)]+[F2 Makeup (22)]+[F2 bridge tap (22)])*1.08)+(([F1 Makeup (19)]+[F1 bridge tap (19)]+[F2 Makeup (19)]+[F2 bridge tap (19)])*0.64),IF([Circuit Type]="HDSL",(([F1 Makeup (26)]+[F2 Makeup (26)])*3.88+(([F1
Makeup (24)]+[F2 Makeup (24)])*2.84)+(([F1 Makeup (22)]+[F2 Makeup (22)])*2.18)+(([F1 Makeup (19)]+[F2 Makeup (19)])*1.5)+(([Num of F1 BTs]+[Num of F2 BTs])*3)+[Num of F1 Guage changes (HDSL)]+[Num of F2 Guage changes (HDSL)]),
IF([Circuit Type]="HDSL2",(([F1 Makeup (26)]+[F2 Makeup (26)])*3.88+(([F1 Makeup (24)]+[F2 Makeup (24)])*2.84)+(([F1 Makeup (22)]+[F2 Makeup (22)])*2.18)+(([F1 Makeup (19)]+[F2 Makeup (19)])*1.5)+(([Num of F1 BTs]+[Num
of F2 BTs])*3)+[Num of F1 Guage changes (HDSL)]+[Num of F2 Guage changes (HDSL)]), IF([Circuit Type]="HDSL4",(([F1 Makeup (26)]+[F2 Makeup (26)])*3.88+(([F1 Makeup (24)]+[F2 Makeup (24)])*2.84)+(([F1 Makeup (22)]+[F2 Makeup
(22)])*2.18)+(([F1 Makeup (19)]+[F2 Makeup (19)])*1.5)+(([Num of F1 BTs]+[Num of F2 BTs])*3)+[Num of F1 Guage changes (HDSL)]+[Num of F2 Guage changes (HDSL)]),0)))))))))))
Two possible issues:
Maximum formula length is 1024 characters, and you have nearly 4000.
Maximum nesting is 7 or 8 levels.
http://blog.pathtosharepoint.com/2010/04/12/maximum-number-of-if-statements-in-a-calculated-column/
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Strange error in Discoverer calculated columns.
Hi,
I got a strange error in discoverer10g worksheet. In woksheet the calculated coulmns did not return data but in PL/SQL developer when I run the query taking from the Show SQL of Discoverer Worksheet it returns. Anyone please help me to resolve this problem.
I paste the show sql discoverer query below:
SELECT /*+ NOREWRITE */
O378524.NAME AS E394898,
O397424.COMPANY AS E397430,
O397424.SEGMENT1 AS E397431,
O397424.INV_ORG AS E397433,
O397424.VENDOR_NAME AS E397435,
O397424.INVOICE_ID AS E397436,
O397424.PERIOD_NAME AS E397438,
O397424.AMOUNT_PAID AS E397439,
DENSE_RANK() OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC) AS C_5,
(SUM(O397424.AMOUNT_PAID)
OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS
UNBOUNDED PRECEDING)) /
(SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_4,
SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID ORDER BY O397424.AMOUNT_PAID DESC ROWS UNBOUNDED PRECEDING) AS C_1,
O397424.AMOUNT_PAID /
(SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID)) AS C_3,
SUM(O397424.AMOUNT_PAID) OVER(PARTITION BY O397424.ORG_ID) AS C_2
FROM (SELECT * FROM APPS.HR_OPERATING_UNITS) O378524,
(SELECT DISTINCT /*SEGMENT1*/ CODE_COMBINATION_ID, INV_ORG
FROM (SELECT GCC.SEGMENT1,
GCC.CODE_COMBINATION_ID,
DECODE(GCC.SEGMENT1,
7590,
'Kanowna Belle Organisation',
7060,
'Darlot Organisation',
7260,
'Cowal Organisation',
7570,
'Kanowna Belle Organisation',
7595,
'Kundana Organisation',
7070,
'Lawlers Organisation',
7180,
'NULL for Yilgarn(Barrick (Services) Limited)',
7541,
'Granny Smith Organisation',
7015,
'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
7610,
'Kundana Organisation',
7014,
'NULL for Yilgarn(Yilgarn Shared Services)',
7538,
'Granny Smith Organisation',
'Unknown') INV_ORG
FROM APPS.GL_CODE_COMBINATIONS GCC)
/*WHERE SEGMENT1 IN
(7590, 7060, 7260, 7570, 7595, 7070, 7180, 7541, 7015, 7610, 7014, 7538)*/
) O394875,
(SELECT CHQ.ORG_ID,
FVT.DESCRIPTION COMPANY,
GCC.SEGMENT1,
INVD.DIST_CODE_COMBINATION_ID,
DECODE(GCC.SEGMENT1,
7590,
'Kanowna Belle Organisation',
7060,
'Darlot Organisation',
7260,
'Cowal Organisation',
7570,
'Kanowna Belle Organisation',
7595,
'Kundana Organisation',
7070,
'Lawlers Organisation',
7180,
'NULL for Yilgarn(Barrick (Services) Limited)',
7541,
'Granny Smith Organisation',
7015,
'NULL for Barrick Gold(Barrick (Australia Pacific) Limited)',
7610,
'Kundana Organisation',
7014,
'NULL for Yilgarn(Yilgarn Shared Services)',
7538,
'Granny Smith Organisation',
'Unknown') INV_ORG,
CHQ.VENDOR_ID,
CHQ.VENDOR_NAME,
COUNT(INV.INVOICE_ID) INVOICE_ID,
--INVL.PRODUCT_TYPE,
INVL.PERIOD_NAME,
--chq.check_date,
SUM(NVL(INVP.PAYMENT_BASE_AMOUNT, INVP.AMOUNT)) AMOUNT_PAID
FROM APPS.AP_CHECKS_ALL CHQ,
APPS.AP_INVOICE_PAYMENTS_ALL INVP,
APPS.AP_INVOICES_ALL INV,
APPS.AP_INVOICE_LINES_ALL INVL,
APPS.AP_INVOICE_DISTRIBUTIONS_ALL INVD,
APPS.GL_CODE_COMBINATIONS GCC,
APPS.FND_FLEX_VALUES FV,
APPS.FND_FLEX_VALUES_TL FVT
WHERE CHQ.CHECK_ID = INVP.CHECK_ID
AND INVP.INVOICE_ID = INV.INVOICE_ID
AND INVL.INVOICE_ID = INV.INVOICE_ID
AND INVL.LINE_NUMBER =
(SELECT MIN(LINE_NUMBER)
FROM APPS.AP_INVOICE_LINES_ALL
WHERE INVOICE_ID = INVL.INVOICE_ID
AND LINE_TYPE_LOOKUP_CODE = 'ITEM'
AND DISCARDED_FLAG = 'N')
AND INVL.INVOICE_ID = INVD.INVOICE_ID
AND INVL.LINE_NUMBER = INVD.INVOICE_LINE_NUMBER
AND INVD.DISTRIBUTION_LINE_NUMBER = 1
AND INVD.DIST_CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND FV.FLEX_VALUE_SET_ID = 1013043
AND FV.FLEX_VALUE = GCC.SEGMENT1
AND FV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
GROUP BY CHQ.ORG_ID,
GCC.SEGMENT1,
CHQ.VENDOR_ID,
CHQ.VENDOR_NAME,
FVT.DESCRIPTION,
--INVL.PRODUCT_TYPE,
INVL.PERIOD_NAME,
--chq.check_date,
INVD.DIST_CODE_COMBINATION_ID) O397424
WHERE ((O397424.ORG_ID = O378524.ORGANIZATION_ID) AND
(O397424.DIST_CODE_COMBINATION_ID = O394875.CODE_COMBINATION_ID))
AND (O397424.AMOUNT_PAID > 0)
AND (O397424.PERIOD_NAME = /*:"Period"*/'DEC-09')
-- AND (O394875.INV_ORG = :"Inv Org")
AND (O378524.NAME = /*:OU*/'Barrick Yilgarn')
ORDER BY O397424.AMOUNT_PAID DESC;
Edited by: Soma Sekhar D on Feb 24, 2010 11:46 AMHi,
In the report I have two worksheet. The Ist worksheet has the same calculated columns as 2nd worksheet. Even the calculations are also the same. The only difference is I use different folder for the 2nd worksheet. For 2nd worksheet layout only the calculated columns will not display the result.The other columns displayed the result properly. Even in the Ist worksheet all the columns including calculated columns displayed the result correctly.The calculations are same in the 2nd worsheet with calculation names different and items coming from different folder. As these calculations are working properly in Ist worksheet,why its not appearing in the 2nd worksheet? The query I paste before is the Discoverer show sql query for 2nd worksheet.
Please help.
Maybe you are looking for
-
How do I select multiple photos from iPhoto and upload them to a Facebook album?
I have transferred ALL my photos from my iPhone into my Mac. They are now in iPhoto. I recently created an album and I want to put the photos from iPhoto into it, but not all the photos. I have quite a lot of photos to put in, and I don't know how to
-
Something happened in the last day with FF. IE downloads files correctly. FF Delicious bookmarks open up a page with blue links that look like an outline but they are not my links. My downloads do the same. No virus.
-
I am trying to re-install Acrobat Standard 9 on a new laptop. I have the correct serial number, but when I try to download from the Adobe website only Acrobat Pro 9 will download and it states my serial number is incorrect. How to resolve?
-
BUG No Toplink with HSQLDB support
1. Start HSQLDB in server mode 2. Log in as SA 3. Create two tables (in public schema, which is the default) with parent-child relation 4. Create new schema, switch to new schema 5. Create two tables (in public schema, which is the default) with pare
-
LMS 3.2 credentials/username question
I recently installed the trial version of LMS 3.2 on a single server (10.1.1.1). Now my head is spinning over what credentials i'm using vs authorization to modify a routers config vs device config. etc etc. I've added a bunch of devices, but I cann