Conditional formatting based on another column
I created a conditional format in several columns, all based in a column: "Format Type". In a table view, the conditional formatting works very well for the metrics. For a text column, the conditional formatting only works if the column 'Type of formatting' appears on his left.Is this right? I don't remember having a similar problem with 10 OBIEE.
Now I use OBIEE 11.1.5
Thank you.
Bug 12772993 is listed under the 11.1.1.6 fixed
Hope this helps,
Scott
Tags: Business Intelligence
Similar Questions
-
How do column filter based on another column
In my report, I have column a thru d. I would like to create a filter based on another column where column is column B. I can enter a value that the column cannot be equal to, but I would use a column instead of a value.
Thank you.
JonathanTry this: icon on the filter columns->-> convert this advanced filter for SQL
You can reference any other columnBTW: Have you had a chance to look at my suggestion for your post
Tables from a Table -
Delete based on another column dublicate records
How can I remove duplicate records, based on another column.
the table structure
CREATE TABLE IA_EXPORT_LEVEL
(
A_NO VARCHAR2 (22 BYTE),
IM VARCHAR2 (18 BYTE),
ctn_level NUMBER (2)
)
reviews
A_NO IM ctn_level
S1 S1 1
S1 M1 2
S1 h1 3
H2 S2 1
S2 h2 2
S3 h1 2
S3 h1 3
S4 h6 4
S4 h6 5
I want to delete all records other than the minimum value of the ctn_level
output should like below
S1 S1 1
H2 S2 1
S3 h1 2
S4 h6 4
Published by: OraFighter on December 16, 2011 13:44DELETE FROM IA_EXPORT_LEVEL where rowid IN (select rid from (select rowid rid, row_number() over (partition by A_NO,IM order by ctn_level) rn from IA_EXPORT_LEVEL ) where rn > 1 ) /
Hope your question.
-
Get the cumulative values in a single column based on another column in reports
Hi all
I have a requirement to get cumulative values based on another column.I 'Sales rep name' in the first column.
Since there is no rank option in the PivotTable, I do this in the report table.
Correspondent "Values of the invoice line" in the second column.
Want to have cumulative of all the values for each sales invoice line.
Then apply rank and display the top 10 sales reps based on invoice lines.
Looking for the best entries...
Thanks in advance...Try below
2nd column: "name of Sales rep.
column 2: SUM ("invoice line values ' BY 'Name of Sales rep'") and sort this field desc.
3rd column: fx RANK (SUM ("invoice line values" BY "Sales rep name")), to hide this column, so that you don't confuse your users.and put the filter on the 3rd column below 5
I hope this works for you
-
Link conditional branching to two different pages, based on another column
Hello
I have a sql report in which 1 column is a link. I want to link to two different pages depending on the value of another column.
Example of
the sql is
Select a, b, c
x;
The link on column b must create a branch to the 500 page if c = 1 and on page 501 if c = 2.
Is it possible to do? Thank you.
SuniCan assign you points then accordingly...
Thank you
Tony Miller
Webster, TX -
Conditional formatting based on the other content of the cell
Hello
I watched tutorials and read other messages of conditional formatting. What I'm trying to do doesn't seem like it should be too difficult, but I can't it to work.
I created a spreadsheet of travel and I would that my cells spend every day to highlight when I went on the budget (budget in another table on another sheet)
My conditional formatting looks like this
Who works for the first cell that I put it to the top for the table. If I try to drag the rules to the bottom of the table, or highlight the entire table and and my rule number 1 shows what
and of course, it will not highlight.
This is an excerpt from the table, on that I try to apply highlighting
And that is the picture that source information.
I use a macbook pro under OS X El Capitan 10.11.1 and numbers 3.6.1 (2566)
Thanks in advance for any help!
Hello
It's looks you're new to spreadsheets... you must add a dollar sign in front of "The rest of the budget per day" (your 1st image), or check the 2 boxes like this:
To understand: http://www.notjustnumbers.co.uk/2011/05/excel-tip-dollar-sign-in-formula-fixing. html
See you soon
James
-
Filter column based on another column - OBIEE 11 g
Hi, I have a strange requirement. I am trying to build a dashboard that allows a user to view the data for the current day, last week, last month or last year. I'll create a presentation called "date_range" variable where the user can choose one of these 4 options.
On this basis, I defined a column in answers with the following formula:
Cast
(
case
When 1 = 0 then 'time of the query. "" Date ".
When @{date_range} {"day"} = 'Day' then Current_Date
When @{date_range} {'week'} = 'Week' then TIMESTAMPADD (SQL_TSI_DAY,-7, CURRENT_DATE)
When @{date_range} {"day"} = 'Month' then TIMESTAMPADD (SQL_TSI_DAY-30, CURRENT_DATE)
When @{date_range} {"day"} = 'Year' then TIMESTAMPADD (SQL_TSI_DAY,-365, CURRENT_DATE)
of another TIMESTAMPADD (SQL_TSI_DAY,-10000, CURRENT_DATE)
finish DATE
)
Based on the variable 4 presentation, this should give the good 'start date' when to extract data.
Now, I've added the effective date of the date dimension column. But I need to put a filter on the date dimension date column that says that it is greater than or equal to the above computed column. How do I do that?
Thank you
ScottI always expect that you are pregnant, but you cannot filter a column on another column. The solution is just to write a formula that returns a literal, so it will be
When case (your date column) > = (your long form), then put end to 'Y' else ' n
Then filter this column on 'Y '.
Kind regards
Robert
-
AF:Switcher, handfuls of line column values based on another column in the table
Hello
I have a question if you can help me on this. It's on af:switcher.
What I'm trying to do this - is in a table of the adf, based on the value of a column, I want another column to display as a link or not.
For example, if the status column is 1, then the id column display as a link (I just put a h:outputLink around outputText to do), if it is then show him without bond.
For this I put two different facets and opportunities switcher to decide what facet of show which line.
BUT what is happening is that only on opportunities is made. Either / or scenario. It is not made each line according to the value of the status column.
What is planned.I just tried with the dept table.
The lines for which the deptno > 20, I wanted to display the pass as link and for the deptno<=20, log="" will="" be="" an="" input="" text.="" it="" works="" fine="" for="" me.="" probably,="" you="" may="" need="" to="" get="" rid="" of="" h:outputlink="" and="" use="" commandlink="" golink="">=20,>
Arun-
-
Conditionally display the values in the column based on another column
Hello
I'm sure this has been covered before, but I can't find anything appropriate based on the research I've done.
I have 2 attributes in VO.
I have a table that displays this VO.
I still want to display header for both attributes, but I only want to show the value of attribute 1 in a row, if value of Attibute2 = 'I '.
If Attibute2! = 'I', so I want just the column for Attribute1 to be empty space.
I've not yet done anything with conditional expressions, and I wonder if someone could provide a link or a thread which is similar to this issue.
Thank you
JoelYou can do according to the post above, but if you are not interested in changing the original Version and I want to just change the user interface page only, you can do as in the example below:
lines = ' #{bindings. " Employee.rangeSize}.
emptyText = "#{bindings." Employee.Viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." Employee.rangeSize}.
rowBandingInterval = '0 '.
selectedRowKeys = ' #{bindings. " Employee.collectionModel.selectedRow}.
selectionListener = "#{bindings." Employee.collectionModel.makeCurrent}.
rowSelection = "single" id = "t1" >
headerText = "#{bindings." Employee.hints.Employeeid.label}.
ID = "c2" >
model = ' #{bindings. " Employee.hints.Employeeid.format}"/ >
headerText = "#{bindings." Employee.hints.Employeename.label}.
ID = 'c3' >
headerText = "#{bindings." Employee.hints.Salary.label}.
ID = "c1" >
*
ID = "ot2" >
model = ' #{bindings. " Employee.hints.Salary.format}"/ >
OutputText for the Attibute1, you can write the EL expression as:
*<>
* value = "#{rank." Attibute2 == "I"? "line. "{Attibute1:"}. "
* id = "ot2" > *.I hope this helps.
Thank you
Nini -
Display the value of the column automatically based on another column in a table
Hello
I use APEX 5.0, I have a requirement to display the field automatically based on the tabular presentation of other numbers.
in the screen shot attached above when I press Add button line a new line is created and enter the value in 'place no.', 'dept and identification of height place' when I press tab or get out of the column "height", "GID" should appear automatically.
To display the GID my query will be like that. "Select GID from x where no = '1011' place and dept = 88 and height = 88'.
How to get the value of from GID of the another value entered in Place no, dept and height in tabular form.
Thanks in advance
Ravi.
Hi Ravi
No need to point of Application or process. I just completed the task with the following steps
(1) create 4 hidden items
P2_SELWID
P2_SELDEPTH
P2_SELHEIGHT
P2_CALCWNAME
(2) gives 3 CSS classes in three columns of tables.
. WID
. DEPTH
. HEIGHT
(3) create the function jQuery for re - get three items from the page on a line if one of them has been changed.
Add the following code to the function and the declaration of global variables
function setRowItemValues(p_rownum){ wid_col_id = 'f02_' + rownum ; wid_col_val = $('#'+wid_col_id).val(); depth_col_id = 'f03_' + rownum ; depth_col_val = $('#'+depth_col_id).val(); height_col_id = 'f04_' + rownum; height_col_val = $('#'+height_col_id).val(); wname_col_id = 'f05_' + rownum; // set P2_SELWID,P2_SELDEPTH,P2_SELHEIGHT $s("P2_SELWID", wid_col_val ); $s("P2_SELDEPTH", depth_col_val ); $s("P2_SELHEIGHT", height_col_val ); $s("P2_SELWNAMEID", wname_col_id ); // Call the Dynamic Action to get WNAME if all values are not null if( wid_col_val != '' && depth_col_val != '' && height_col_val != '' ){ //Call DA to Get WNAME from WINT $.event.trigger("CalcWNAME"); // set the Tabular form $('#'+wname_col_id).val($x("P2_CALCWNAME").value); } }
and run when the Page loads
$(document).on("change", ".WID,.DEPTH,.HEIGHT", function(){ rownum = $(this).attr('id').substr(4); setRowItemValues(rownum); });
(4) create a dynamic Action to get WNAME based on a PL/SQL function. Note the submitted page elements.
CalcWNAME
(5) set of the corresponding element in the line of the function jQuery, after completing the DA.
Please check and I hope your problem is now solved.
Concerning
Mahmoud
-
Display a column based on another column
Hello
I work in the Apex 4.2.
I have a tabular presentation based on a query.
In this form, I have a column of link change with an icon. When I click it, I open a new page with the details of my record.
I want that this column appears only when the user is entitled.
So, I got in my request a new column based on a Pl/sql function that returns 1 when the logged-on user has the privilege package update the record.
I call this new column "can_update."
After that, I changed the "conditional display" property of my edit_link column.
In type of condition, I put: "value for the element / the expression 1 column = Expression 2.
I put in the expression 1: can_update
I put in the expression 2: 1
But it does not work as I want. colonm "edit_link" never appears.
and the can_update column return the good value 1 or 0 on depend on the recording.
Anyone has an idea on what I didi wrong?
Thank you.
Laurent.
I found a solution to my problem.
I have a column in my query that return 'none' or 'inline' when I have the privilege to update my file and thus, the column "edit_link."
Thos query column name is link_disp
And in the "link attribute" property, the "link in the column" Section of my edit_link, I add: "style =" display: #LINK_DISP #»»
and it works well
Laurent.
-
update of column based on another column
Hi all
I want to update the column 2 of the table based on the value of update in column 1 and the existing value in column 1
Assume that table1 has columns ID, col1 and col2
I update col2 based on the update to col1 value and comparing the existing value of col1 in the table.
trying to decode, I think it should work.
Thank you.Not like that.
You change a column of type CHAR, VARCHAR2 column, right? Thus, the data will be same. (Completed with space). For the new data inserted into a column VARCHAR2 TRIM is not necessary.
-
Filter the rows based on another column
Hello
I have a table like this:
user_id team sla_team rownum 11 one 0 1 22 one 0 2 33 b 1 3 44 b 1 4 55 c 3 5
I want a list of the first order of 3 users of sla_team.
If 2 or more users have the same sla_team, must list both of them.
In this case, I want to return user_id: 11, 22, 33, 44
A way to do it is like this:
Select *.
table
where sla_team < = (select max (sla_team) in the table where rownum < = 3)
But my table is bigger and more complex query.
Any other sugestion?
Thank you and sorry for my bad English.
Hello
Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.
Also post the exact results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
This sounds like a job for a Query of Top - N, like this:
WITH got_r_num AS
(
SELECT table_x. *- or whatever the columns that you want to
, EVALUATE () DURING (ORDER BY sla_team) AS r_num
FROM table_x
-WHERE... - If you need any filtering, put it here
)
SELECT *- or the list of all columns except r_num
OF got_r_num
WHERE r_num<=>=>
ORDER BY r_num
;
-
Best way to select distinct values, based on another column?
I have a table with three columns: id (NUMBER), data_dt (DATE) and data_value (NUMBER).
There is a primary key id and data_dt.
I want to choose the folder with the last data_dt for each unique identification number.
What is the best way to do it?
I have three different methods, but there may be something that I am missing.
First of all:
(I use ORDER BY... DESC, instead of just ORDER BY I don't need the clause BETWEEN the LINES)SELECT * FROM ( SELECT id, data_dt, data_value, FIRST_VALUE(data_dt) OVER (PARTITION BY id ORDER BY data_dt DESC) AS last_data_dt FROM the_table ) WHERE data_dt = last_data_dt;
Second:
Third:SELECT t1.* FROM the_table t1 JOIN ( SELECT id, MAX(data_dt) AS last_data_dt FROM the_table GROUP BY id ) t2 ON (t2.id = t1.id AND t2.data_dt = t1.data_dt);
-DonSELECT t1.* FROM the_table t1 WHERE t1.data_dt = ( SELECT MAX(t2.data_dt) FROM the_table t2 WHERE t2.id = t1.id );
As mentioned in hoek, you will need to test all scenarios.
However, in my opinion the more faster will be those who accesses the table that only ONCE instead of TWICE as some scenarios require.
HTH!
-
command update, based on another column column
Col A, Col B, Col C
1, a, null
1, B, null
2, a, null
2, B, null
3, bis, null
3, B, null
3, C, null
How can I query this table to update Col C, with a command...
Final outcome:
Col A, Col B, Col C
1, 1 A
1 B, 2
2, 1
2, B, 2
3, 1
B, 2, 3
3, C, 3
Is it possible to update, only using SQL in oracle 10 g?You can use a correlated update statement if you are looking to update the data. It was not clear from your post.
SQL> CREATE TABLE table_x 2 ( col_a NUMBER 3 , col_b VARCHAR2(1) 4 , col_c NUMBER 5 ); Table created. SQL> INSERT INTO table_x VALUES(1,'A',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(1,'B',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(2,'A',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(2,'B',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(3,'A',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(3,'B',NULL); 1 row created. SQL> INSERT INTO table_x VALUES(3,'C',NULL); 1 row created. SQL> SELECT * FROM table_x ORDER BY 1,2; COL_A C COL_C -------------------- - -------------------- 1 A 1 B 2 A 2 B 3 A 3 B 3 C 7 rows selected. SQL> UPDATE table_x x1 2 SET col_c = ( 3 SELECT rn 4 FROM 5 ( 6 SELECT col_a 7 , col_b 8 , ROW_NUMBER() OVER (PARTITION BY col_a ORDER BY col_b) rn 9 FROM table_x 10 ) x2 11 WHERE x2.col_a = x1.col_a 12 AND x2.col_b = x1.col_b 13 ) 14 ; 7 rows updated. SQL> SELECT * FROM table_x ORDER BY 1,2; COL_A C COL_C -------------------- - -------------------- 1 A 1 1 B 2 2 A 1 2 B 2 3 A 1 3 B 2 3 C 3 7 rows selected. SQL>
Maybe you are looking for
-
Just installed (after receiving messages from updated iTunes/Apple SW) iTunes 12.3.3 but after starting the program and a brief overview 2 second iTunes library crashed. 10 times the same exercise, it seems slightly more stable but library went again
-
Unable to start installation of recovery on Satellite P200
I have a Toshiba Satellite P200 series. I need to reinstall windows vista because my system is not so stable (blue screen)I tried to reinstall the OS (1.54 GB system partition) default but I'm not able to do. I have not any CD or DVD media. On the PC
-
In CVI2013 'mobile projects' need of a reconstruction
Hello Although the bug reported below may be covered by the Bug No.433769 , it is perhaps not obvious so I wanted to share with you in case you have been reckless enough to upgrade to CVI2013... I'm working on a project on two different computers and
-
Error of the IDM I suddenly have a problem when you try to download I get this message. "Cannot transfer to Internet Download manager." Error 0x8002801D in windows XP. Pleasw help to y for remedy.Thank you
-
Windows media player will not play just goes to green screen
Windows media player will not play or will be windows media center. they have just the green screen of goto, it is solid