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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

JSON theme help

Hi all,

I've created a custom theme using JSON, but now my grand totals row in my table and matrix visuals is showing on top. I cannot find info on how to get this to the bottom anywhere.

 

Please help, thanks!

 

image.png

 

My JSON in spoiler:

Spoiler
    "tableEx": {
      "*": {
        "grid": [
          {
            "gridVertical": false,
            "gridVerticalColor": {
              "solid": {
                "color": "#FFB8DD"
              }
            },
            "gridVerticalWeight": 1,
            "gridHorizontal": true,
            "gridHorizontalColor": {
              "solid": {
                "color": "#E6E6E6"
              }
            },
            "gridHorizontalWeight": 1,
            "rowPadding": 0,
            "outlineColor": {
              "solid": {
                "color": "#A31017"
              }
            },
            "outlineWeight": 1,
            "textSize": 9,
            "imageHeight": 75
          }
        ],
        "columnHeaders": [
          {
            "fontColor": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColor": {
              "solid": {
                "color": "#ffffff"
              }
            },
            "outline": "Bottom only",
            "autoSizeColumnWidth": true,
            "fontFamily": "Segoe UI",
            "fontSize": 9,
            "alignment": "Left",
            "wordWrap": true
          }
        ],
        "values": [
          {
            "fontColorPrimary": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColorPrimary": {
              "solid": {
                "color": "#ffffff"
              }
            },
            "fontColorSecondary": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColorSecondary": {
              "solid": {
                "color": "#efefef"
              }
            },
            "outline": "None",
            "urlIcon": true,
            "wordWrap": true,
            "fontFamily": "Segoe UI",
            "fontSize": 9
          }
        ]
      }
    },
    "pivotTable": {
      "*": {
        "stylePreset": [
          {
            "name": "None"
          }
        ],
        "grid": [
          {
            "gridVertical": false,
            "gridVerticalColor": {
              "solid": {
                "color": "#e6e6e6"
              }
            },
            "gridVerticalWeight": 2,
            "gridHorizontal": true,
            "gridHorizontalColor": {
              "solid": {
                "color": "#E6E6E6"
              }
            },
            "gridHorizontalWeight": 1,
            "rowPadding": 0,
            "outlineColor": {
              "solid": {
                "color": "#A31017"
              }
            },
            "outlineWeight": 1,
            "textSize": 9,
            "imageHeight": 75
          }
        ],
        "columnHeaders": [
          {
            "fontColor": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColor": {
              "solid": {
                "color": "#ffffff"
              }
            },
            "outline": "Bottom only",
            "autoSizeColumnWidth": true,
            "fontFamily": "Segoe UI",
            "fontSize": 9,
            "alignment": "Left",
            "urlIcon": true,
            "wordWrap": true
          }
        ],
        "rowHeaders": [
          {
            "fontColor": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColor": {
              "solid": {
                "color": "#ffffff"
              }
            },
            "outline": "None",
            "stepped": false,
            "steppedLayoutIndentation": 10,
            "urlIcon": true,
            "wordWrap": true,
            "fontFamily": "Segoe UI",
            "fontSize": 9,
            "alignment": "Left",
            "showExpandCollapseButtons": true
          }
        ],
        "values": [
          {
            "fontColorPrimary": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColorPrimary": {
              "solid": {
                "color": "#ffffff"
              }
            },
            "fontColorSecondary": {
              "solid": {
                "color": "#25272f"
              }
            },
            "backColorSecondary": {
              "solid": {
                "color": "#efefef"
              }
            },
            "bandedRowHeaders": true,
            "valuesOnRow": true,
            "outline": "None",
            "urlIcon": true,
            "wordWrap": true,
            "fontFamily": "Segoe UI",
            "fontSize": 9
          }
        ],
        "subTotals": [
          {
            "rowSubtotals": true,
            "columnSubtotals": true,
            "fontColor": {
              "solid": {
                "color": "#000000"
              }
            },
            "fontFamily": "Segoe UI",
            "fontSize": 9,
            "applyToHeaders": true,
            "perRowLevel": true,
            "perColumnLevel": true
          }
        ],
        "total": [
          {
            "fontColor": {
              "solid": {
                "color": "#000000"
              }
            },
            "fontFamily": "Segoe UI",
            "applyToHeaders": true,
            "fontSize": 9
          }
        ]
      }
    },
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry, I'm not skilled in JSON.

You could try to set "stepped" to true.

test_json.PNG

 

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

View solution in original post

8 REPLIES 8
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry, I'm not skilled in JSON.

You could try to set "stepped" to true.

test_json.PNG

 

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

Anonymous
Not applicable

Hi @V-lianl-msft ,

 

When I enable stepped layout, the total row moves to the bottom! Thanks so much, I think this works for my situation.

V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

See if the alternative in this thread can help you:https://community.powerbi.com/t5/Desktop/show-grand-totals-top-bottom-of-matrix/td-p/370909 

 

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

Anonymous
Not applicable

Hi @V-lianl-msft ,

 

That alternative could work, but that does not provide an answer to my question. Why is it that the total shows on the bottom on all themes, but when I apply my own custom theme it shows on top? What causes this to happen and can I solve it through JSON?

 

It would be unacceptable to always make a dummy total for all matrices and tables that we want to show. There has to be something in the JSON that can solve this.

 

Thank you.

parry2k
Super User
Super User

@Anonymous go to format pane and change it to bottom.

 

image.png

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hello @parry2k ,

 

This is not about the subtotals, but rather the grand total. There is no option to show the grand total on top or bottom.

 

image.pngimage.png

@Anonymous I don't think there was an option to move grand total to the top. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi @parry2k ,

 

It is happening anyway. I've made a few screenshots proving it's not the subtotal row, but the grand total that is showing on top.

The problem occurs after applying my custom theme. It shows at the bottom when the default Power BI themes are applied.

 

image.pngimage.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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