Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SamCarlson
Frequent Visitor

JSON Label for Slicer Selection Control Setting 'Multi-select with CTRL"

Short version: What is the JSON label for the Slicer Selection Control Setting "Multi-select with CTRL"?

 

I found this code which has almost everything I need but since multi-select with ctrl is a newer feature, it is not there.

 

Any leads on how to define this default in a JSON template would be greatly appreciated!

 

1 ACCEPTED SOLUTION
TroyV
Frequent Visitor

"slicer": {
     "*": {
          "selection": [{
                 "singleSelect": false,
                 "multiSelect": false,
                 "selectAllCheckboxEnabled": true
           }]

      }

)

View solution in original post

10 REPLIES 10
TroyV
Frequent Visitor

"slicer": {
     "*": {
          "selection": [{
                 "singleSelect": false,
                 "multiSelect": false,
                 "selectAllCheckboxEnabled": true
           }]

      }

)

Anonymous
Not applicable

Hi @TroyV ,

 

I tried to use the multiSelect but I did not change the toggle for Multi-Select with with Ctrl on.

 

Did anyone else have this problem?

I had this issue as well.  "multiselect": true did not work for me.  Through some experimenting, I figured out that the below code is instead the correct solution. 

"strictSingleSelect": false

This also applies to the new Button slicer (a.k.a. the advancedSlicerVisual in JSON).  

"selection": [{
	"singleSelect": true, 
	"strictSingleSelect": false,
	"selectAllCheckboxEnabled": false
	}]

 

Interesting @Anonymous as long as you have it set to true I would think it would work? Maybe make sure that the Single Select option is set to false. 

Anonymous
Not applicable

Here is the code I am using. 

{
"name": "Custom Theme",
	 "dataColors": [
				"#09264E", 
        		"#004AB5",
        		"#FFA300", 
        		"#f2ebdb", 
        		"#D64550",
        		"#197278", 
        		"#1AAB40",
				"#3BB44A",
        		"#F2C811", 
        		"#D63817"
	],
	"visualStyles": {
		"slicer": {
              "*": {
                "selection": [{
                    "singleSelect": false,
					"multiSelect" : true,
                    "selectAllCheckboxEnabled": false
                  }],	
				"header": [{
                    "show": true
                  }],
				"title": [{
						"show": true,
						"fontColor": { "solid": { "color": "#333333" } },
						"background": { "transparency": { "color": "" } },
						"alignment": "left",
						"fontSize": 10,
						"fontFamily": "Segoe UI Semibold"
					}],
				"items": [{
					"fontColor": { "solid": { "color": "#605E5C"}},
					"background": { "solid": { "color": "#FFFFFF"}},
					"outline": "None",
					"textSize": 9,
					"fontFamily": "Segoe UI"
					}],
				"visualHeader": [{
                    "show": false					
					}]
              }
		}
    }
}

Sorry if I'm misunderstanding what you are trying to do, but aren't the slicer selection settings in your JSON already the default?

Anonymous
Not applicable

Yes they are but if I want to change "selectAllCheckboxEnabled" to true and have "mutiSelect" set to true, only "selectAllCheckboxEnabled" will change.

"selection": [{
                    "singleSelect": false,
                    "multiSelect" : true,
                    "selectAllCheckboxEnabled": true
}],

Success! Appreciate the help. Should've known "with CTRL" wouldn't be included in the JSON name. 

"multiselect": true did not work for me.  Through some experimenting, I figured out that the below code is instead the correct solution. 

"strictSingleSelect": false

This also applies to the new Button slicer (a.k.a. the advancedSlicerVisual in JSON). 

"selection": [{
	"singleSelect": true, 
	"strictSingleSelect": false,
	"selectAllCheckboxEnabled": false
	}]
Nathaniel_C
Community Champion
Community Champion

Hi @SamCarlson ,

Here is a good place to report issues.
https://community.powerbi.com/t5/Issues/idb-p/Issues
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.