Forum Discussion
Transparent Data Color
- 3 years ago
since there is a bug in the color settings (can't enter a value as long as #FFFFFF00) it can work if you set the value of transparancy as a measure and than select this value using field vaue at the shape background color function as follows:
create a measure :
mask_transparency =IF([Filter_Selected],”#FFFFFF00″,”#FFFFFF”)
set the backgound using the field value :
see also : Control the visibility of the PowerBI visuals based on condition
Hi, benvett14
Please make sure that the field values are listed in the CSS color spec at https://www.w3.org/TR/css-color-3/. These color values can include:
- 3, 6 or 8-digit hex codes, for example #3E4AFF. Make sure you include the # symbol at the start of the code.
- RGB or RGBA values, like RGBA(234, 234, 234, 0.5).
- HSL or HSLA values, like HSLA(123, 75%, 75%, 0.5).
- Color names, such as Green, SkyBlue, or PeachPuff.
Based on my test, it works properly with "#3E4AFF" while it fails with "#FFFFFF00". For further information, you may refer to the document .
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amirshiloh3 years agoAdvocate II
since there is a bug in the color settings (can't enter a value as long as #FFFFFF00) it can work if you set the value of transparancy as a measure and than select this value using field vaue at the shape background color function as follows:
create a measure :
mask_transparency =IF([Filter_Selected],”#FFFFFF00″,”#FFFFFF”)
set the backgound using the field value :
see also : Control the visibility of the PowerBI visuals based on condition