Forum Discussion
Transparency changes background color
- 5 years ago
Hi Anonymous
You can create a measure with below code
Measure = "rgba(0, 0, 0,0.5)"Now use it as formula in your background color
Thanks,
Samarth
Can you please explain a bit more with screenshots
in the meantime you can change the transparency of background by going to properties of visual
This two textboxes has the same color, but diffrent Transparency. Changing transparency in a visual changes the color. My issue is that I need to keep the color of my visuals matching but I also need to have Transparency at 50% for one of the visuals.
Maby some one knows how much 1% of transparency changes the color so I can compensat the hex or somthing?
- Samarth_185 years agoCommunity Champion
Hi Anonymous
You can create a measure with below code
Measure = "rgba(0, 0, 0,0.5)"Now use it as formula in your background color
Thanks,
Samarth
- Anonymous5 years agoNot applicable
Intressting, but I don´t understand were/how to use it as a formula in the background color. I´ve tride fx and use the messure there?
- Samarth_185 years agoCommunity Champion
Yes just click on the "FX" of the background option for the visual which you want to change:-
and select measure as field value
Note:- You can pass your RGB color accordingly and for transparency you can pass value at last. Like i have mentioned 0.5 for 50%.
- Anonymous5 years agoNot applicable
Ok Samarth_18 you´r solution works if i add the measure to the dataset that I´m connected to but not if I build the measure in the report.
So my problem are solved, thanks a bunch 👍
- FarhanAhmed5 years agoCommunity Champion
For the testing of how much 1% compensates the RGB for Black(00000), I did test in Mspaint using a color picker for each transparent color..
It increases the value by 2.55 for each red, blue and green. But since you cannot put 2.5 in RGB format so it has to be 3 ,5,8,10 ... 25 for 10% .... and 255 for 100%.
Once you get the RGB Value for your color you can easily convert it to HEXA
RGB to Hex color converter (rapidtables.com)