Forum Discussion
Null or Empty Selection?
- 8 years ago
I don't think so since it isn't the common workflow for Power BI.
If not items are selected that means all of items must be shown in other visuals.
Our recommendation is to follow the common workflow in order not to confuse users.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
You might try to generate a selection by callig ISelectionIdBuilder.withMeasure("Some_faked_value").createSelectionId();
Please let us know if that works as you expected.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thanks for the suggestion, but unfortunately it didn't work. I created a fake selection id by setting a fake value in the withMeasure() method, but adding that selection id to the selection set still caused all records to display.
I wonder if, because I am using a table dataview, there are no measures, and so the fake selection id is ignored. Am I able to create a selection id that goes against an existing column of the table, but with a fake value specified?
- v-viig8 years agoCommunity Champion
I don't think so since it isn't the common workflow for Power BI.
If not items are selected that means all of items must be shown in other visuals.
Our recommendation is to follow the common workflow in order not to confuse users.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals