Conditional formatting with another column in pivot table
Hi everbody please help me!
My question is simple.
On my example I have
--------------------year1------year2----dif(my calculated item)
measure1-------100-------50---------50
measure2-------75-------100---------(-25)
For measure1;
I want to make "dif" green if year1 is < 100 and want to make "dif" red if year2 = 100 and etc...
Is it possible, I tried but could not achive conditional formatting when I use different column then dif...
Thank you for your help
Regards,
Can
Edited by: canmurt on Dec 27, 2009 9:44 AM
Thank you for quick answer, but there is no "Admin General privileges" :(
Do u know anything about first question
Access to Dashboards
Access to Answers
Access to Delivers
Access to Briefing Books
Access to Disconnected Analytics
Access to Administration
Access to Segments
Access to Segment
Access to List Formats
Access to Metadata Dictionary
Access to Oracle BI Publisher Enterprise
Access to Oracle BI for Microsoft Office
Regards;
Similar Messages
-
Is it possible to create a Column with Conditional Mandatory with another Column?
Is it possible to create a Column with Conditional Mandatory with another Column?
For example
In a Table we have column A, B, C.
A is Primary Column.
B is Optional
C is Conditional Mandatory.
A B
C
12345 ABC
OK
12346 NULL
NULL
12347 ABC
OK
Only if the B Column has the value then only C column should be mandatoryI guess you can't create a condtional mandatory column directly. However, you can use check constraint to on the column
create table YourTable
A int primary key,
B char(3),
C int,
constraint ch_con check(
B
is not null
or C is null -
Conditional formatting on total cells in pivot table
Hi, i have a pivot table with some values and percentages.
The percentages are in red if less then 0.
I have 1 row and 1 column of total values, but this cell aren't red if percentage is less then 0.
Does anybody know a solution for my problem?
ThanksThis is the example i create:
DIM A:
- Total A
- Value A
DIM B:
- Total B
- Value B
FACT:
- Value A (DIM A)
- Value B (DIM B)
- Actual
- LY
- Delta % (Calculated: 100*(Actual - LY)/LY)
Then i create the pivot table with B on rows (Σ on Total B), A on cols (Σ on Total A) and measures Actual, LY and Delta %. The last one has a conditional format on Delta % < 0.
This is the xml that i have:
<saw:report xmlns:saw="com.siebel.analytics.web/report/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlVersion="200705140" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sawx="com.siebel.analytics.web/expression/v1">
<saw:criteria subjectArea=""Test Conditional Formatting"">
<saw:columns>
<saw:column formula=""DIM A"."TOTAL A"" columnID="c0"/>
<saw:column formula=""DIM A"."VALUE A"" columnID="c1"/>
<saw:column formula=""DIM B"."TOTAL B"" columnID="c2"/>
<saw:column formula=""DIM B"."VALUE B"" columnID="c3"/>
<saw:column formula="FACT.ACTUAL" columnID="c5">
<saw:displayFormat suppress="default" interaction="default">
<saw:dataFormat xsi:type="saw:number" commas="true" negativeType="minus" minDigits="2" maxDigits="2"/></saw:displayFormat>
<saw:columnHeading>
<saw:displayFormat interaction="default"/></saw:columnHeading></saw:column>
<saw:column formula="FACT.LY" columnID="c6">
<saw:displayFormat suppress="default" interaction="default">
<saw:dataFormat xsi:type="saw:number" commas="true" negativeType="minus" minDigits="2" maxDigits="2"/></saw:displayFormat>
<saw:columnHeading>
<saw:displayFormat interaction="default"/></saw:columnHeading></saw:column>
<saw:column formula="FACT."Delta %"" columnID="c4">
<saw:displayFormat suppress="default" interaction="default">
<saw:dataFormat xsi:type="saw:percent" commas="false" negativeType="minus" minDigits="2" maxDigits="2"/>
<saw:condition>
<sawx:expr xsi:type="sawx:comparison" op="less">
<saw:columnRef columnID="c4"/>
<sawx:expr xsi:type="xsd:decimal">0</sawx:expr></sawx:expr>
<saw:displayFormat fontColor="#FF0000"/></saw:condition></saw:displayFormat>
<saw:columnHeading>
<saw:displayFormat interaction="default"/></saw:columnHeading></saw:column></saw:columns></saw:criteria>
<saw:views currentView="0">
<saw:view xsi:type="saw:compoundView" name="compoundView!1" rptViewVers="200510010">
<saw:cvTable>
<saw:cvRow>
<saw:cvCell viewName="pivotTableView!1"/></saw:cvRow></saw:cvTable></saw:view>
<saw:view xsi:type="saw:titleView" name="titleView!1" rptViewVers="200510010"/>
<saw:view xsi:type="saw:tableView" name="tableView!1" rptViewVers="200510010" showHeading="false">
<saw:columns>
<saw:columnRef columnID="c1" total="true"/>
<saw:columnRef columnID="c2" total="true"/>
<saw:columnRef columnID="c0" total="true"/></saw:columns></saw:view>
<saw:view xsi:type="saw:pivotTableView" name="pivotTableView!1" rptViewVers="200510010">
<saw:edge axis="page"/>
<saw:edge axis="section"/>
<saw:edge axis="row">
<saw:edgeLayer type="column" columnID="c2" total="before">
<saw:displayFormat visibility="hidden"/></saw:edgeLayer>
<saw:edgeLayer type="column" columnID="c3"/></saw:edge>
<saw:edge axis="column">
<saw:edgeLayer type="column" columnID="c0" total="before">
<saw:displayFormat visibility="hidden"/></saw:edgeLayer>
<saw:edgeLayer type="column" columnID="c1"/>
<saw:edgeLayer type="labels"/></saw:edge>
<saw:edge axis="measure">
<saw:edgeLayer type="column" columnID="c5"/>
<saw:edgeLayer type="column" columnID="c6"/>
<saw:edgeLayer type="column" columnID="c4"/></saw:edge></saw:view></saw:views>
<saw:prompts/></saw:report> -
Calculated Percentage Columns in Pivot Table loose formating in Excel
I have a simple report built using pivot table ( OBIEE 11.1.1.5.0)
1 Metric and 1 dimension using pivot table. and I duplicated the metric column and change it to % column.(Show data as % of column). SO far so good. Below is the snapshot
http://tinypic.com/r/2s14xa9/7
Now i download the report in excel and all the % values are messed up . Below is how it looks
http://tinypic.com/r/bede90/7
I tried messing with data formats etc..nothing works.. I cannot add a custom column format to the metric column since it will impact the derived % column.
Is this a bug ?Any pointers ..
ThanksHi,
Follow up this SR:
SR 3-5060435331: Calculated Percentage Columns in Pivot Table loose formating in Excel
Workaround: (not sure may be give a try)
also give a try like below one then try to download it may work.
In that % column -->add the below statement in the Custom CSS section of the column properties:
mso-number-format:"\@"
Refer snapshot here:
http://i53.tinypic.com/a09kqv.jpg
This will treat the data in the column as text while downloading to excel, hence retaining any leading or trailing spaces.
Thanks
Deva -
Calculation on two columns in pivot table
Hello all,
I have a view:
Dept Year Amount
Accounting $500 2010
Accounting $700 2011
Engineering $100 2010
Engineering $600 2011
and etc
pivot table:(data displayed side by side)
Dept: 2010 2011
Accounting $500 $700
Engineering $100 $600
Is there a way in pivot table to create additional column and do a calculation on that column? New column called 'Change' (actual calculation amount of 2010 minus amount of 2011 per each department). I see the feature which allows to duplicate the columns in pivot table. But this is it... no additional calculations.
Thank you in advance,
SonyaDeepak,
My "YEAR_NO' is already in the column area. Once I created 'calculated column' and entered formula '2011'-'2010' I got what I needed.
Thank you very much for the solution.
Sonya
In my view I also have column called EXPENSE. When, I added the 'calculated column' to 'YEAR_NO' with formula '2011'-'2010'. It created two calculated columns 1) after the EXPENSES and the other one after YEAR_NO. Is there a way to be specify to display the DIFFERENCE only once after the YEAR_NO??
Edited by: user8461308 on Dec 20, 2011 7:44 AM -
Post Author: vman
CA Forum: General
I am working a report that has had the details section format with multiple columns selected. I want to change the report and remove the check box, but it is grayed out. How can I get the report details section back to default without the detail size constraints?Post Author: rcoleman
CA Forum: General
Bearing in mind that I'm a relative newbie to the report writing/Crystal world...the only thing I can think of is that maybe the report was written using an older version of Crystal and this option wasn't available. Another possibility, if it's a sub-report, you might try making a copy of the sub-report saving it with the same name, deleting the old sub-report, replacing it with the copy you made. I know that has worked for me when I've had problems with the re-import when opening is greyed out. -
Label Column When Formatting With Mutliple Columns
When creating a report with multiple columns (setting the Format With Multiple Columns property in the Details section), is it possible to put a label column on the left side of the page, followed by multiple data columns? The idea would be something like this:
8/1/08 8/2/08 8/3/08 8/4/08 8/5/08
====== ====== ====== ====== ======
Metric Label 1 C1D1 C2D1 C3D1 C4D1 C5D1
Metric Label 2 C1D2 C2D2 C3D2 C4D2 C5D2
Metric Label 3 C1D3 C2D3 C3D3 C4D3 C5D3
Metric Label 4 C1D4 C2D4 C3D4 C4D4 C5D4
Metric Label 5 C1D5 C2D5 C3D5 C4D5 C5D5
The date on top will be a group 1 header. The metric labels to the left will be detail rows.
Fuskie
Who is turning once again to the CR Gurus...Hi Fuskie,
A quick suggestion will be to use a cross-tab instead of multiple columns to generate the desired output.
Another suggestion will be to use a subreport. The main report will be used to type the labels on the left side, and the subreport will be used to display the multiple columns information.
1. Create a report that will be used as a container for your multiple column report.
2. Add labels in the Report Footer of the report.
3. Insert your multiple columns report has a subreport in the Report Footer on the right of the labels
you created in the main report. On the main report
In the subreport, if you want to see the Group to appear as columns at the the top, you will have to include the group in the multiple-columns, and I will suggest to format the Group Footer with the option "Print at the Bottom of Page". This will ensure that your Group Header will always appear at the top like in a cross-tab, otherwise, it might display your data like:
8/1/08 C2D3
===== C2D1
Metric Label 1 C1D1 C2D1
Metric Label 2 C1D2 C2D2
Metric Label 3 C1D3 C2D3
Metric Label 4 C1D4
8/2/08
====
C2D1
C2D2 -
How to extend No. of columns for PIVOT table in BI Publisher Desktop
Hello Everyone,
I am using the Oracle BI Publisher Desktop to design the TEMPLATE for Oracle Reports.
I need to create the PIVOT table .In my PIVOT table I need to display 9 columns but when I tried to create PIVOT table by dragging 9 columns only first 4 columns are displaying in report.
Can anyone suggest me how can I increase the number of columns in PIVOT table?
Thank You.
Regards,
Guru.hi jim
if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
else send me your template and xml to my email id i can look into that .
email : [email protected] -
How can we modify the maximum no. of columns in pivot table ?
hi all,
How can we modify the maximum no. of columns in pivot table ?
do i need to change the nqconfig.ini or instanceconfig file or else?
thnx..A little search on the forum :
In the instanceconfig.xml add a <PivotView> element under <ServerInstance> if one does
not exist already.
Within the <PivotView> element add an entry that looks like:
<MaxCells>nnnnnn</MaxCells>
where nnnnnn is your desired limit for the maximum total number of cells allowed
in a pivot.
Warning: an excessively large number will cause more memory consumption and
slower browser performance.The details here :
Oracle BI EE (10.1.3.2): Maximum total number of cells in Pivot Table excee -
Repeat "Detail a" section when using "Format with Multiple Columns" layout
I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
Detail a (1)_____Detail a (2)
Detail b (1-1)___Detail b (2-3)
Detail b (1-2)___Detail b (2-4)
--Detail b (1-3)___Detail a (3)
Detail a (2)______--Detail b (3-1)
--Detail b (2-1)
--Detail b (2-2)
Thx, Scottthe format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
i think you may want to use a sub report -
Formating column in Pivot Table (Hyperion Interactive Reporting 9.3.1)
I have a simple pivot table with multiple columns (8) and I have 6 different pivots. I drag the pivots into the report section, but none of the column widths or row heights align properly.
How do you size the column widths in each pivot and I'm trying to avoid auto-size because that does not get it right.
Thanks,The 6 pivots are different because the rows indicate something entirely different. for example:
Pivot 1:
Row Label: Customer Gender
Column Label: Quarters (1-4)
Facts: Sales
Pivot 2.
Row Label: Customer ethnicity
Column Label: Quarters (1-4)
Facts: Sales
Pivot 3.
Row Label: Customer Age group
Column Label: Quarters (1-4)
Facts: Sales
Pivot 4.
Row Label: Customer City
Column Label: Quarters (1-4)
Facts: Sales
Then I grab each pivot and drag them into the report section to create 1 report.
A better solution? -
Report totals with dimension hierarchy column on pivot table incorrect
Hi,
I have a pivot table based report that has one dimension column, a dimension hierarchy column and various measures.
The row totals do not match, detail to total, and I have tried both complex server based aggregate and report based aggregation, but neither are giving me the correct answer.
I have also tried adding the column that is the same as the top level as the hierarchy, but hidden, but this does not help.
I have also tried adding the lowest level of detail column, but hidden, but this does not give me the solution I need as all of the figures then appear at detail not aggregated level.
Any ideas please?
thanks,
Robert.Can you validate the query hitting to the database and compare the results?
Mark if helps.
Thanks, -
How to hide/suppress empty columns in pivot tables
In a pivot table, is there any way to do something like "suppress missing data" to make an entire column hidden only if it is empty? I have a situation where I can't hide an entire measure because the measure has values for another dimension, but I would like to hide the column that is empty. See the example below. I would like to hide the combination of Dim1 and Measure 2, and the combination of Dim 2 and Measure 3. I can't hide all columns with Dim1 and/or Dim2, or Measure2 and/or Measure3. Is there any way to hide just the column with the empty combination? Thanks.
Dim1 Measure1 Always populated
Dim2 Measure1 Always populated
Dim1 Measure2 Always null
Dim2 Measure2 Always populated
Dim1 Measure3 Always populated
Dim2 Measure3 Always nullBhawna -
That made a difference, but it still needs some work. The IfNull() function picked up every value in the columns that I wanted to hide and changed them to zero. The conditional formatting that you suggested hid the content in those columns from the HTML. However, there ended up being several issues:
1) IfNull() picked up other null values that happened to be in the resultset, so the conditional formatting was applied to more than intended. I could correct that by changing the data value in the physical database columns for the entire pivot table columns that I want hidden, but then I have to work around having bogus values in those intersections. Still, that is a possible workaround.
2) The column headers for the columns that I want to disappear did not go away. When I applied CSS display:none, it shifts the pivot table cells to the left, so a lot of the data ends up under the wrong column headings.
3) CSS display:none only hides the content from screen readers. When I view the pivot table on the dashboard and print it to a PDF, the data in the columns that I want to disappear are back.
That still seems like it's a long ways from "suppress missing data" for the entire column. Thanks for your suggestion.
Daniel -
Conditional format with large data fails and show error as "Selection is too large" in Excel 2007
I am facing a issue in paste special operation using conditional formats for large data in Excel 2007
I have uploaded a file at below given location.
http://sdrv.ms/1fYC9qE
The file contains two sheets, Sheet "Data" contains the data on which formats are to be applied and sheet "FormatTables" contains the format tables which contains conditional formating.
There are two table in "FormatTables" sheet. Both have some conditional formats applied on it.
Case 1:
1. Select the table range of Table1 i.e $A$2:$AV$2
2. Copy it
3. Goto Sheet "Data"
4. Select data area i.e $A$1:$AV$20664
5. Perform a paste special operation on full range and select "Formats" option while performing paste special.
Result:
It throws error as "Selection is too large"
Case 2:
1. Select the table range of Table2 i.e $A$5:$AV$5
2. Copy it
3. Goto Sheet "Data"
4. Select data area i.e $A$1:$AV$20664
5. Perform a paste special operation on full range and select "Formats" option while performing paste special.
Result:
Formats get applied successfully.
Both are the same format tables with same no of column and applied to same data range($A$1:$AV$20664) where one of the case works and another fails.
The only diffrence is Table1 has appliesTo range($A$2:$T$2) as partial of total table range($A$2:$AV$2) whereas the Table2 has appliesTo range($A$5:$AV$5) same as of its total table range($A$5:$AV$5)
NOTE : This issue is only in Excel 2007Excel 2007 No Supporting formating to take a formatting form another if source table has more then 16000 rows and if you want to do that in more then it then you have ot inset 1 more row in your format table to have 3 rows
like: A1:AV3
then try to copy that formating and apply
Solution Case 1:
1.Select the table range of Table1 i.e AV21 and drage it down to one row down
2. Select the table range of Table1 i.e $A$2:$AV$3
3. Copy it
4. Goto Sheet "Data"
5. Select data area i.e $A$1:$AV$20664
6. Perform a paste special operation on full range and select "Formats" option while performing paste special -
Suppressing Columns in Pivot table when adding subtotal
Hi,
We have a dimension hierarchy like this:
Level 1 ---> Level 2 ---> Level 3
T ---> A ----> B1
T ---> A ----> B2
T ---> C ----> D
T ---> E ----> E
The report we are trying to build is of this format:
Row_Num --> Dimension --> Amount
1 --> B1 ---> 100
2 --> B2 ---> 50
3 --> A ---> 150
4 --> D ---> 75
5 --> C ---> 75
6 --> E ---> 100
When using Pivot table and subtotals, we are getting the report as below: (where for Dimension Value "E" there are two rows)
Row_Num --> Dimension --> Amount
1 --> B1 ---> 100
2 --> B2 ---> 50
3 --> A Total ---> 150
4 --> D ---> 75
5 --> C Total ---> 75
6 --> E ---> 100
7 --> E Total ---> 100
We do not want the subtotals to be calculated if Level 2 and Level 3 are the same.
Any ideas on how to achieve this?
Many Thanks,
SeetharamHi user7276913,
Are you sure you are using a Pivot Table view? Or are you using the standard table view?
In a pivot table, you can only have (n-1) sub-totals where n is the number of fields in your "Rows" section. So in your case you have two fields, so you can only have 1 sub-total. See my screen shot below where I have a similar situation:
!http://i47.tinypic.com/icux5y.png!
Note that in the screen shot only the first column has a summation and the second does not. This makes sense since a sub-total and the last column would be the same as the values being displayed in the "measures" section.
What you described in your post seems more like what I'm seeing in a standard table view
!http://i48.tinypic.com/34z12zp.png!
Based upon what I'm seeing in your sample report, it seems like you are missing some kind of line item number or transaction number or some field that uniquely determines a row. If you add this field into the pivot table you will get exactly what you want.
e.g. Pivot Table Rows = Customer # (with summation Enabled) , Document Type (Summation Enable), Line Number
Good luck and if you found this post useful, please reward points!
Best regards,
-Joe
Maybe you are looking for
-
Error raise OPERATION_NO_AUTHORIZATION. in FM SO_OBJECT_SEND
Hi Experts, Any idea why the FM is raising an exception OPERATION_NO_AUTHORIZATION. I have coded : CALL FUNCTION 'SO_OBJECT_SEND' EXPORTING FOLDER_ID = FOLDER_ID FORWARDER = ' ' OBJECT_FL_CHANGE
-
Full File path of the uploaded fie in struts
How do we get full file path from the FileForm component in Struts upload. Acutal requirement is that , in the file browser component, the user may select a file or he may paste and external link like http://www.xyz.com/abc/index.html etc.., How do w
-
Upgrade kernel26-firmware to linux-firmware report with some problem
Just now I upgrade my system from kernel26-firmware to linux-firmware, in X (Awesome WM). After press Y and pacman start downloading, I'm afk for a while (take a bath), when I'm come back My system freeze and proses show that system still make mkinit
-
Two Pages and Layout from One Data Source
Hi I need to find a solution where i can based on if a flag in the data is true or not generate a 2nd page which is slightly different in layout to the 1st page. But at this moment in time i'm struggling to understand how i can even get crystal to ge
-
Converting protected aac to purchased aac without itunes match
hi everyone. i want to convert a bunch of protected aac's to purchased aac's without signing up for itunes match. i'm willing to pay the 30 cents per song. i can't figure out how to do this though. previous discussions have included a link, but when