Different guests on the same column
Gurus:I have a requirement where we need to have Date guests separated for 4 different promotions.
Now, I was thinking about the presentation configuration variable, but then it does not work with 'Between' condition.
So how can I compare a fact for 4 different promotions (Sun) with 4 dates different (Sun) in the same report?
I don't know if this is possible.
Please help me.
Thank you.
Vinay
I'm not sure that I understand your question completely, but it seems you need to get the same value (say sale) measure for 4 different dates in the same table.
My suggestions would be to create dims again and use union all with each union report report led at different times of Sun.
Tags: Business Intelligence
Similar Questions
-
Hi Experts,
I'm defining two different guests (and associate them with the two variables of different presentation) on the same column. However, when I view the 2 guests on the same dashboard page, whenever I select a value for the first prompt, the same value is automatically selected for the second line.
Is this a normal behavior? How to capture the two distinct values?
Thank you
GuillaumeHi William,.
I think I forgot something.
You must do the following steps:
(1) add the column to the dashboard command prompt.
(2) in the column "Show" change the option to 'results '.
(3) in the column "Column" change the formula of the column to a name like «filter 1"»
(4) this column value to the variable in the presentation, such as FILTER1.
(5) change the label for the column.
(6) assign the filter in your report to the presentation FILTER1 variable.Repeat step 1 to 6 for the second filter.
Kind regards
Stijn -
We all hope you are doing well.
I have a business problem to implement in ODI 11 G. It's here. I'm trying to load a target table from two sources that have the same column names. But a source is to the file format and the other is in the Oracle database.
That's what I think I'll create two mappings in the same interface by using the Union between the sources. But I don't know how the interface would connect to different logical architecture to connect to two different sources.
Thank you
SM
You are on the right track, all in a single interface. Follow these steps
(1) pull model of your data in the designer of the source file and your table model target to the target pane.
(2) all relevant columns map
(3) in the source designer to create a new dataset and choose as the UNION join type (this will create a separate tab in the source designer pane)
(4) select the new dataset tab in the source designer pane and pull your source oracle table data model in the designer of the source. All columns that are relevant to the target card
(5) make sure that your staging location is set to a relational technology i.e. in this case the target would be an ideal candidate because it is where the ODI will organize the data from source two files and oracle and perform the UNION before loading to the target
If you want to watch some pretty screenshots showing the steps above, take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/
-
Best way to get different counts on the same column by using a query.
Hello
I try to get three different counts of the values for a specific ID on a table. In other words, I have an Id if 1-123 and 20 records with that ID in this table, which have a value of 'Y' or 'n'. I'm looking for the number of each of these values for every 20 rows, but also a number of total values of tag values using the function count in a single query.
In this spirit, I would like to see a result set as follows.
Example of result set:
1-123 5 15 20
I thought that I would be able to do this by using the following query below, but it didn't work and I get a ' error absent expression. If anyone can provide guidance on my query below or any other way to reach my goal I would really appreciate it.
Query:
Select a.par_row_id,
countOfTagsNo.TagsNo as 'Tags not selected. "
countofTagsYes.TagsYes as 'Tags selected. "
countOfTagsTotal.TotalTags as 'Total Tags'
of siebel.s_src_xm.
(select par_row_id, count (attrib_08)
of siebel.s_src_xm
where type = 'AOI Tags' and attrib_08 = 'n')
countOfTagsNo,
(select par_row_id, count (attrib_08)
of siebel.s_src_xm
When type = "AOI Tags' and attrib_08 = 'Y')
countofTagsYes,
(select par_row_id, count (attrib_08)
of siebel.s_src_xm
When type = 'AOI Tags' and (attrib_08 = 'Y' or attrib_08 = 'n'))
countOfTagsTotal
where a.par_row_id = countOfTagsNo.par_row_id and
a.par_row_id = countofTagsYes.par_row_id and
a.par_row_id = countOfTagsTotal.par_row_id
A.par_row_id group;
Thanks in advance.
Chris
Hi Chris,
I'm not sure that's what you want but you had probably better counting with nested decode (or case):
Select a.par_row_id,
Count (case when type = 'AOI Tags' and attrib_08 = ' don't then 1 end) as "Tags not selected."
Count (case when type = 'AOI Tags' and attrib_08 = 'Y' then 1 end) as "Tags selected."
Count (case when type = 'AOI Tags' and (attrib_08 = 'Y' or attrib_08 = 'n') then 1 end) as 'Total Tags.
of siebel.s_src_xm
A.par_row_id group;
-
Different numbers on the same column of a table
Hello
I have a table of the city with a column of the population. I want to count the cities which are cities or towns or cities biger...
cities are with the population up to 100000
are the cities with the population of 100000 to 1000000
and cities with a population greater than 1000000...
I need to write a query with minimum cost optimize...
any quick help will be highly appreciated...
Thank youHello
Try:SELECT SUM(CASE WHEN population <= 100000 THEN 1 ELSE 0 END) town_count, SUM(CASE WHEN population BETWEEN 100001 AND 1000000 THEN 1 ELSE 0 END) city_count, SUM(CASE WHEN population >= 1000001 THEN 1 ELSE 0 END) big_city_count FROM city_table;
-
Query to find the sum of the different groups in the same column
Hello
I have a table as follows:
visitors
------------------------------------------------------------------------------------------
months of amt credit CustID
--------------------------------------------------------------------------------------------
001 C 2000-Jan-2012
001D 5000 Feb 2012
001C 3000 Mar-2012
001C 3000-Apr-2012
001D 7000-may-2012
I have to write a single query to calculate the sum of the credit and the sum of the flow values separately.
Thank you and best regards,
SB2011Hello
Select decode (credit,' it, sum (amt), sum (amt)) in the Group of customers to credit;
Published by: 937440 on 24 February 2013 07:06
-
Multiple values for the same column in the columns of diffétent in the same row?
Hi all
I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:
CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".
Yes, that will produce two columns but will produce null values to empty and also two separate registers.
Any ideas?
Thank youAre you sure that this code works for you?
Select ID ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime" ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END as "Other" From table group by ID
I guess the code above fails because MODE_CODE is not in your group by?
My suggestion would be to put the CASE in the COUNT:
Select ID ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime" ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END) as "Other" From table group by ID
CASE expressions return no. when the respective conditions are true and NULL otherwise.
COUNTY will have non-null values. -
different values on the same grouping column
Hi all
I have a requirement to find different recordings of the same grouping columns have value different values in the columns, for example:
WITH
Data (G1, COL)
AS
(
SELECT 'A', '456' FROM dual UNION ALL
SELECT 'A', '345' FROM dual UNION ALL
SELECT 'A', ' ' FROM dual UNION ALL
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT 'C', "789' FROM dual UNION ALL
SELECT 'C', "789' FROM dual UNION ALL
SELECT 'C', "" the DOUBLE
)
Select g1, pass data
Ideally for G1 = A, the NECK should have that a single value across records ' 456 'or ' 345'. So I need to check the values in NOT NULL of the COL where, for any value of G1, we have different values of the colonel G1 = 'B' is perfectly fine, so I don't need. G1 = C is good too and I'm not worried about it. I only need these entries when the neck was non-empty value / NULL not different for the same value of G1.
So expected out put is
WITH
Data (G1, COL)
AS
(
SELECT 'A', '456' FROM dual UNION ALL
SELECT 'A', '345' FROM dual UNION ALL
SELECT 'A', "double UNION ALL
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT ' 'B, 123' FROM dual UNION ALL.
SELECT 'C', "789' FROM dual UNION ALL
SELECT 'C', "789' FROM dual UNION ALL
SELECT 'C', "the DOUBLE
)
Select g1,
Col
de)
Select g1,
Col,
Count (distinct trim (col)) at the NTC (g1 partition)
from the data
)
where NTC! = 1
and trim (col) is not null
/
G COL. NO.
- ---
A 345
A 456SQL >
SY.
-
How to find the same column name in different tables in the same schema
Hello
I find the 'ename' column name in different tables in the same schema.
Thank you
NrHello
Try this query
Select column_name, table_name from user_tab_columns where column_name = 'ENAME ';
Award points and end the debate, if your question is answered or mark if she was...
Kind regards
Lacouture.
-
By comparing the values in the same column
Hello
I have a requirement to do the following:
The guest of the dashboard has two drop downs as 'Acct number 1' and others as 'Acct number 2 ". Both are the same column from the database. When two different values are chosen from the prompt, it should produce a report with the following 5 colomns, 'ACCT1', 'SALES AMOUNT ACCT1', "ACCT2", "SALES AMOUNT ACCT2", "DIFFERENCE".
I tried to use a variable of presentation in the command prompt and it fills my column pther having the same value I have input for the first prompt.
How can I do this? Thanks for your time and your help.Hello
You can try it at the level of the report.
* Ensure that you have set your guests with different effects. Suppose that the two PVs are acc1 and acc2.
* Report, add below filter
Account number is equal to @{acc1} {defualtvalue}
OR
Account number is equal to @{acc2} {defualtvalue}
This will filter the report by the two account numbers.
* Now apply below in your fx of all columns."ACCT1: ' @{acc1} {defualtvalue}"
ACCT1 SALES AMOUNT: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc1} {defualtvalue}'))
"ACCT2: ' @{acc2} {defualtvalue}"
ACCT2 SALES AMOUNT: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc2} {defualtvalue}'))
DIFFERENCE: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc1} {defualtvalue}'))-FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc2} {defualtvalue}'))Thank you
-
Entries are concatenated in the same column in the excel file
Hi, I really need help in this emergency. The problem is when I open the spreadsheet file after you run the program below, all the values that I believe are concatenated in the same column. However, there are 2 different analog inputs which I want in 2 different columns. I'm getting the 2 waveforms in the same graph, but when I open the excel file, it seems that the entries are concatenated in the same column. Someone knows how to fix this? Thank you very much.
Hi Ben 64,.
Thanks a lot again. I did as you said and I removed the dynamic data and logged files added directly to the results. I'm still checking if the program works as I can branch only when I return to work tomorrow. Tell me if you think it might be able to work this time. Thanks a lot again!
-
Combine data sources with different granularity in the same fact table?
I have two operating tables 'Incident (157 columns)' and 'unit (70 Colums) '. For all the "incidents" happening there could be one or more records in the table of the 'unit '.
As part of my design of data mart, I have merged the tables in one "makes the incident (227 columns)" and insert records from two tables with a join condition between them [incident. IN_NUM = Unit.IN_NUM].
Is this correct, is my question? or am I mix data sources with different granularity in the same fact table. Appreciate your help.
Best regards
BeesBees,
Are the measures of the 'Incident', repeated during an incident given, in more than one record in the table of the unit? If so, then the sum (indicent.measure) will give an incorrect result?What is there to merge physically tables set outside OBIEE? With OBIEE you might have a table of 'facts' logic to present the user with report, which from tables separated units and Incidents and would stop the occurrence of incorrect aggregations. A common piece of modeling in the same way would be arrested in OBIEE headers and lines of command, quite common to have a logical fact 'orders' which contained the two header orders and order line, this translates into the Incidents-> relationship of units.
To do what I mentioned, is relatively simple, you need a "Dim - Incident" at two levels, unit, mapp and Incident unique identifiers as keys to level and then use these levels to define the content of the levels correctly in your 2 tables logic sources logic "done", IE the LTS Incidents at incident level LTS units as level of units.
Hope this helps, let us know if you get stuck.
See you soon
Alastair -
Using different filters on the same measure in single result table (view)
I have a table of twelve columns, each column with different filters tailor-made same table actually. Say a filter column (several people existing on 01/01/2003) comes from people dimension (date_of_birth < = January 1, 2003 ""). Two filter in column b (number of people living in Bucharest between 1 January 2004 and 1 January 2006 "") is (between 2004 and 2006 date_of_birth) etc.
How do I use column a & column b in the same table of results (view)? I need the different filters on the same table.
Thank you!
Published by: seiciu on March 27, 2010 08:51Hello
This filter clause works.
filter (using Date = current_date)
filter (using Date = date'2010-01-01')
filter (measures using the year between 2004 and 2006)
Concerning -
an alphabet by typing in a cell gives drop down suggestions from previous hits on the same column. But how the drop down to choose the suggestions of the other columns and other sheets.
Hi mdsavol,
Your observations are accurate. The 'suggestions' are previous entries in the same column that correspond to what has been entered so far in the active cell. The only direct user control is to activate the function turn on or off in numbers preferences > general.
There are other ways to include or exclude items of suggestions:
- To remove typos in the suggestions list, the user must correct the typos in the cell above the active cell. If they are more in the list, they won't be presented as suggestions.
- To include selections added to the list, the user must enter these suggestions in the individual cells above the active cell and column where they are wanted as suggestions.
There was a request here a while there is a list of suggestion 'live' similar to those of some websites, which offers a descending list of possible entries as a type in an input box.
The only way I see to reach a solution similar to what you have asked is to use as many lines at the top of the non-en-tete of the table section to list the items likely to repeat in your table, and then hide the lines. You'll need a list for each column where you want to use this feature with a list previously planted. Existing items will then require a likely hit up to three, then a click to choose from a list small enough to enter a value into a cell. News he will need to enter in full the first time, but after that it will be put on the list and answer the same thing as the terms preseeded.
While your setting upward (or decide not to do), consider going on the menu of number (in numbers), choosing to provide feedback from numbers and writing a feature in Apple request. Describe what you want. Explain how he could help the average user numbers, and then hope for the best.
Kind regards
Barry
-
Cropping multiple pictures on different pages at the same time
Can I culture several images on different pages at the same time. In my french version of software Photos 1.5, this option is called "the photo to the frame adapter". I'm able to select this image of an option at a time, but could not find a way to make the entire book in one click.
No there is no functionality like this in Photos
You can ask Apple to add the - http://www.apple.com/feedback/photos.html
LN
Maybe you are looking for
-
PC stopped achievements my digital camera automatically when it is attached to the USB
Downloaded many pictures of my Canon Power Shot in the past. I just plugged in by USB and software automatically invited to download photos. Now when it is connected I can hear the connection sound familiar, but nothing comes on the screen for me to
-
Window7 Home premium 64-bit system requirements
I have Dell studio 1555, with my computer laptop I have Window7 Home Premium 64-bit but now I have a problem by resettling in my laptop. my DVD of the OS is unresponsive. I need installation file and how can I install it with pen drive. Please help m
-
NAT on SRP527W (distant)
Hi all Implementation of ACB (on a 1841) for customer specific traffic through a SRP527W. Now the CPR strategy seems to work - I debugged and confirmed I get policy matches and ACB is correctly forward traffic to the SRP527W. Problem I'm having, is t
-
I installed windows 7 enterprise version, but I do not have the administrator password? What can I do? I have a genuine license key, but when I retart my computer, it asks for administrator password which i have not received what can I do?
-
Return from drafts of af: inputListOfValues the values of registers
I use Jdev 12 c.I have an inputListOfValues set to a column in af:table. I click on the magnifying glass and the dialog box opens. I have search in the dialog box and click a value in the list. I click OK to return the value of the column. Returns OK