Cross-Tab by Week Starting on Tuesdays
Post Author: mhortman
CA Forum: Formula
I would like to create a cross-tab for every week last month. Easy enough, then my boss tells me "Our weeks don't start till Tuesday."How do I change that in a Cross-Tab?
Post Author: V361
CA Forum: Formula
You will need to create a formula, you should be able to use the formula in the cross-tab.
When you rightclick the crosstab, select, cross tab expert, you should have an option for a new formula. or you can just use one, if it exists already, the formula will replace the existing field, wherever that is on the CrossTab
Similar Messages
-
Ical: print calendar week starts with tuesday
Every time I try to print my Calendar (iCal) calendars, they print with Tuesday (torek in Slovenian) as the first day of the week (in either Month or Week version). Always. I tried everything — turning some calendars on and off, and it doesn't help. I have Monday set as the first day of the week and the preview in Calendar (iCal) is working correctly, the problem is just with printing. Basically, I just can't print the normal week or month calendar with Mondays as the first days of the weeks (Monday = Ponedeljek).
Is this bug only present in Slovenian version or elsewhere too? Can I fix it somehow?
The Calendar is working fine, pon (Monday is the first day of the week:
When trying to print it, first day is switched to torek (Tuesday) — here in month view:
The same problem with the week view:Changing the 1st day of the week to Sunday usually corrects this bug.
Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
Feedback
Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
Feedback via Apple Developer -
BI Query - Date Selction- week starts Tuesday
Gurus,
We have EP, BI ABAP and JAVA systems on Nw7. All end user executes queries trough EP.
There are few BI queries where users need to enter date for execution of query.
For execution of such query user is entering date using F4 (search).
Select values for Calendar day (COMICAL 0003)--> Opens calendar and it is fine. Issue is week of this calendar starts with Tuesday.
This behavior varies with workstations. Over few work station calendar week starts on Monday which is required.
However over few workstations week starts on Tuesday.
Any guess which property of work station needs to be tuned to have week starting from Monday.
ps: I have checked Data and time setting of work stations and they are same.
Thanks !!
ARDAny luck over this vage issue....
-
My iCal display shows the week beginning on Mondays, but when I print it, the week starts on Tuesdays. How can I fix this?
Grrrrr only just upgraded to Yosemite and I gather from the above posts that this glitch has still not been sorted out! Have to go to settings and set start of week to Sunday to get it to print starting Monday - that's mad! Come on Apple sort it out. Have to keep switching back and forth as I have to print out iCal for my accounts. Cross face
-
Hi,
i would like to add additonal data to the row-label in a cross-tab.
....................... C1 C2 C3
Customer1
.... add.Data1
Customer2
.... add.Data2
Customer3
.... add.Data3
How can i do that?
The link between the Customer-Table and the Extra-Data is the customer-id and a Date-Field (parameter of the report - used for filtering on a date-basis).
Table for extra data:
customer-id date amount
DATE is a parameter of the report.
Is there any way to do this?
(I use CR XI).
Result should look like this:
Selected Date (Parameter): 2009-02-02
...................................................... C1 C2 C3
Customer1 +
....amount on 2009-02-02 for C1
Customer2 +
....amount on 2009-02-02 for C2
Customer3 +
....amount on 2009-02-02 for C3
THX in advance,
MarkusHi,
Lets phrase it differently again
i have a second table from which i would like to add additional information to the row-information in a cross-tab.
customer.... date ... amount
Cust1....2009-02-01.... 10
Cust1....2009-03-01.... 15
Cust1....2009-04-01.... 77
Cust2 ........
Cust3 ........
I need ONLY the first amount from the starting-date in the CROSS-Tab.
The starting-date is a parameter in the report.
If i put there the linked amount-field i get a row for each different date.
I need only one row per customer with the first amount from date 1. (the parameter-date-value)
So if i enter 2009-03-01 as the parameter, i would like a cross tab with a row-name of:
"Customer1 + ChrW(13) + 15 "
It works with a SQL-Expression (named "StartSaldo") like:
(Select Saldo from Goldbeck_Saldo where D_Date = '20090301'
and "Goldbeck_Saldo"."I_PERSID"="BaseTable"."I_PERSID")
and a row name of "Customer.Name + ToText({%StartSaldoSQL})
However the Date "20090201" is hard-coded there.
I can find no way to make the Date from the SQL-Expression soft-coded (pass the parameter to the scalar SQL-Expression). According to another forum-post this is not possible.
THX
Markus
Edited by: Cumulus7 on Apr 27, 2009 4:25 PM -
Cross-Tab Starting in Second Page
Crystal 11
I created a cross tab report that results in a single grid that is sometimes longer than one page. When it is less than one page, the cross-tab grid begins on page one. But when it is greater than one page, it leaves the first page blank and starts on the second page. How do I make it start on the First page regardless?
I removed the "keep together" in the section expert and I was told about a "Keep Object Together" in the Cross tab expert but I did not find it in there but I did find a "keep columns together". But none of that fix it.
Help?
Thanks.Did you check whether the New Page Before check box is selected? If this is selected it adds an extra page.
Well, 'Keep Objects Together' can be found by righ clicking on the CrossTab and selecting Format CrossTab from the context menu.You can also select an object inside the CrossTab i.e Row/Column and right click and select 'Format Object' --> Common tab -->Somewhere down the screen you will see 'Keep Objects Together'
Hope this helps! -
Hi I have created a cross-tab report using only two fields. enrollment_id and create_date. What is needed is a count of the # of enrollments and a summary for the week starting on Sunday. I have been able to do this however, they only want for the previous 4 weeks - I am returning all weeks since the start. I am not sure where to filter. Here is what I used in a regular report which worked but is not working in the cross-tab. The formula below gives me up to the last 4 weeks sunday to today.
not ({ISSUANCE.CREATE_DATE}in Last4WeeksToSun) and
not ({ISSUANCE.CREATE_DATE} in WeekToDateFromSun)
Here's what it should look like and includes a count up to today for week of 11/30.
Site_name 11/02/08 11/09/08 11/16/08 11/23/08 11/30/08
#issued 25 29 16 18 15
Any help would be appreciated.I figured this one out....needed to take out "not"
-
Hello everyone...
Here is some quick background info on my project:
1) I am attempting to write a Crystal Report (version 10) to automatically capture crime statistics for a previous time period based on a current time period entered into the Crystal Report parameter. The current date range to automatically be captured is the previous seven weeks. For example, if a user enters the date range of June 15, 2008 - August 2, 2008, the Crystal Report will automatically gather data for the two date ranges of April 27, 2008 - June 14, 2008 (the previous date range) and June 15, 2008 - August 2, 2008 (the current date range). The purpose of this is to automatically gather crime statistics for two equal date ranges to compare crime rates.
2) I have been able to successfully construct a formula to gather the previous date range.
3) I have constructed a cross-tab but I am having difficulties formatting the cross-tab to display data as I desire.
With the background of my project now described I will move into the main problem I am experiencing. I am able to display the data for all the necessary weeks in the cross-tab; using the same date range above I am able to show data for the fourteen weeks of April 27, 2008 - August 2, 2008. However, I wish to have a single cross-tab display the grand totals for just the previous date range while having weekly totals and a grand total for the current date range.
Using the same date ranges above as an example, the date range of April 27, 2008 - June 14, 2008 will show just the grand totals for all seven weeks of that period. Conversely, I would like to have the date range of June 15, 2008 - August 2, 2008 show weekly totals as well as grand totals for all seven weeks of that period.
I would like to keep all this data in a single cross-tab due to having to put the data in another crime analysis report.
Any help you can provide is most appreciated...let me know if I can provide further info. Just so you know I am a bit of a beginner when it comes to Crystal Reports.Hello, you might try this:
1) Create a formula field in your details section with this:
Whileprintingrecords;
If (table.date >= "start date of your pre-date range" and
table.date <= "end date of your pre-date range") then 'Pre-Date'
else
if (table.date >= "your 1st week start" and table.date <= "your 1st week end") then 'Week 1'
else (if table.date >= "your 2nd week start" and table.date <= "your 2nd week end") then 'Week 2'
else .... for the 7 weeks you want a separate column.
2) create the cross-tab and put the formula field as the column.
3) I believe if you right-click on the total field to the far right and "Format Field" you can use the "Display String" option to delete the sum of the previous week's from the CurrentFieldValue and use the TOTEXT() function to display it. This will only display the sum of your current 7 weeks.
You may want to go change the "Group Options" for the column to Sort in "Specified Order" and create named groups for each of your column headings. I can explain how you would do this if you need it. -
How to Display two different objects in a single table header in Cross Tab?
i All,
I've a reqiurement for a Cross Tab Report like I need two different objects that should be displayed side-by-side, one object's values after another in a single header. In the picture below I've shown the objects separately in two rows, top header having BSNLNL,MTNLNL,RCOMNL and Header-2 having AIRTIL,RCOMIL. But requirements needs to be showing like this,
BSNLNL
MTNLNL
RCOMNL
AIRTIL
RCOMIL
Actually, the data for the header comes from a single object called Operator. I've show the Operators name ending with NL and after that names ending with IL. So, i've separated the data into two variables using the below formulae.
IL:
=[Billing Operator]
Where
Match([Billing Operator];"*IL")=1
NL:
=[Billing Operator]
Where
Match([Billing Operator];"*NL")=1
Also, the NL data should start first and after the NL data's last value ends, the IL data should begin.
One more thing is that I've to show '0' for null values. So i've used the below formulae on the column data. You can see below that except the "Outgoing ILD Mins in the month from Mobile Network" everything else showing fine. I don't understand why.
=If
Substr([Franchise];3;1)="M"
Then
[Mobile Outgoing Charged Usage Minutes]
Else
0
I tried different approaches but couldn't find a solution. Could you please help me?
I'm using BO WebI 4.1 SP1
Regards,
Naren Vema.Hi Naren,
No need to split Billing Operator object. Create a variable-
V_IL_NL= If Match([Billing Operator];"*IL")=1 Then "IL" ElseIf Match([Billing Operator];"*NL")=1 Then "NL"
1) Put V_IL_NL variable below Billing Operator object header.
2) Sort and create break on this variable.
3) Delete Footer column. it will automatically create when you apply break.
4) Hide V_IL_NL variable from this header.
~Anuj -
Dynamically color to each column in Cross-tab report
Hello All,
I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.Hello Manish,
I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
The nested formula is as follows;
numbervar array l;
numbervar array u;
numbervar x:=CurrentColumnIndex;
if GridRowColumnValue ('@limit') = 'lower limit' then
(redim preserve l[x];
l[x]:= tonumber(CurrentFieldValue))
else if GridRowColumnValue ('@limit') = 'upper limit' then
(redim preserve u[x];
u[x]:= tonumber(CurrentFieldValue));
false
So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
numbervar array l;
numbervar array u;
numbervar x;
if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
crred
else
crblack
So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
Regards,
Graham -
How to display a row in Cross Tab when the count summary is zero
My customer wants a row for all possible data, even when the count is zero. How can I get a row to display when there is no data? Using an example: Display status for incidents - possible five statuses, but selection only results in four statuses because no incident were cancelled. Customer wants all five statuses to display in cross tab with cancelled showing '0' (zero))
Open
WIP
Cancelled
Pending
ClosedThis worked for the last guy who had a similar issue.
Take a look at what it's doing. You should be able to use the same principal to meet your needs...
I'm assuming that you'll only need to show 4 weeks at a time on your report.
The easiest way to do it is by creating 8 separate formula fields:
W1A
W1RT
W2A
W2RT
... and so on
I don't know how your data is coming across but the formula should go something loke this:
W1A... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
W1RT... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
W2A... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
W2RT... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
... and so on
If I got you weekly criteria wrong, sorry. It's just a best guess.
Anyway you should be able get the idea. It gives you the effect of a crosstab without the headaches of a crosstab.
Hope this works for you,
Jason
Edited by: Jason Long on Jun 28, 2008 3:19 AM -
I have a cross tab with a date in column 1. I have it grouped by week. This makes the date displayed as a Sunday date, since day 1 is Sunday. If I change the group option to last day, it displays a Saturday date. I would like to see this date as a Friday date.
Is there a formula I should use, or is this a CR option that I should change?
Thanks for any input.Hi,
Create a formula as
DayOfWeek ({Orders.Order Date},crFriday)
Insert the group on this formula.
In group Options > Options > Select the option use a formula as the grooup name> insert the date field as totext(Datefield).
Regards,
Vinay -
Hi,
I have generated a cross tab report. The entire data is in 9 pages. On the top I can see 1/1,2/2 etc and not 1/9,2/9 etc
If i click on the last page and then start from page one I get 1/9 but I want to get the numbering as 1/9 as soon as the user clicks to view the report.
Pls suggest me something.
ThanksI have placed the pagenofm in both the report header and the page header with the crosstab in both the report header and group header.
What else is in the report?
If you create a new report with just the crosstab and the pagenofm do you see the same behaviour? -
Additional columns in Cross tab
If I have Project name as the column and project count as the summary in a cross tab
for eg
ProjectA,ProjectB, ProjectC
3, 4, 5
CaN i add additional columns next to project C having some condition related to these projects and project counts and then get the grand total??
ThanksLet's see... This is about the tenth time I've answered this question in the past few weeks, but, hay, let's do it again!
The only way I am aware of adding columns to a crosstab is by including new data in your database query. So, if you currently are returning the data
Project Count
ProjectA 2
ProjectB 4
ProjectC 5
Than, probably using a database command for the data source, change it to return
Project Count
ProjectA 2
ProjectB 4
ProjectC 5
Totals 11
How this is accomplished very much depends on your database tables and what additional columns you want to add to the crosstab.
HTH,
Carl -
Calculated members in cross tab
Hi all,
I have a profit and losses in a cross tab created by a group and I need to add some rows to have the totals.
For example
Revenue 1
Revenue 2
Revenue 3
Total Revenue
Cost 1
Cost 2
Total Costs
For total revenue I used a calculated members with that formula:
GridValueAt(GetRowPathIndexOf("Revenue 1"), CurrentColumnIndex, CurrentSummaryIndex)
+ GridValueAt(GetRowPathIndexOf("Revenue 2"), CurrentColumnIndex, CurrentSummaryIndex)
+ GridValueAt(GetRowPathIndexOf("Revenue 3"), CurrentColumnIndex, CurrentSummaryIndex)
but the problem is that if I haven't for example any data for revenue 2 an error occurs -->argument # 1of "gridvalueat" is out of range.
It's possible to check if the argument exist??
thankshi alessandro,
i just found your forum post in the unanswered list...hopefully you've already found the answer for this.
GetRowPathIndexOf is looking for the text in a specific cell and not the actuall Row or Column Name.
When it doesn't find it, its output is -1...so you can use that in your formula to ensure that it doesn't break.
for example, if you have a cross-tab that looks like
Canada 1006
USA 5555
Mexico 2331
GetRowPathIndexOf("Mexico") = 2 (as the index starts at 0 for Canada)
GetRowPathIndexOf("Brazil") = -1
hope this helps,
jamie
Maybe you are looking for
-
VPN not working after adding subinterface - ASA 5510
Hello, Currently I want to add a second lan (vlan) in a customers network. The new network will be for a wireless infrastructure. There is also VPN Configured on the ASA - One with L2TP for Windows Clients and an IPsec for Cisco Clients. Former we on
-
Nokia Messaging 10.0 on N97
Is this services free of charge or a subscription period followed by a charge? I like the look of it but dont fancy paying a subscription to it. Any help much appreciated.
-
Burning project with Toast, not built in burn utility
okay so here's the sitch. got the project finished. but iDVD won't burn it or let me save an image cause it's like .2GB over the disc space for an SL disc and I don't have a DL burner. It just says 'remove content' but theres' nothing I can remove. T
-
Ocsd.log and crsd.log
I am newbie to rac, i am see the following below message in ocsd.log and crsd.log in both nodes of 10.2.0.3 windows 2003, is it any sympton to failure or error? And both instances of are working fine. And one more thing lots of prefix CDMP_ files are
-
After upgrading to yosemite, my Cintiq lags when using photoshop, any fixes?
I've upgraded my iMac to Yosemite and photoshop CC 2014 lags when using my wacom cintiq. So far these are the steps I've taken. I've installed wacom drivers from nov 2014 because the jan 2015 drivers didn't help Doesn't seem to be a ruler issue withi