Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I cannot find a solution on google or docuementation.
Is it possible to have these 2 or more properties be auto exclusive? So that once I select one of them, the other will be set as false (off) automatically?
So setting the value from code side, once I will find one true, I will set the others to false.
Thanks,
Solved! Go to Solution.
If you are using a settings class based on DataViewObjectsParser from the powerbi-visuals-utils-dataviewutils helper module, you can just alter the properties of that class.
// settings.ts
import { dataViewObjectsParser } from "powerbi-visuals-utils-dataviewutils";
import DataViewObjectsParser = dataViewObjectsParser.DataViewObjectsParser;
export class VisualSettings extends DataViewObjectsParser {
...
}
// visuals.ts
public update(options: VisualUpdateOptions) {
this.settings = <VisualSettings>VisualSettings.parse(options && options.dataViews && options.dataViews[0]);
this.settings.boolean2 = !this.settings.boolean1;
...
}
-JP
You can change the settings of the propety pane directly via your code, so in your case to toggle one boolean based in the status of the other.
I doubt if two toggles that interact which each are that userfriendly. Can't you use a more generic toggle or a dropdown?
-JP
If you are using a settings class based on DataViewObjectsParser from the powerbi-visuals-utils-dataviewutils helper module, you can just alter the properties of that class.
// settings.ts
import { dataViewObjectsParser } from "powerbi-visuals-utils-dataviewutils";
import DataViewObjectsParser = dataViewObjectsParser.DataViewObjectsParser;
export class VisualSettings extends DataViewObjectsParser {
...
}
// visuals.ts
public update(options: VisualUpdateOptions) {
this.settings = <VisualSettings>VisualSettings.parse(options && options.dataViews && options.dataViews[0]);
this.settings.boolean2 = !this.settings.boolean1;
...
}
-JP
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |