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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Transparency changes background color

Hi All

 

I need to have the background of a visual 50% transparent this changes the color so that it doesn´t mach the other visuals.

 

Does anyone know if there is a way to sort this out?

 

/Måns

1 ACCEPTED SOLUTION

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

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

12 REPLIES 12
FarhanAhmed
Community Champion
Community Champion

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

 

FarhanAhmed_1-1630303156583.png

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Anonymous
Not applicable

color.PNG

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? 

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)

 

 

 

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




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

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not 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 👍

Anonymous
Not 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? 

Yes just click on the "FX" of the background option for the visual which you want to change:-

image.png

and select measure as field value

image.png

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%.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

I clearly I´m missing something, can´t hit ok here. meassure is exat copy of yours.

color.PNG 

Click on "TEST color " then click "OK"

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Well I´m not that inept, 😂

Clicking "TEST color" is not possible.

Looking att you screenshoot Your´s just say Color over "format by"
My says Color - Background 

 

Maby I´m in the wrong place?

I clicked fx under background for visual

color.PNG

You are changing background of text box right?if yes then it will work there also.

Can you please share PBIX after removing sensitive data?

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Ok, I´m in direct querry for this one so I can´t . But when I tested it in an import repport you´re trick works like a charm.

Maby it´s the direct querry that´s spoiling the fun, I´ll look in to that and get back.
By the way @Samarth_18 thanks for all the help 🙏

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors