Simulating Summary / drill down columns in OBIEE without actually changing Subject Area/Repository - analysis

I have a requirement where I need to group certain columns and simulate drill down (expansion and collapse) for them without doing any changes in Subject Area / Repository.
We have measure columns revenues and a two geography columns Continent (values are Europe, Asia) and Country (Singapore, India, Japan, France, UK) in Subject Area.
Continent is heirarchial column. Europe includes France and UK. Asia includes Singaore, India and Japan. We need to create a Summary Region SIUK (containing Singapore, India and UK) and another Region FJ (containing France and Japan). Analysis output should not show original Continent names. Analysis output needs to have three columns Region, Country, Revenue. When region is expanded then Country column should show the different countries.
Example (Result before expanding i.e. clicking + )
Region Country Revenue
---------- ----------- --------------
SIUK(+) ALL 600
FJ(+) ALL 400
Result after expanding i.e. clicking +
Region Country Revenue
---------- ----------- --------------
SIUK(-)
Singapore 100
India 200
UK 300
FJ(-)
France 150
Japan 250
How can I do this?

You can use groups:
1 - Click the "New group" button in the results tab
2 - Use "SIUK" as Display Label and select Country from the "Values From" list
3 - Manually select the countries that belong to the "SIUK" regiĆ³n
4 - Repeat 1-3 for "FJ"
5 - Preview the report; notice that you can drill down to Country by clicking the group

Related

Google Sheets - Select rows which not contain specific words

I had a Google form where people have selected options from a check list. e.g.
[] London / Manchester
[] Hong Kong
[] Paris
[] Rome
[] Other: [text]
My responses are in Google Sheets. Some people have selected options 1 to 4 as well as 'Other' and typed their message, e.g.
London / Manchester, Paris, I want to go to Tokyo
London / Manchester, Hong Kong
Paris, Singapore please
Amsterdam
How do I query my spreadsheet to select rows where people have typed a message in the Other option. Hence, the only rows that should show are:
London / Manchester, Paris, I want to go to Tokyo
Paris, Singapore please
Amsterdam
Thanks
UPDATE:
Alternatively, can I somehow filter out the rows using a list of keywords so it only shows text that was entered for Other?
So if a column had these values below, can I use a keyword list such as 'London / Manchester', 'Paris', 'Hong Kong' and 'Rome' to hide these rows but show if text was added to Other option?
London / Manchester, Paris, I want to go to Tokyo
London / Manchester, Hong Kong
Paris, Singapore please
Amsterdam
Thanks
You could try
=ArrayFormula(filter(A:A,len(regexreplace(A:A," ?(London / Manchester|Hong Kong|Paris|Rome),?",""))))
If you wanted to add more columns, you could either just put them in the filter e.g.
=ArrayFormula(filter(A:C,len(regexreplace(A:A," ?(London / Manchester|Hong Kong|Paris|Rome),?",""))))
or in a query e.g.
=ArrayFormula(query({A:C,len(regexreplace(A:A," ?(London / Manchester|Hong Kong|Paris|Rome),?",""))},"select Col1,Col2, Col3 where Col4>0"))
if column Other is D column you can try:
=QUERY(A:D; "where D is not null"; )

Standardizing output in google sheet with reference sheet

This is my computatiom sheet: (https://docs.google.com/spreadsheets/d/e/2PACX-1vSR3jhKH7FNfuqo_VcemDUoZGNtoUJttCQz8XF0r7c8Qyyc4PWQqqHyxanalb5etA/pubhtml?gid=6282745&single=true)
Name Country Region Unique Region Region Count Sales Representative
Mr Action Taker Dubai EMEA EMEA 5 Eashwari
Mr Responsible Bangalore APAC APAC 7 Chetan
Mr Careful guy Mumbai APAC AMER 3 Khushi
The unique region is computed by UNIQUE function which is giving me the list of unique regions from the inputs that i receive one by one. If a new region is added, the unique list will be appended automatically.
The region count is the count of regions in my input. I have use the MOD function to assign the lead to a sales rep in a chronological fashion so that even distribution is achieved.
In the above sheet, my region count increases by 1 as soon as a new entry is added into the input sheet. When that happens, a sales rep is assigned automatically.
Each region has 4 sales rep.
Now, i have an output sheet below. (https://docs.google.com/spreadsheets/d/e/2PACX-1vSR3jhKH7FNfuqo_VcemDUoZGNtoUJttCQz8XF0r7c8Qyyc4PWQqqHyxanalb5etA/pubhtml?gid=1954161251&single=true)
Name of the Lead Team Sales Representative Notes:
Mr Action Taker EMEA We want to upgrade our subscription
Now, I want to show the sales rep in the output sheet which i have computed in the computation sheet. This shall not change if my computation sheet is updated whenever new entry comes in.
The sales rep shall be from his region team.
use:
=INDEX(IFNA(VLOOKUP(A2:A&" "&B2:B, {
IMPORTRANGE("url_or_id_of_spreadsheet", "Part 2 Computation Sheet!A2:A")&" "&
IMPORTRANGE("url_or_id_of_spreadsheet", "Part 2 Computation Sheet!C2:C"),
IMPORTRANGE("url_or_id_of_spreadsheet", "Part 2 Computation Sheet!F2:F")}, 2, 0)))

Finding Only numbers between specific range in cell contain text string

I have a cell A2 containing following Text string in google sheet.
UAE Vacancy - Collections Field agents. Location - Dubai, Abu Dhabi Work profile- banking collections background outdoor field. Age- Below 30 years. Salary - AED 5500 + quarterly incentive and yearly bonus. Minimum 1-year of experience in collections is required in the UAE Banking industry. Candidates meeting the criteria, share their resume on
test#test.com
with subject 'Field agent' Reference -
from UAE Jobs #uaejobs #bankjobs #collectionagency #dubaijobs #hireinuae
Now in Cell B2 I want to extract salary which is 5500 a numeric value. i tried to figure it out with is number but it is not working.
How can i extract numbers in next cell.
Thanks
Try:
=VALUE(REGEXEXTRACT($A2, "[0-9]{3,}"))
This will extract the first number with 3 or more digits.
See on Google Sheets

Sorting and removing non-duplicate rows in google sheet and keeping non-duplicate rows and duplicate rows

I am fairly new to Google sheets, and essentially what I am trying to do is remove all non-duplicate values that do not exist or is listed in another sheet or row - and also store the non-duplicate values somewhere else
In my example sheet here, I am trying to only keep the Alcohol names that are listed in column G
So in my case, I only want to keep the following records:
Alcohol Name Alcohol Type Origin
Martell Cognac France
Captain Morgans Rum Jamaica
Wray & Nephew Rum Jamaica
Hennessey Cognac France
Barcardi Rum Cuba
Courvoiser Cognac France
Famous Grouse Scotch Scotland
Jack Daniels Whisky USA
Grants Scotch Scotland
Ciroc Vodka France
I also want to keep any that did not appear in the list in a separate table like this:
Alcohol Name Alcohol Type Origin
Russian Standard Vodka Russia
Southern Comfort Bourbon USA
Ciroc Whisky France
At the moment I am having to manually check a longer list one by one and it is taking lot of time and my arm hurts..
If someone can please help me with sorting it such that it looks like this, would be great! I don't know if there are formulas we can use
Use this formula to only keep the Alcohol names that are listed in column G
=QUERY(A1:C," where A matches '"&TEXTJOIN("|",1,G2:G)&"' ",1)
To order them use
=QUERY(A1:C," where A matches '"&TEXTJOIN("|",1,G2:G)&"' order by A",1)
Use this to keep any that did not appear in the list in a separate table.
You see, you only put not in the formula
=QUERY(A1:C," where not A matches '"&TEXTJOIN("|",1,G2:G)&"' ",1)

Google sheets - How do I make a query that prints data from a dropdown box

I want to be able to pick a country from a dropdown box, which will then print the cities in the country as well as a string of numbers. Here is my google sheet:
https://docs.google.com/spreadsheets/d/1ypcJ72cE08f69djnaXE2urLIyk8o33E7oHoshDjkfCw/edit?usp=sharing
So for example, if I select India from my dropdown box, I want it to print:
Mumbai 646
New Delhi 264
Kolkata 346
But I want the cities and the numbers to be in different cells, just like how they are originally in C1:D4. How would I go about doing this?
In A12 of the sheet you shared I entered
=offset(A1,1 ,match(A9,A1:H1,0)-1, counta(A1:A4),2)
See if that works for you?

Resources