PowerBI-tips / tools

General Repo for tracking features, issues and bugs related to the tools developed by PowerBI.tips
3 stars 0 forks source link

Unable to set properties on filter cards #29

Open mpcarter opened 7 months ago

mpcarter commented 7 months ago

Setting properties either at global or page settings for Filter cards has no effect.

There appears to be two different state options in Power BI for filter cards: Applied and Available (or Default). This allows for applying a different format for used vs unused filter cards on the report.

image

image

The Filter card options in theme generator do not have an option for these two different states.

MikeCarlo commented 7 months ago

We will have to look into this as a new feature today we are not using or have UI for the ability to set the different states of things. We will look into adding this into the back log.

harley-mckee commented 3 months ago

Also having this issue, thanks for investigating @MikeCarlo. Similarly, PBI.tips overrides the correct Filter Card JSON needed to adjust filter background colors and font type. So, when I build the correct JSON for filter cards specifically in the native Power BI theme editor, and then stitch it into the PBI.tips JSON, it removes the code I added as soon as I click "OK" in the custom JSON editor within tips. Cheers to your great tool otherwise!

Here is the code that keeps getting chopped out by tips:

        "filterCard": [
          {
            "$id": "Available",
            "foregroundColor": { "solid": { "color": "#5B645F" } },
            "backgroundColor": { "solid": { "color": "#F7F7F7" } },
            "fontFamily": "Arial"
          },
          {
            "$id": "Applied",
            "backgroundColor": { "solid": { "color": "#F0F0F0" } },
            "foregroundColor": { "solid": { "color": "#5B645F" } },
            "fontFamily": "Arial",
            "transparency": 0
          }
        ],