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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

JSON file to control visual headers

Hi there,

Is there a way to control with JSON theme file what will be default option in visual header?

I am interested to see only "Focus mode icon"

 

 

2020-03-25 16_45_45-_Untitled - Notepad.png

 

 

So as desired outcome i would like to see this for each new visual i put on report

2020-03-25 16_50_08-test 2 - Power BI Desktop.png

 

 
1 ACCEPTED SOLUTION

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Report-Theme-font-color-relative-slicer/td-p/768340

 

Community Support Team _ Sam Zha
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

6 REPLIES 6
HashamNiaz
Solution Sage
Solution Sage

Hi !

You can either hide the [Visual Header] completely or it will be available throughout. Curretly it's not possible to only show [Focus Mode] option & hide other options.

Regards,

Anonymous
Not applicable

@HashamNiaz 

Thanks for prompt reply. Do you maybe know where i can find some info regarding this. eg which setting is supported to be changed via JSON and which is not?

I would like to close to the topic so i can incorporate this in my company as soon as it becomes avaialble.

@Anonymous 

 

You may take a look at the post below.

https://community.powerbi.com/t5/Desktop/Report-Theme-font-color-relative-slicer/td-p/768340

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

thanks @v-chuncz-msft 

This was exactly what i was needed

Anonymous
Not applicable

If there is anyone with same request, this will help

 

{
   "name":"Test",
   "visualStyles":{
      "*":{
         "*":{
            "visualHeader":[
               {
                  "show":true,
				  "showFilterRestatementButton":false,
				  "showOptionsMenu":false,
				  "showSeeDataLayoutToggleButton":false,
				  "showPinButton":false,
				  "showDrillDownExpandButton":false,
				  "showDrillDownLevelButton":false,
				  "showDrillToggleButton":false,
				  "showDrillUpButton":false,
				  "showDrillRoleSelector":false,
				  "showVisualErrorButton":false,
				  "showVisualWarningButton":false,
				  "showVisualInformationButton":false
               }
            ]
         }
      }
   }
}

This is the correct response to the original question. I will also add you can adjust the focus mode button with the following attribute

"showFocusModeButton":false

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.