AMO to extract dimension usage information

Hi,
I am trying to get the details of the key on the fact that join to a dimension using the dimension usage NOT the dsv. I've seen the printer friendly dimension usage produce the answer so I am assuming I can get it.  Every time I drill down a measure group I always end up getting the attribute key for the dimension.
I would have thought that this would get me to the tableID and columnID in the xmla in the cube:
Code Block_ocube.MeasureGroups[0].Dimensions[0].CubeDimension.Attributes[0].Attribute.KeyColumns[0].Source
as the xmla looks like:
Code Block
<MeasureGroups>
<MeasureGroup dwd:design-time-name="785ef530-8ab0-449e-b909-19561eb17a7e">
...<Dimensions>...
<Dimension xsi:type="RegularMeasureGroupDimension" dwd:design-time-name="e941d609-3a0e-4dd3-af38-99fd8d31c7ca">
<CubeDimensionID>Small Date</< FONT>CubeDimensionID>
<Attributes>
<Attribute dwd:design-time-name="ce664bae-a9a3-4f77-b2f2-04f0c18e2960">
<AttributeID>DATE_KEY</< FONT>AttributeID>
<KeyColumns>
<KeyColumn dwd:design-time-name="1978bf6b-13c8-4085-9125-ab368cd0d71a">
<DataType>Integer</< FONT>DataType>
<DataSize>-1</< FONT>DataSize>
<Source xsi:type="ColumnBinding" dwd:design-time-name="3f763005-6a4f-4462-9f83-20a7f4a1c4e5">
<TableID>IIP_MART_DAILY_SALES_FACT_V</< FONT>TableID>
<ColumnID>TPNM_PROPOSED_START_DATE_KEY</< FONT>ColumnID>
</< FONT>Source>
Any help would be gratefully received, as i have been going around in cycles for hours now
Many thanks
Matt

Found the answer, thanks to the guys who produced BIDS Helper
http://www.codeplex.com/bidshelper
I looked at the code for the PrinterFriendlyDimensionUsage class and I found out how to get what I wanted.  So many thanks to all those invovled in that.
Code Block
foreach (MeasureGroup mg in _ocube.MeasureGroups)
foreach (MeasureGroupDimension mgdim in mg.Dimensions)
if (mgdim is ManyToManyMeasureGroupDimension || mgdim is DataMiningMeasureGroupDimension || mgdim is DegenerateMeasureGroupDimension)
//call attribute usage stuff
else if (mgdim is ReferenceMeasureGroupDimension)
//call attribute usage stuff
else if (mgdim is RegularMeasureGroupDimension)
RegularMeasureGroupDimension regMDdim = (RegularMeasureGroupDimension)mgdim;
foreach (MeasureGroupAttribute mga in regMDdim.Attributes)
//gets the dimension info
foreach (DataItem di in mga.Attribute.KeyColumns)
string tableid = ((ColumnBinding)di.Source).TableID;
string columnid = ((ColumnBinding)di.Source).ColumnID;
//gets the fact table info
foreach (DataItem di3 in mga.KeyColumns)
string tableid = ((ColumnBinding)di3.Source).TableID;
string columnid = ((ColumnBinding)di3.Source).ColumnID;
//call attribute usage stuff
Matt

Similar Messages

  • Extract Dimension info - More than one aliases

    Dear Techies,
    I would like to know if there is an option to extract multiple alias tables from Essbase 9.3. We are currently using Data Integration mangagent to extract dimension information but Type3 source extracts only Default alias. The outline has 7 alias tables and i would like to know extracting them is on option?
    Any help is deeply appreciated.
    Thanks
    With Regards,
    Raj

    I haven't worked with that utility, but you should check if it will only pull the default alias table or if it will only pull the active alias table. There's a difference between the two and you can change which alias table is the active table via maxl or EAS. If it truly is only pulling the default, then I'm not sure of an automated way to do it. I know you can open an outline in EAS and export the alias table from the console, but there does not appear to be a command in MaxL to do it. If you were willing to use ESSCMD you can use the DISPLAYALIAS command and spool the results to a text file. There is probably a way to do this with the API too.

  • Capturing the JVM heap usage information to a log

    When using weblogic 6.1sp3 the console under monitoring/performance a graph is
    displayed with the historical JVM heap usage information. Is there any way to
    capture this information to a log?

    For heap size before and after each gc, you could pass the -verbose:gc option to the JVM
    on startup:
    WLS C:\alex>java -verbose:gc weblogic.Admin PING 10 10
    [GC 512K->154K(1984K), 0.0068905 secs]
    [GC 666K->164K(1984K), 0.0069037 secs]
    [GC 676K->329K(1984K), 0.0029822 secs]
    [GC 841K->451K(1984K), 0.0038960 secs]
    [GC 963K->500K(1984K), 0.0015452 secs]
    [GC 1012K->598K(1984K), 0.0027509 secs]
    [GC 1110K->608K(1984K), 0.0029370 secs]
    [GC 1120K->754K(1984K), 0.0027361 secs]
    [GC 1266K->791K(1984K), 0.0019639 secs]
    [GC 1303K->869K(1984K), 0.0028314 secs]
    [GC 1381K->859K(1984K), 0.0012957 secs]
    [GC 1367K->867K(1984K), 0.0012504 secs]
    [GC 1379K->879K(1984K), 0.0018592 secs]
    [GC 1391K->941K(1984K), 0.0036871 secs]
    [GC 1453K->988K(1984K), 0.0027143 secs]
    Sending 10 pings of 10 bytes.
    RTT = ~47 milliseconds, or ~4 milliseconds/packet
    Looks like it might be too much info though...
    Cheerio,
    -alex
    Fazle Khan wrote:
    When using weblogic 6.1sp3 the console under monitoring/performance a graph is
    displayed with the historical JVM heap usage information. Is there any way to
    capture this information to a log?

  • How to split the particle analysis report in order to extract one particular information(for eg. orientation)??)

    hi .. i need to extract the orientation and centroid information from the particle analysis report (image processing is done in NI Vision and then converted to labview vi) for further processing. However once processing is done in Vision ,after converting to labview vi the particle analysis report comes as 1D array of size 1 and thus am unable to extract one particular information from the report. Plz help!   

    duplicate

  • Dimension usage relationship between dimensions

    Hi,
    please I have a case where an attribute of a dimension is part of the measure in a report, How can I establish a dimension usage relationship between this table and other dimension that is related as below( whereby the supposed fact table primary key is
    appearing as foreign key in the dimension table). Thanks  
    ACCOUNT TABLE
    accid -PK
    EXTRAS TABLE
    accid -FK

    Hi 14QR1A,
    According to your description, you want to build the relationship between dimension tables. Right?
    In Analysis Services, it can have relationship between dimension like some snowflake schema. In BIDS, you can direct build the relationship between dimension tables in Data Source View. For example, the ProductCategory has relationship with
    ProductSubCategory in AdventureWorks sample.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Extracting Business Partner information from CRM to XI

    What is the best approach to extract Business Partner information from CRM to XI

    Hi,
    by IDOCs of course
    you can create them just like I did:
    /people/michal.krawczyk2/blog/2006/11/14/xipi-data-type-enhancements-standard-business-partner
    (you jut need to change from proxy to ALE - another module)
    but bisically it's a standard to generate
    a business partner record and send it as an IDOC from CRM
    Regards,
    michal

  • Column missing in measure group columns list for dimension usage

    I added some new columns (dimension ids) to my fact table and refreshed the data source view. Now the new columns show up in the data source view for this fact table. But when I go to dimension usage to tie the new dimensions to this measure, I am not able
    to find the columns just added in the measure group columns list.
    What do I have to do to be able to see my new columns in this list so that I can update dimension usage.
    Thanks.

    Hi kvd123,
    According to your description, you add columns in fact table and the data source view is already refreshed. However, in dimension usage the meta data is not refreshed. Right?
    In this scenario, I suggest you redeploy your cube. Because in Analysis Services, when we modify the cube, the changes are recorded in xxxxx.cube XML file. After you redeploy the cube, those changes are copied to Analysis Services server. Then
    the source data will reload into the measure groups.
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Tracking Access and Usage Information

    Hi,
    Is there a way to collect user VDI logins and logouts, along with other relevant information, like the DTU token, and possibly other usage information ? We provide open access to SunRay DTUs to connect to our virtualization platform, and we should be able to collect information like "who was connected, from when to when, on which client, etc.".
    I've found the file "/var/cacao/instances/vda/logs/cacao.0" to log some of this information, but there is no timestamp in this file:
    FINE: thr#1466 Logging user XXXXXX into desktop [202]XXXXX (some UUID)
    I could not find information about auditing or usage logging in the Administration doc.
    Any other pointer ?
    Thanks for your help,
    Laurent

    Hi Laurent,
    unfortunately, we do not provide a public/stable API for retrieving such auditing information yet.
    As you already pointed out, there is some information in the cacao logs (but as stated that is not a stable interface). Regarding the missing timestamp, the log messages should always be two lines - first line with timestamp and source of the event, second line with the actual log message.
    The other possibility to get some of the information would be to read it directly from the VDI database, but again you would be on your own here as direct access to the database is not supported (due to the fact that the database layout might change in future VDI versions).
    - Klaus

  • Extract Single Tone Information using Flat Top Windowing

    Beginner here - Does anyone have any ideas on what would be the easiest way to create a function that would essentially perform the same function as the built in "Extract Single Tone Information.vi" only that instead of using Hanning windowing (as I noticed that this Vi does) I would be able to use Flat Top (or selectable windowing)? I basicly need to set something up that will accept an incoming Sine wave and apply FFT using Flat Top windowing then output the measured frequency and the amplitude of that frequency. I need to still be able to input the "advanced search" criteria into the VI and give it a frequency and tolerence to look for as I don't want to just look for the peak signal but at specific frequencies. 

    I am running Labview 7.1.1 (that's what my company uses and they refuse to upgrade). I can't open files built under anything newer than LV7.1.1.
    I really don't want to just do a peak search of the entire spectrum and would rather enter a specific frequency to look for and the tolerance window (find peak at say +/- 2% tolerance away from known recorded frequency. This test is targeted as a production test we will be shipping to several parteners around the world to use in production. This will be a test fixture to perform testing on electret boom microphones. The fact that it will be used in a production environment there is potential for high levels of background noise (radios, floresent lights, people talking, etc) and therefore I need as much filtering as possible to only the frequency i am trying to measure. I will be outputting a specific frequency from a speaker and recording it back through the microphone under test via a NI USB-6211 DAQ.
    Can anyone tell me if "Extract Single Tone Information fron Hann Spectrum.vi" has anything in it which would limit me to only inputting a Hann windowed FFT into the signal input of that VI? This is the VI which is password protected in my 7.1.1. copy of Labview. If it doesn't and I could feed it a Flat Top windowed FFT signal into it without problem I am golden. I can modify the other sub-vi ("FFT with Hanning") and the main "Extract Single Tone Information 1CH.vi".
    Thanks for you continued input. 
    P.S. I am fairly new to Labview (<2yrs)

  • Extract Single Tone Information.vi configuration help

    Hello.
    I am trying to measure speed from a sensor that outputs the speed directly to
    frequency (i.e. 500 Hz = 500 RPM).
    I am using the Scaled Window.vi with Hanning and the Extract Single Tone
    Information.vi to get the frequency.
    I successfully measured to about 500 Hz with the default settings.
    My range is from 0 to 2500 Hz.
    The only settings I can find that seem to let me configure sampling is the
    approximate frequency and search (+/- % of Fsampl.)
    These defualt to -1 and 5 respectively.
    I assume this means no default frequency, or 0 and the sampling rate is 10000
    (500 / 0.05).
    I changed the approximate frequency to 1250 (my center frequency) and the
    percent to 12.5 (10000 / 1250 ).
    This resulted in labView only reading one seemingly random value or not updating
    this measurement.
    After putting -1 in the approximate frequency again, I was able to read values
    higher than 500, but they folded around 500 (i.e. aliasing).
    How do I change the settings or use another vi to get the range that I need?
    Thank you,
    Electro-Frog

    Thank you very much mfitzsimo…,
    That did the trick. It has been so long since I changed the sampling rate, that I forgot it was there.
    Apparently the Extract Single Tone Information does all the calculations for you, based off the sampling rate of course.
    I bumped it up to 10000 samples/sec from 1000 (where the 500 folding came from) and I could read everything my function generator could put out.
    Electro-Frog

  • Using Extract Single Tone Information to detect phase

    Dear all,
    I have problem using Extract Single Tone Information vi to detect phase angle of a sine wave. 
    I posted similar question a few days ago regarding using the same vi to determine phase angle of a square wave and realised it couldn't be done because square wave is not single tone. I modified my program slightly and use it to examine a sine wave but I still couldn't get reliable results. 
    Please find the attached for the program code. When I set frequency to 5 Hz, everything worked fine but when I set it to 5.17 Hz with 20 degree phase, the detected phase value keeps changing.  Appreciate if you could help me on this matter. Thank you very much!
    Best regards
    Attachments:
    SineWavePhaseAngleTest.vi ‏28 KB

    Hi looloo,
          Sorry for slow response!  Here's the VI back-saved to LV8.2
    (in case It's not too late to help...) 
    The "phase" output reflects the "angle" associated with the beginning value in the Y-array (when Y = amplitude, Phase is 90deg.)
    Phase is changing because sine-wave (Y-input) is shifting each time single-tone is called...
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    SineWavePhaseAngleTest[1,LV8.21].vi ‏38 KB

  • How to extract OPENING DATE information in /SAPAPO/RRP3 to BW?

    Hi All,
    I would like to extract OPENING DATE information in transaction code /SAPAPO/RRP3 to BW. Has anyone tried doing this before?
    Thank you.
    Regards,
    Joy

    Hi Joy
    We are using  /SAPAPO/EFPL_ORD_NET_GET this FM will give you the entire pegging relationship for any order in the live-cache. While extracting this information you get all the order details with all the required dates.
    you need to paas the values to this FM as below.
    I_SIMVERID   = active version 000
    I_SIMSESSID = simsession ID you can create using FM /sapapo/RRP_SIMSESSION_CREATE
    I_ORDERS_TAB= in this table,you need to pass the CHAR22 GUID of any order like planned/sales order/pur.req..
    Thanks
    Amol

  • Dimension usage multiple columns

    In the Data source view, it is possible to create a relationship between a fact and dimension with multiple columns.  How is this handled in the dimension usage pane? Can I create a dimensions that relates to a fact on multiple columns?
    John Schroeder

    Yes it is possible to have multi column relationships in SSAS multidimensional.
    If you create the relationship in the DSV then when you create the cube the dimensions usage will pick up the columns in the relationship. If the cube already exists - when you add a dimension that has multiple columns in it's key attribute you can pick
    which two columns in the fact should be used to link to the dimension.
    http://darren.gosbell.com - please mark correct answers

  • BIDS 2008 - Dimension Usage new relationship Measure Group Column list empty?

    Ive been updating my underlying schema, and DSV and now Im having to update some of the Dimensions.  Looks like things got a bit "sideways" somewhere along the way.  Now that Im going back to reassign dimensions being used within the
    Dimension Usage tab of the Cube, the measure group column list is empty when I go to create a new relationship (regular type)

    Hi shiftbit,
    According to your description, you get an empty Measure Group Columns list when defining relationship. Right?
    Based on your screenshot, you may notice that Measure group table is empty, so definitely it can't show any column in the dropdown list. If there's columns in the measure group that are related to the dimension columns, at least it will show the fact
    table for Measure group.
    In this scenario, please check if the fact table for the Measure group is existing. Re-process the Measure group and try again. If the issue persists, please re-create that measure group.
    Reference:
    Define Relationship Dialog Box (Analysis Services - Multidimensional Data)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Extract Signal Tone Information in Control & Simulation Loop

    Hi,
    I have a simple Block Diagram to try Control & Simulation Loop. I added a Sine Wave signal and a Waveform Chart connected to it. They work just fine.
    I tried to add a Extract Single Tone Information , from Signal Processing, and connect it to the output of the Sine Wave generator but I do not know how to create a proper Time Signal.
    I thought of storing the output of the Sine Wave in an array but I was unsuccessful since I could not add any shift register to this type of control loops.
    Any help or suggestions?
    Thanks
    Attachments:
    Control_n_Sim_Test.PNG ‏9 KB

    Hi Siamak,
    Thanks for your reply mate.
    However, when I built a same BD as you posted on, it somehow didn't work. I also attached a photo of my BD here.  I used the gauge to measure when I run the programme. The gauge shows there is no signal output after the "collector"VI (gauge no.13). would you please check it for me? Many thanks!
    BR
    Floyd
    Attachments:
    tone info extraction.png ‏134 KB

Maybe you are looking for

  • Multiple cost center for one cogs account

    Hi Gurus, We have created cogs account as cost element so that system picks relevant cost center at PGI. Appreciate if you can tell how can system know which cost center should be entered in cogs line if there are multiple cost centers????? Thank you

  • Thunderbolt to VGA and and HDMI to DVI running at once

    I am currently using a Thunderbolt to vga converter to as my setup for my mac mini. I just remembered that with the mac mini came a HDMI to DVI converter. My question is; if i buy an other monitor, can i use the HDMI to DVI converter to run two monit

  • Recipe software

    I am looking for recipe software along the lines of BigOven Deluxe Inspired Cooking that is compatible with Mac. Most of the good software I find for recipe management is not compatible with mac.

  • Draw document previews don't show in Leopard

    Now that I'm using AW in Leopard OSX 10.5.8, things are going swimmingly, almost. Looking at a folder's contents in column or Cover Flow view, there is no small preview image visible to offer a clue to the document image. Each document must be opened

  • Camera calibration profile. i dont get the option to chose landscape

    Bought myself a Fujifilm Xs1 and like with my Canon i prefer to take shots in RAW. Now the thing is in editing in lightroom i am not get the landscape option in camera calibration >profile just Adobe Standard as if i took the shot in jpeg any ideas ?