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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.