OBIEE - How to get count of members for a level?
I have a dimension logical table and hierarchy defined in my BMM layer. I want to define a logical column that can get distinct count of members at Level0.
Level2
Level1
Level0
I tried creating a logical column using Level0 key and Count Distinct aggregation function in my dimension table. But when I use this column in the report, it gives navigation space error.
Any ideas/thoughts on how to achieve this?
Thanks in advance
Aggregations always work on columns in a logical fact table and never on a logical dimension
- Create a logical fact table based on the same physical table
- Create a logical join between the newly created fact table and the dimension table whose levels we want to count
- Create the Count Distinct columns, one each based on the level key columns
- Expose the columns to the presentation
- Deploy the rpd and it works like a charm
Edited by: Mahesh Jayashankar on May 31, 2011 8:45 AM
Similar Messages
-
How to get count of rows for a table?
Hi,
How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
Regards,
DevashishHi Devashish,
WdContext.node<Your_node_name>().size() will give you the no: of rows.
This should be the node that is bound to the table's datasource property.
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
You can access an attribute of a particular row as
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson -
How to get count as 0 for records not in table
Hi All,
I have requirement where I need count of records in the table based on ids. Example query below
SELECT empid ,
nvl(COUNT(id), 0) empcount
FROM employee
WHERE empid IN(1, 2, 4, 5)
GROUP BY empid
In the table only record for "empid=2" is present so I get count 1 for it. But with it I should get count as 0 for non existing records. Expecting below output
empid | empcount
1 | 0
2 | 1
4 | 0
5 | 0
Appreciate your help and Thanks in advance.
Regards.
Ashishe.g.
SQL> select column_value deptno, count (deptno)
from emp, table (sys.odcinumberlist (10, 20, 100))
where deptno(+) = column_value
group by column_value
DEPTNO COUNT(DEPTNO)
10 3
20 5
100 0
3 rows selected. -
How to get count of records for each type from internal table
Hi Guys,
I want to implement a logic to find out the count of records in a internal table.
Assume my internal table have one field having the entries as shown below.
Internal table Entries
10
10
10
11
11
12
12
12
12
13
14
14
15
15
15
15
15
16
16
17
18
19
20
20
20
....... etc....
I should get an output as below
10's - 3
11's -2 ,
12's - 4.... etc..
Could any one help me how to do this.
Thanx,
KumarREPORT zzz.
DATA: i(100),
t(100),
j TYPE n.
TYPES: BEGIN OF gt_int_type,
linex(100) TYPE c,
END OF gt_int_type.
DATA: gt_int TYPE STANDARD TABLE OF gt_int_type,
wa_int LIKE LINE OF gt_int.
START-OF-SELECTION.
wa_int-linex = '10'.
APPEND wa_int TO gt_int.
wa_int-linex = '10'.
APPEND wa_int TO gt_int.
wa_int-linex = '10'.
APPEND wa_int TO gt_int.
wa_int-linex = '11'.
APPEND wa_int TO gt_int.
wa_int-linex = '11'.
APPEND wa_int TO gt_int.
wa_int-linex = '12'.
APPEND wa_int TO gt_int.
wa_int-linex = '12'.
APPEND wa_int TO gt_int.
wa_int-linex = '12'.
APPEND wa_int TO gt_int.
wa_int-linex = '12'.
APPEND wa_int TO gt_int.
wa_int-linex = '13'.
APPEND wa_int TO gt_int.
wa_int-linex = '14'.
APPEND wa_int TO gt_int.
wa_int-linex = '14'.
APPEND wa_int TO gt_int.
wa_int-linex = '15'.
APPEND wa_int TO gt_int.
wa_int-linex = '15'.
APPEND wa_int TO gt_int.
wa_int-linex = '15'.
APPEND wa_int TO gt_int.
wa_int-linex = '15'.
APPEND wa_int TO gt_int.
wa_int-linex = '15'.
APPEND wa_int TO gt_int.
wa_int-linex = '16'.
APPEND wa_int TO gt_int.
wa_int-linex = '16'.
APPEND wa_int TO gt_int.
wa_int-linex = '17'.
APPEND wa_int TO gt_int.
wa_int-linex = '18'.
APPEND wa_int TO gt_int.
wa_int-linex = '19'.
APPEND wa_int TO gt_int.
wa_int-linex = '20'.
APPEND wa_int TO gt_int.
wa_int-linex = '20'.
APPEND wa_int TO gt_int.
wa_int-linex = '20'.
APPEND wa_int TO gt_int.
LOOP AT gt_int INTO wa_int.
WRITE:/ wa_int-linex.
ENDLOOP.
ULINE.
SKIP 3.
SORT gt_int BY linex.
READ TABLE gt_int INDEX 1 INTO i.
j = 0.
LOOP AT gt_int INTO wa_int.
IF wa_int-linex EQ i.
j = j + 1.
ELSE.
WRITE:/ i,'''s = ', j.
j = 1.
i = wa_int-linex.
ENDIF.
ENDLOOP.
WRITE:/ i,'''s = ', j.
consider clearing leading/trainling spaces... -
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
How to get title templates library for CC?
How to get title templates library for CC? Do you have to download and install PP 6 to get them?
Try here Library, title templates, template projects missing: Premiere Pro, After Effects, Encore
-
How to get balance sheet report for profit centers
hi
how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for thisHi,
You can use T. code KE5Z for actual line items.
More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
In selection, you can give ledger name which is generally 8A for profit center ledger.
Reg -
I went to add my iPod to another computer and when I did it re-bought all of my music and I would like to know how to get my money back for it?
anyonr know how I can get my money back????????Go to Settings>General>Reset>Erase all content and setting. Then re-setup the iPod with your account/media. To redownload iTunes purchases see:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
How to get 64 bit version for premiere elements 12
How to get 64-bit version for Premier Elements 12 ?
I download from ADMISY site.
Click on win 64 bit and download it.
When I try to install ther is a error this download version is not for 64 bit I have try many times but same resultHello
I have been away some days
ADMISY is a software partners for Adobe
I running Win 7 Home Edition
I have received a card with a code when I bought the program and the I
download from ADMISY
Sending serial and installation warning
PhotoshopElements_12_WWEFDJ.7z
PhotoshopElements_12_WWEFDJ
PremiereElements_12_WWEFDJ_win32.7z
PremiereElements_12_WWEFDJ_win32
I can not find a 64 bit version of 32-bit or 64-bit version of downloads
This is information I have
Best regards
Erling Magnusson
2015-02-04 22:33 GMT+01:00 Adobe Forums <[email protected]>:
How to get 64 bit version for premiere elements 12 created by A.T.
Romano <https://forums.adobe.com/people/A.T.+Romano> in *Premiere
Elements* - View the full discussion
<https://forums.adobe.com/message/7162950#7162950> -
How to get the depreciation areas for an asset in particular period
Hi frndz,
how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
Thanks and regards.
Harisumanth.ChTry table ANLB, then read ANLC.
Regards. -
How to get the version no. for service po?
Hi,
How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
Regards,
Rachel.Hiee,
It is not like service PO does not have revision.
REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
MM->Purchasing->Version management -> External documents
Here check for your doc type and purchase org version management is active.
Regs,
Appie -
How to get the owner name for the file in ftp using abap ?
Hi folks ,
How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
but doest work out me . Helping in this regard highly appreciated ...
Thanks and regards,
Swarupa VanarchiHi
dont you have used the os user while calling the FTP_CONNECT FM?
Hope you are not talking about the user executing the FTP program.
Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
May be i am going too far with if and elses here as your question possesses no clarity.
Plz elaborate your requirement before anybody can help.
Regards
sateesh -
How to get the document number for a ware house order.
Hello gurus,
how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
Thanks in advanceThere are several options. When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
Depending on how your system is set up you may have gotten a Transfer Order automcatically. In this case you can look at LT24 - Transfer Order for material. -
How to get a organization name for a particular user using API's
Hi alll,
How to get a organization name for a particular user using API'sYou need to do something like this:
SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
UserManager usrService = oimClient.getService(UserManager.class);
Set<String> retAttrs = new HashSet<String>();
retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key")); -
How to get mobile model name for different types mobile devices
Hi,
I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
HttpConnection connection = null; connection = (HttpConnection)Connector.open(url); connection.setRequestMethod(HttpConnection.POST); connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
i retrieve the header information from servlet like below :-
String userAgent = request.getHeader("User-Agent");
How to get mobile model name for different model devices , not by manually adding the model name in midlet?
Thanks in advance :-)Hi,
In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.
Maybe you are looking for
-
Iwork does not work (after install)
Installed iwork from purchased dvd. Clicked on Pages (same thing happens with Keynote or Numbers) Box comes up: This application pages quit unexpectedly. Click to relaunch(does not work) Ignore (does not work) or report. I click on report and get thi
-
Hello I am trying to learn something new here. We have web server inside our organization its IP address is 172.16.0.35. We want outside Internet users to access web server, How is it possible? Please have a look at the running configuration. Web se
-
Does HDMI also need Optical Audio
I'm not sure if this is normal or not. I have an Apple TV connected via HDMI to a Sony HTSS360 home theatre system. The receiver for this is model STR-KS360. The system works just fine but the rear (surround) speakers do not work. I also have an XBOX
-
Word processing interupted by color 'pinwheel'
Using 1.8 GHz PowerPC G5. Typing in a Appleworks document is constantly being interupted by a color 'pinwheel' spinning. While this is happening I can continue to type but nothing appears on the screen until the pinwheel stops spinning. This was not
-
I have installed Adobe Reader 11.0.07 for Mac OS 10.9.3. Have asked this question numerous time without results. The problems I am having are: I cannot scroll using the side slider on downloaded PDF files, nor can I fill in fillable files. Also, and