Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48292

Re: How to multiSelect with selection manager in power bi custom visual

$
0
0

Thanks so much for your detailed response.  I had already tried a similar approach using

 

	var selectionId = SelectionId.createWithIds.apply(SelectionId, categoryIdentities);

 

I implemented your approach and it seems to work the same as my createWithId options.   However, I may be doing something dumb but this approach does yield an error it just generates the wrong results when multiple items are selected.

 

Perhaps, it is because I am trying to use apply to create the comma delimited list of parameters?  I am not really familar with using apply but I am using it because it was the only way I could figure out to dynamically pass a large number of parameters.

 

	var SQExpr = data.SQExprBuilder.or.apply(data, categoryIdentitiesExpr);
        var identityExpr  = data.createDataViewScopeIdentity(SQExpr);
        var selectionIdExpr = SelectionId.createWithId(identityExpr);

 

So i have now tried this 3 ways, 1) The default granular approach 2) aggregating with SelectionId.CreateWithIds and 3) aggregating with SQExprBuilder.

 

I have updated the public gist with the last approach at:  https://gist.github.com/jcbowyer/5df55d4758a7614ca08d71eaf640fc57

 

I think this could be a really valulable custom visualization for the community if I we could solve this.   If you have some spare time and want to discuss a small part day consulting engagement to help me through this, please pm me.  I would be very grateful and don't know where else to go for expert guidance/help.   Thanks again.


Viewing all articles
Browse latest Browse all 48292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>