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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mussol_
Advocate II
Advocate 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
nickyvv
Community Champion
Community Champion

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!

Blog: nickyvv.com | @NickyvV


View solution in original post

2 REPLIES 2
nickyvv
Community Champion
Community Champion

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!

Blog: nickyvv.com | @NickyvV


nickyvv
Community Champion
Community Champion

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!

Blog: nickyvv.com | @NickyvV


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.