Conditional highlighting on cross-tabs
Does anyone know if it is possible to conditionally highlight a field in cross-tab based on another field in the table? The field we're using to condition is not in the cross-tab, nor do we want it to be in the cross-tab. We need to highlight a report field based on another field from each record reported. Highlight expert won't let you highlight the field unless the field is in the cross-tab.
yes it is possible
Select the field from Cross Tab which you want to Highlight Right Click Select the Format Field
Select the Font TabÂ
Select the formula button next to color
Then enter the formula
IF field not in cross tab = somevalue then
mention the Color Code which you want....
Thanks
Rahul
Similar Messages
-
Conditional Format in Cross-Tabs
Hello,
i have a problem with conditional formatting in cross-tabs(Word-Template-Builder)
My Cross-Tab looks like:
+++++++++++++++++++ColumnHeader1
+++++++++++++++++++ColumnHeader2
+++++++++++++++++++ColumnHeader3
RowHeader 1 | Row Header 2 | Data
First Problem: If "Row Header 2" has a certain value, the whole row should have a different background-color or borderthickness should be different
-i tryed it at "Row Header 2" with +<?if@row:...?><?attribute@incontext:background-color;'lightgrey'?><?end if?>+ but this will only effect the background-color of "RowHeader 1" and outside of the cross-tab. Formatting font-style works fine with this solution.
Second Problem: Similar to first problem. If "ColumnHeader3" has a certain value, the whole column should have a different background-color or borderthickness.
-i tryed it at "Column Header 3" with +<?if:...?><?attribute@block:background-color;'lightgray'?><?end if?>+ but this will only effect the background-color of "ColumnHeader 3".
In case i have to do the conditional formatting at cell ("Data"), how can i address the fields "columnHeader3"/"RowHeader 2" in the if-clause?
Thanking you in anticipation.drop me mail to MY id in Profile Location, with template and xml.
i can help. -
Conditional Formating Issue - Cross Tab
Hi all,
I'm trying to create a cross tab with some conditional formating of background colour..
eg
i have a background formula of:
if {@concat} like "*1" then crGreen else
if {@concat} like "*2" then crYellow else
if {@concat} like "*3" then crRed
my cross tab looks like:
Subject
Name {max of concat}
But when previewed its not displaying colours correctly eg:
Art English Maths
Joe Blogs ??1 ??2 ??3
Art result should be highlighted GREEN
English result should be highlighted YELLOW
Maths result should be highlighted RED
Instead every subject result is GREEN? Has anyone seen this before? Have any ideas to resolve ?
Thanks Again,
SlashABSOLUTE GENIUS. Works like a charm!!
Many Thanks,
Slash. -
PeopleSoft XMLP : Conditional Formatting for Cross tab report
I have developed a XMLP cross tab report using ps query. Report runs good for (.htm,pdf,rtf) extension . But I am unable to format the data based on condition.
Code which get displayed at the data field : <?sum ($G1[(./DESCR=current()/DESCR)]/JOB_REQ_NBR)?>
any help ot suggestion ?
Report layout(table) in .rtf format
H GDESCR*E* Total (Header Row)
GXLATLONGNAME G999*E* 999*E*
CTotal G999*E* 999<?xml version="1.0" ?>
- <query numrows="10" queryname="HF_EREC_BU_JOBREQCOUNT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="">
- <row rownumber="1">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="2">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="3">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="4">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="5">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="6">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="7">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="8">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="9">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
- <row rownumber="10">
<XLATLONGNAME>XLATLONGNAME sample data</XLATLONGNAME>
<DESCR>DESCR sample data</DESCR>
<JOB_REQ_NBR>JOB_RE</JOB_REQ_NBR>
</row>
</query> -
Conditional format in cross tab
Post Author: RobotSlave
CA Forum: Charts and Graphs
Hello All
Crystal 2008 12.0.0.549
I have a crosstab report in that repeats in each GF1 that displays values for several variables over an eleven month span, for instance a shortened data set might look like this:
FEB MAR APR MAY ....
Claims 1233 876 666 888 ....
sold 987 987 7 7 8 888 ...
etc...
I want to display conditional formatting such that if a value in the claims row is over 800, make the font RED for that column only. When I use a conditional formatting formula in the format editor font dialog, it makes the whole row red, when the values clearly do not all meet the required "800". I have experimented with making certain my value is a number and not a string, and I'm stymied. Does anyone have any input?Post Author: rsvn
CA Forum: Charts and Graphs
use formula field. Write your condition in that formula field and in select the display string option of the column in the report.Make the display string output as the output of formula field.for eg. @formula -
Formula Field if e>800 then conditionelse condition; Number -
column in field. Display string option (at the bottom of the field format object --general tab) map the output of the formula field -
Hi There
I need to create 3 cross tabs in one crystal report with different condition, how i can do that?
for example, in one cross tab, i only want to show last year's information, in another one, i want to show this year's information
is there a way i can add some condition with the cross tab?
thanksI think what Ian means is....
Right now you have you cross tab set this way..
2008 2009
Location1
Location2
Location3
He wants you to switch rows to cloumns and make the Year your first Group.
Then you'll have
Location1 Location2 Location3
2008
2009
This way all your locations show up in your cross-tab.
Hope this makes sense.... -
i use the display string conditional formula on cross-tab row header. but it ends up every row has the same value.
how can i solve this? is that possible to do it in crystal report?
thanks,Hi,
could you please make it more clear what exactly u want to display and what is the problem that u r facing in doing the same.
Regards,
Misra p. -
Problem using a conditional suppress in a cross-tab ?
is there a problem using a conditional suppress in a cross-tab on a row or summarized field in crystal XI?
I am using the following conditional suppress on a summarized field and its rows
If {@SortCode}=4 then true;
Sortcode is a group sorting formula field
the summarized field is a formula field as well.
All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode and the summarized field when not using the condition
it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
the cross-tab is necessary as a client may have columns spanning one to many pages
thanks for your helpHi I have a similar problem,
I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
Totals
01/11/2010 4
03/11/2010 2
05/11/2010 8.5
in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
05/11/2010 8.5
so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
How can i do that? -
Help on conditionally Formatting Field in a Cross Tab
Hi all,
I like to conditionally format a number field in a cross tab, ie. on a certain column the number should show 2 decimal places, otherwise no decimal places. I have tried a formula in the Decimals of the Format Field, If {Command.COL_TITLE}= "G"
Then
2
else
0.
Column G is the one that is to display the number in 2 decimal places. The formula runs, but it never {Command.COL_TITLE}= "G" is never true, ever. COL_TITLE is the columns of the Cross Tab.
Any ideas ?
Thanks
AustinAustin,
If you are trying to format a column then try using the GridRowColumn function.
In the Customize Style tab highlight the column field and check what the alias for formula is. Then format the decimal places for the summarized field with a formula similar to the following;
If GridRowColumn("Alias for formula value") = "G" then 2 else 0 -
To highlight top 3 summary values in cross tab
Crystal report XIR2
cross tab
how to highlight top 3 column/row values with a different font colorHi Phani,
I don't see a way to do this in CR XI R2. If at all there is a way, then it has to done via a Mock Crosstab.
-Abhilash -
Cross-Tab Conditional Formatting
Hello Everyone
I have a question, I am working with on a cross-tab table version 2008 that requires a dollar symbol in some of the columns, but not all of them. I tried to fix this problem with a conditional formula, but for those columns that are calculated members, it does not work. Any ideas? Your help will be greatly appreciated.In Format Field -> Common there is a formula called Display String. Use this to output the exact string that you want to display in the report. Perhaps something like (basic syntax):
if GridRowColumnValue("Group 1") = "Sales" then
formula = "$" + cstr({CurrentFieldValue, "0.00")
else
formula = cstr(CurrentFieldValue, "0")
end if
which will show something like $123.45 in the Sales column, or 123 in the Qty column...
HTH,
Carl -
Conditionally Format Cross Tab Field
I have a cross tab report that I want to conditionally format text color if row# 5 meets my criteria. Below is the formula I am trying in the Format Field editor.
if {@Type} = "8=POH"
then crred
(I have also tried adding the else statement.....else crblack)
I get no results when I try this. I can change the text color via the formatting toolbar, but this changes all data in all 6-8 rows.
Is there another method to conditionally format the row, or is it just not possible?
ThanksI just learned this yesterday, so here goes.
In the suppresion formula for the column total, enter the following expression:
numberVar x:=0;
False;
This is going to reset the row count for each column
Then in the suppression formula for the summary field, enter the following expression:
numberVar x := x + 1;
False;
And in the font color conditional formual, use the following expression:
numberVar X;
if (X = 5) and ({@Type} = "8=POH") then crRed else crNoColor;
This should give you a red 5th row if the type condition is met
Fuskie
Who cautions that he does not know what the {@Type} formula contains and that it might need to be modified to be used in this context... -
Cross Tab - Item condition visible
Hi All,
We want to be able to check for a status code
on the inbound data via a condition but we don't
want the status code visible in the crosstab or
page item. Is there a way to do this?
Condition:
status_cd IN ('O','C')
Status_cd pops up in my cross tab.
Thanks,
-GusThanks! We figured it out... We pulled in a join item
from the folder we needed and was able to condition
the results from any items within that folder.
Makes Sense...
Thanks Anyway,
-Gus -
My cross-tab report currently has 15 columns (let's call them A,B,C, etc.)
I would like A,B,C in one cross-tab - and the rest of the columnes in a second crosstab, but haven't figured out how to filter the crosstab to limit which fields appear in which chart.
Many thanks in advance!
WendyHere's a fudgy workaround to get what you need... (Why do most of my answers here start like that?)
Caveat: It'll only work if the group names (A, B, C etc) are static (eg: not dates for the past month), and you know which groups you want in each crosstab (I think you do).
1 - Create another section below the one where your existing crosstab it, and copy&paste the existing crosstab into it - you'll now have two crosstabs.
2 - In your first crosstab, go to the "Group Options" for your groups - change the sort order to "Specified Order" and select the items you want to show (say, A, B, C). On the "Others" tab, choose "Discard all others".
3 - On the second crosstab, do the same, but choose D, E and F for the specified order (and still discard all others)
This will leave you with x-tab1 showing A, B and C, and x-tab2 showing D, E and F.
Yeah, not really "conditional" as such, but at least you've got it to display the way you want...
Hope this helps...
J -
Conditional Formating of rows and columns in template(cross tab)
Hi,
I am developing a cross tab report in which I have row header as the year like 2008,2007,2006....column header as months jan,feb,mar...and the data area contains the respective data...I need to format the background color of the rows and columns which are below the date of the report(report is ran for a particular month like mar-08)..I was able to format the background color of all the rows that fall below(ex:08) the year of the report(using <?if@row:row_name<'$first'?> <xsl::attribute name="background-color" xdofo:ctx="incontext">#C0D27F</xsl::attribute><?end if?>)..
and I need to format the 3(till march) columns in the yr 2008
Thanks...Hello..
Thanks for the reply...
I have report date as mm|yyyy...below is a sample data of the cross tab..
<Q1>
<REPORT_DATE>04|2005</REPORT_DATE>
</Q1>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>JAN</MONTH_BEGIN_DATE>
<BEGIN_DATE>2004</BEGIN_DATE>
<NET_ROR>1.32</NET_ROR>
<ACTUAL_DATE>01/01/2004</ACTUAL_DATE>
<FUND_FACT_YTD>7.942192987387475647074276803933198866</FUND_FACT_YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>JAN</MONTH_BEGIN_DATE>
<BEGIN_DATE>2005</BEGIN_DATE>
<NET_ROR>-.21</NET_ROR>
<ACTUAL_DATE>01/01/2005</ACTUAL_DATE>
<FUND_FACT_YTD>5.739540457478967975310388578877768035</FUND_FACT_YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>FEB</MONTH_BEGIN_DATE>
<BEGIN_DATE>2004</BEGIN_DATE>
<NET_ROR>.59</NET_ROR>
<ACTUAL_DATE>02/01/2004</ACTUAL_DATE>
<YTD>7.942192987387475647074276803933198866</YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>FEB</MONTH_BEGIN_DATE>
<BEGIN_DATE>2005</BEGIN_DATE>
<NET_ROR>1</NET_ROR>
<ACTUAL_DATE>02/01/2005</ACTUAL_DATE>
<YTD>5.739540457478967975310388578877768035</YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>MAR</MONTH_BEGIN_DATE>
<BEGIN_DATE>2004</BEGIN_DATE>
<NET_ROR>0</NET_ROR>
<ACTUAL_DATE>03/01/2004</ACTUAL_DATE>
<YTD>7.942192987387475647074276803933198866</YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>MAR</MONTH_BEGIN_DATE>
<BEGIN_DATE>2005</BEGIN_DATE>
<NET_ROR>-.2</NET_ROR>
<ACTUAL_DATE>03/01/2005</ACTUAL_DATE>
<YTD>5.739540457478967975310388578877768035</YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>APR</MONTH_BEGIN_DATE>
<BEGIN_DATE>2004</BEGIN_DATE>
<NET_ROR>-.07</NET_ROR>
<ACTUAL_DATE>04/01/2004</ACTUAL_DATE>
<FUND_FACT_YTD>7.942192987387475647074276803933198866</FUND_FACT_YTD>
</Q4>
<Q4>
<CLASS_ID>1</CLASS_ID>
<MONTH_BEGIN_DATE>APR</MONTH_BEGIN_DATE>
<BEGIN_DATE>2005</BEGIN_DATE>
<NET_ROR>-.87</NET_ROR>
<ACTUAL_DATE>04/01/2005</ACTUAL_DATE>
<YTD>5.739540457478967975310388578877768035</YTD>
</Q4>
MONTH_BEGIN_DATE goes as the column header, BEGIN_DATE goes as the row header and NET_ROR is the data area..I need to get the background color of each cell of NET_ROR below the report date as one color...
Thanks ..
Maybe you are looking for
-
How to upload a image or flash file as blob object in a table.
How to upload a image or flash file as blob object in a table. What are all the possible ways we can do it.
-
I have the ipod classic and recently I updated Windows 8 to 8.1 since that time I can no longer open iTunes, meaning I cannot add any music to the ipod. i have googeled the issue and got the 'uninstall-download latest software from Apple download' bu
-
How can i find area under a closed curve
I am having set of Y-values w.r.t X-values.When i am using numerical integration.vi to measure area, it is showing wrong answer.Is there any other vi to find the area under a closed curve.
-
Bapi or FM for insertion of status for PS project
Hi, Is there any FM or BAPI through which we can insert status into Projects. in project defination (CJ01) or (CJ02) in basic data tab there is field system status. in front of this field there is push button for maintaining status of project. Where
-
Those website which dont show identification are not opening
those websites which do not show certification are not getting open == URL of affected sites == http://oojji.com