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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CrgJnr
Frequent Visitor

Customize Font for all visuals, including subtotals of Matrix

I would need to create a json file in which I would like to extend the "Arial" font for each element of my dashboard (filters, tables, charts, pivots, etc.), especially including the subtotals of the matrix (pivots), that seems to be not included when I use my JSON file. In fact that's good for all but not for subtotals of Matrix:

{
"name": "CustomFont",
"visualStyles": {
"*": {
"*": {
"*": [
{
"fontSize": 10,
"fontFamily": "Arial",
"fontWeight": "bold",
}
]
}
}
}
}

 

How can I do? Could you send me the correct Json?

 

Thank you!

3 REPLIES 3
Anonymous
Not applicable

Hi @CrgJnr ,

Please update the codes as below and check if it can return the expected result...

{
  "name": "CustomFont",
  "visualStyles": {
    "*": {
      "*": {
        "*": [
          {
            "fontSize": 10,
            "fontFamily": "Arial",
            "fontWeight": "bold"
          }
        ]
      }
    },
    "pivotTable": {
      "*": {
        "subTotals": [
          {
            "rowSubtotals": true,
            "columnSubtotals": true,
            "fontColor": {
              "solid": {
                "color": "#332222"
              }
            },
            "fontFamily": "Arial",
            "fontSize": 10,
            "fontWeight": "bold",
            "backColor": {
              "solid": {
                "color": "#01B8AA"
              }
            },
            "applyToHeaders": true,
            "rowSubtotalsPosition": "Bottom",
            "perRowLevel": true,
            "perColumnLevel": true
          }
        ]
      }
    }
  }
}

In addition, you can refer the following link from Github to get it.

PowerBI-ThemeTemplates/Matrix.json at master · MattRudy/PowerBI-ThemeTemplates · GitHub

Best Regards

No idea please?

Thank u for your answer, but it doesn't work. The code change the background but the font of subtotals is still not Arial.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.