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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
itsmebvk
Continued Contributor
Continued Contributor

How to Enable Visual Title Using Power BI JSON Themes?

 

Hi Experts,

 

While I am creating Power BI report template using JSON everything seems to be working except report title.  In JSON I have enabled "Report Title" property, whenever my users import this JSON they should see a message in visual title saying "Enter Title". However when I import this theme, until I go to properties and enter some text in visual title, visual is not showing any title.

 

Can you please look at the below script and correct my mistake.

 

Thank you.

 

 

itsmebvamsi_1-1665988379907.png

 

 

{
  "name": "Custom",
  "dataColors": [
    "#006666",
    "#008060",
    "#56BAA4",
    "#ED2525",
    "#DB042C",
    "#FF8526",
    "#8D175F",
    "#008AC2",
    "#4CC6D9",
    "#F7C233",
    "#A3CC82",
    "#A0DFEF",
    "#DDB6C1",
    "#EFEFEF"
  ],
  "visualStyles": {
    "*": {
      "*": {
        "title": [
          {
            "Show": true,
			"titleText": "Enter Title",
            "alignment": "center",
            "fontColor": { "solid": { "color": "#FFFFFF" } },
            "background": { "solid": { "color": "#006666" } },
            "fontSize": 14,
            "fontFamily": "Segoe (Bold)"
          }
        ]

      }
    },

    "tableEx": {
      "*": {
        "columnHeaders": [
          {
            "backColor": { "solid": { "color": "#404E4D" } },
            "fontColor": { "solid": { "color": "#FFFFFF" } },
            "alignment": "Center",
            "fontFamily": "Calibri",
            "fontSize": 10
          }
        ],
		 "border": [
          {
            "show": true,
            "radius": 5
          }
        ]

      }
    }


  }

} 

 

 

itsmebvamsi_0-1665988369430.png

 

1 ACCEPTED SOLUTION
itsmebvk
Continued Contributor
Continued Contributor

I think I  got answer to my question. I need to correct property name. Instead of using "text" as property name I was using "titletext" as property name. After correcting this property it worked. For others reference attached correct JSON card code.

 

 

 

"title": [{
					"show": true,
					"text":  "Enter Title Using Title Property",
					"alignment": "center",
					"fontColor": { "solid": { "color": "#FFFFFF" } },
					"background": { "solid": { "color": "#006666" } },
					"fontSize": 14,
					"fontFamily": "Segoe UI Bold"
				}]

 

Regards

bvk

View solution in original post

2 REPLIES 2
itsmebvk
Continued Contributor
Continued Contributor

I think I  got answer to my question. I need to correct property name. Instead of using "text" as property name I was using "titletext" as property name. After correcting this property it worked. For others reference attached correct JSON card code.

 

 

 

"title": [{
					"show": true,
					"text":  "Enter Title Using Title Property",
					"alignment": "center",
					"fontColor": { "solid": { "color": "#FFFFFF" } },
					"background": { "solid": { "color": "#006666" } },
					"fontSize": 14,
					"fontFamily": "Segoe UI Bold"
				}]

 

Regards

bvk

v-yadongf-msft
Community Support
Community Support

Hi @itsmebvk ,

 

You can customize and standardize nearly all the elements that are listed in the Format section of the Visualizations pane, either through customizations made directly in Power BI Desktop, or through a report theme JSON file. Please refer to:Use report themes in Power BI Desktop - Power BI | Microsoft Learn

 

Best regards,

Yadong Fang

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors