Question: I'm trying to extract data from a cube using MDX, when I run the query in SSMS I get 500K rows (same result I get when I use excel to connect to the cube), however, when I put the query into a SSIS package and execute it I get only 100k rows. The package executes just fine (completes correctly), it doesn't show any errors, warnings, anything so not sure why I'm not getting the same number on rows :(.

Thanks for the help! :)

Answer: 
You could try traversing up to the parent container and then doing a find on that element by it's class.

**For example:**

Traverse to parent by id:

```
$(this).closest('#eea305a4-32b2-434d-8623-4dc3e2fcf119F_SelectMany').find('.form-field-title-sign-css');

```

Traverse to parent by class:

```
$(this).closest('.lfFormField').find('.form-field-title-sign-css');

```

Or travers to parent by HTML element:

```
$(this).closest('fieldset').find('.form-field-title-sign-css');

```

And to get the value, in this case you would probably want to do `.text()` instead of `.html()`. Unless of course you actually want all the HTML.

And finally, if this id `F_SelectMany-required` isn't random. You could do this instead. Which should help it be a bit more specific. 

```
$(this).closest('.lfFormField').find('#F_SelectMany-required').children('.form-field-title-sign-css');

```
Check this code 

```js
$(function(){
    var $lbl=$("label[dojoattachpoint='titleNode']");    //Your position
    $lbl.click(function(){
        if (!$("#" + $(this).attr("for")).is(":checked")) {
            var $fieldset=$(this).closest("fieldset");
            alert($("legend",$fieldset).find("span").text());    
        }
    })    
})
```