cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mussol_
Helper II
Helper II

JSON parameter for pivotTable --> "stylePreset"

Hi all,

I am trying to build a corporative theme in JSON file.

I need to set the style preset for the matrix visual as "Alternating rows", so I tried possible combinations on the following instruction:

 

"pivotTable": {
"*": {
"stylePreset":[{
"name":"Alternating rows"
}],

 

But it turns to "Default" on PBI desktop.

If the style preset is defined with only one word (for example: None, Minimal, Condensed, etc.) there is no problem and it works.

Which is the parameter I should use?

 

Many thanks in advance.

 

Josep.

1 ACCEPTED SOLUTION

Hi @mussol_,

Ah, I tried some variations and came up with the correct one. The complete JSON for a Matrix is:

"pivotTable": {
	"*": {
		"stylePreset": [
			{
				"name": "AlternatingRows"
			}
		]
	}
},


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

Proud to be a Super User!


Blog: nickyvv.com | @NickyvV


View solution in original post

2 REPLIES 2
nickyvv
Super User
Super User

Did you happen to figure this one out? I'm also struggling on this 🙂


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

Proud to be a Super User!


Blog: nickyvv.com | @NickyvV


Hi @mussol_,

Ah, I tried some variations and came up with the correct one. The complete JSON for a Matrix is:

"pivotTable": {
	"*": {
		"stylePreset": [
			{
				"name": "AlternatingRows"
			}
		]
	}
},


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

Proud to be a Super User!


Blog: nickyvv.com | @NickyvV


View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors