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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
bdpr_95
Helper IV
Helper IV

Stacked Column Chart - Transparency

Does anyone know if it's possible in stacked column charts to make one column have a different level of transparency in terms of colors?

 

bdpr_95_1-1754092402654.png

 

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi  @bdpr_95 

 With the default Power BI UI, it’s not possible to apply different transparency levels to specific parts of a stacked column.

However, you can simulate this using DAX logic. Here's the approach:

Create a separate measure per color using logic like this:

G_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Green")
b_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Blue")
Y_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Yellow")
Transparent = 4 // or dynamic if needed

Create a supporting table for the legend (e.g. using “Enter Data”) with a [Color] column and an [Order] column to control sort order. Do not assign a name to the transparent color so it doesn’t appear in the legend.

 Ritaf1983_1-1754117878243.png

Set the [Color] column to be sorted by [Order].

Ritaf1983_2-1754117951798.png

Build a dynamic measure based on the selected legend item and the X-axis category:

dynamic_m =

var color = SELECTEDVALUE(colors[Color])

RETURN

if (color= "" && max('Table'[value category])= "b",[Tansparent],

SWITCH(color,

"Blue", [b_measure],

"Green" ,[G_measure],

"Yellow" , [Y_measure],

blank()))

Use this dynamic_m measure in a stacked column chart with the Color column from your custom table as the legend. 

Ritaf1983_3-1754118116121.png

You can now set the transparency for the unnamed "transparent" series via the format pane

Ritaf1983_4-1754118195288.png

.Result :

Ritaf1983_6-1754118799386.png

 

The with the example is attached

 

P.S
Important UX note: Stacked charts can already be hard to interpret, especially when segment sizes are close. Adding transparency makes the distinction even less clear. If your visual is used for analytical insights or comparisons, this could reduce its effectiveness.

More on this topic in my blog post here:
https://www.madeiradata.com/post/home-experiments-and-stacked-bar-graphs

If you'd like feedback on your actual business need or logic behind the visual, feel free to open a separate post and we can suggest better alternatives based on that.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

 

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
V-yubandi-msft
Community Support
Community Support

Hi @bdpr_95 ,

Thank you for contacting the Fabric Community. As mentioned by @Ritaf1983 and @rohit1991.  Power BI does not currently allow transparency settings for individual columns or segments in a stacked column chart. Transparency can only be applied at the series level, not to specific bars or data points.

 

The alternatives suggested by Ritaf1983 and rohit1991 are good options to achieve a similar visual effect, so you may want to consider those approaches.

 

Thanks to @Ritaf1983 and @rohit1991  for your helpful responses.

 

Best regards,
Yugandhar

Ritaf1983
Super User
Super User

Hi  @bdpr_95 

 With the default Power BI UI, it’s not possible to apply different transparency levels to specific parts of a stacked column.

However, you can simulate this using DAX logic. Here's the approach:

Create a separate measure per color using logic like this:

G_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Green")
b_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Blue")
Y_measure = CALCULATE(SUM('Table'[value]), 'Table'[color category] = "Yellow")
Transparent = 4 // or dynamic if needed

Create a supporting table for the legend (e.g. using “Enter Data”) with a [Color] column and an [Order] column to control sort order. Do not assign a name to the transparent color so it doesn’t appear in the legend.

 Ritaf1983_1-1754117878243.png

Set the [Color] column to be sorted by [Order].

Ritaf1983_2-1754117951798.png

Build a dynamic measure based on the selected legend item and the X-axis category:

dynamic_m =

var color = SELECTEDVALUE(colors[Color])

RETURN

if (color= "" && max('Table'[value category])= "b",[Tansparent],

SWITCH(color,

"Blue", [b_measure],

"Green" ,[G_measure],

"Yellow" , [Y_measure],

blank()))

Use this dynamic_m measure in a stacked column chart with the Color column from your custom table as the legend. 

Ritaf1983_3-1754118116121.png

You can now set the transparency for the unnamed "transparent" series via the format pane

Ritaf1983_4-1754118195288.png

.Result :

Ritaf1983_6-1754118799386.png

 

The with the example is attached

 

P.S
Important UX note: Stacked charts can already be hard to interpret, especially when segment sizes are close. Adding transparency makes the distinction even less clear. If your visual is used for analytical insights or comparisons, this could reduce its effectiveness.

More on this topic in my blog post here:
https://www.madeiradata.com/post/home-experiments-and-stacked-bar-graphs

If you'd like feedback on your actual business need or logic behind the visual, feel free to open a separate post and we can suggest better alternatives based on that.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

 

 

 

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
rohit1991
Super User
Super User

Hi @bdpr_95 

 

As of now, Power BI doesn’t support setting transparency (opacity) for individual columns or segments within a stacked column chart. Transparency settings apply at the series level (based on legend/category), not per individual bar or data point.

 

There are some workaround as below

  • You can adjust color shades using conditional formatting and Field value logic, but this changes color tone not true transparency.

  • For full control over per-bar opacity, you’d need to use a custom visual like Deneb (Vega-Lite) or Charticulator.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.