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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Icons can no longer be selected via field value from custom theme

In the latest version 2.114.664.0 64-bit (February 2023) the requirements for importing a custom theme seem to have changed. For icons, the message from power bi reads:

#/icons must be array (type; matching schema #/properties/icons/type)

 

Looking in the schema, the way to resolve this seems to be to change the format from:

"icons": { "IconID": { "description": "IconDescription", "url": ""}}

 

To this:

"icons": [{"description": "IconDescription","url": ""}]

 

 When you try to include the name of the icon, you receive this error message:

#/icons/0 must NOT have additional properties (additionalProperties; matching schema #/definitions/themeIcon/additionalProperties)

 

The issue lies in the fact that the name of the icon is used in conditional formatting to return a specific custom icon for a specific value, based on the field value. This is laid out in your 2019 feature summary https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2019-feature-summary/ (Icon sets for table and matrix)

 

This is a critical issue for our organisation as we are no longer able to update icons centrally, via a custom theme. Instead we will have to manually set up rules assigning each value a specific icon and then if we want to change them, go into every visual on every report where this icon appears, which is many many instances for us.

 

Removing this existing functionality in this update to the icons section of theme seems like a huge step backwards in the power of the themes and I hope that it can be restored so we may continue using the custom themes efficiently.

Status: Delivered

The Product team will release it as part of the March Desktop release.

Comments
v-xiaoyan-msft
Community Support
Status changed to: Accepted

Hi @domfielding ,

 

We see that you are using version 2.114.664.0 64-bit (February 2023) 
Until this issue is fixed, as a workaround, we recommend that you roll back to the previous version.

 

The product team have been aware of the issue and the engineers will do their best to resolve it. I will update here if there is any progress, so please be patient. 

 

Best regards.
Community Support Team_ Caitlyn

v-xiaoyan-msft
Community Support
Status changed to: Delivered

The Product team will release it as part of the March Desktop release.

TonyEv6
Frequent Visitor

The February 2023 release has broken a number of properties - for example "Linear" to "linear". Can you confirm that the March release will roll back on all the changes to how a theme json is parsed in ? 

MarksmanWaugh79
Frequent Visitor

Here's a fix that works for us. Note the icons array [] and the "description" and "url" identifiers.

 

{
   "name":"Theme New",
   "dataColors":[
      "#26272A",
      "#00F96C",
      "#747474"
   ],
   "foreground":"#25272A",
   "background":"#FFFFFF",
   "tableAccent":"#F34FFF",
   "bad":"#ea1d13",
   "neutral":"#fdda00",
   "good":"#103a4c",
   "icons":[
      {
         "description":"macOS",
         "url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAAC....."
      },
      {
         "description":"iOS",
         "url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACq....."
      },
      {
         "description":"Win",
         "url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACq....."
      }
   ]
}