Forum Discussion

KoBe321's avatar
KoBe321
Frequent Visitor
5 years ago
Solved

Selection vs Filter

I've got 2 visuals, let's say A and B.

At the moment it's possible to "select" some values in A using SelectionManager, and B will be changed according to that.

 

Then I added Filtering to A, thus I was able to filter B using applyJsonFilter().

However, if I wanted to also "select" a value in A while B was filtered, B crashed.

No error message was shown, but after some googling it was suggested that it's probably some cross-filtering issue.

 

So is it possible at all to filter and select B from A at the same time?

If not, I could probably change the "select" mechanism of A to "filter" B.

But what's the difference between "select" and "filter" from a logical/architectural view? Are they interchargeable?

  • Hi KoBe321,

    Probably the easiest way to think about it is filter = slicer, select = regular chart.

    The filter API asks Power BI to hard-filter other visuals in the page, like a slicer would. The selection manager requests Power BI performs interactive operations either internally to your own visual or in confunction with others (such as cross-highlight), which do not explicitly remove data from each visual's data view so that they can show partial data, dim out non highlighted fields etc..

    They aren't really interchangable as you'd typically use one over the other. You can technically use both (I personally haven't used them both together; just separately), but in each case you would want to think about what needs to happen from an end-user perspective if you do.

    Regards,

    Daniel

2 Replies

  • dm-p's avatar
    dm-p
    Super User

    Hi KoBe321,

    Probably the easiest way to think about it is filter = slicer, select = regular chart.

    The filter API asks Power BI to hard-filter other visuals in the page, like a slicer would. The selection manager requests Power BI performs interactive operations either internally to your own visual or in confunction with others (such as cross-highlight), which do not explicitly remove data from each visual's data view so that they can show partial data, dim out non highlighted fields etc..

    They aren't really interchangable as you'd typically use one over the other. You can technically use both (I personally haven't used them both together; just separately), but in each case you would want to think about what needs to happen from an end-user perspective if you do.

    Regards,

    Daniel