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 I
Super User I

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
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.