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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Renan_DFB
Regular Visitor

Center Alignment in all the Values from a Table

Hi,

Im creating a JSON file with the formats and colors that i use in my company.

I want to set the alignment of the values as center (by default).

 

Renan_DFB_2-1649976297428.png

 

Renan_DFB_1-1649976223053.png

 

I have edited the json file based on this documentation: 

https://github.com/mattrudy/PowerBI-ThemeTemplates/blob/master/Table.json

 

But i can't find the proper field to format:

 

"tableEx": {
"*": {
"general": [{
"responsive": true,
"keepLayerOrder": true
}],
"background": [{
"show": true,
"color": { "solid": { "color": "#232323"}},
"transparency": 0
}],
"border": [{
"color": { "solid": { "color": "#232323"}},
"show": true,
"radius": 6
}],
"title": [{
"show": true,
"fontColor": { "solid": { "color": "#ffffff" } },
"background": { "solid": { "color": "#232323" } },
"alignment": "center"
}],
"grid": [{
"gridVertical": false,
"gridVerticalColor": { "solid": { "color": "#FFB8DD"}},
"gridVerticalWeight": 2,
"gridHorizontal": false,
"gridHorizontalColor": { "solid": { "color": "#FFB8DD"}},
"gridHorizontalWeight": 2,
"rowPadding": 2,
"outlineColor": { "solid": { "color": "#FFB8DD"}},
"outlineWeight": 0,
"textSize": 14,
"imageHeight": 100
}],
"columnHeaders": [{
"fontColor": { "solid": { "color": "#ffffff"}},
"backColor": { "solid": { "color": "#232323"}},
"outline": "Frame",
"autoSizeColumnWidth": true,
"fontFamily": "Segoe UI",
"fontSize": 10,
"alignment": "Center",
"wordWrap": true
}],
"values": [{
"fontColorPrimary": { "solid": { "color": "#ffffff"}},
"backColorPrimary": { "solid": { "color": "#232323"}},
"fontColorSecondary": { "solid": { "color": "#ffffff"}},
"backColorSecondary": { "solid": { "color": "#333333"}},
"outline": "none",
"urlIcon": true,
"wordWrap": true,
"fontFamily": "Segoe UI",
"fontSize": 8
}],
"total": [{
"totals": true,
"fontColor": { "solid": { "color": "#ffffff"}},
"backColor": { "solid": { "color": "#232323"}},
"outline": "Frame",
"fontFamily": "'Segoe UI Bold', wf_segoe-ui_bold, helvetica, arial, sans-serif",
"fontSize": 8
}],
"stylePreset": [{
"name": "none"
}]
}
}

 

Can someone help me?

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi  @Renan_DFB 

Thanks for reaching out to us.

If you try to add "alignment": "center" in Values, will it work?

vxiaotang_0-1650259179464.png

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors