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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
KrishnaPrasad23
Regular Visitor

Conditional Formatting while drag and drop the column

Hello,

 

When we drag and drop the column from tables, the conditional formatting will have to work from the Measures or Column value.

Typically, conditional formatting will work when we make the changes by click the conditional formatting – Background color in the column.  Here, the requirement when we use visual tables, it we just drag and drop the column2, when the price is equal to or more than 170 it should be green and below or equals 100 it should be red. Anywhere between 170 to 100 it’s yellow

Please help with this requirement. I tried the switch function, but it’s not changing and manually made me complete when we do conditional formatting from the visual level.

 


ProductColumn2

Apple100
Orange200
Grapes150
Pineapple50
Banana170



Column2 Color =
SWITCH (
    TRUE(),
    SELECTEDVALUE ( 'Table'[Column2] ) < 100, "#FF0000",       -- Red
    SELECTEDVALUE ( 'Table'[Column2]  ) <= 150, "#FFA500",     -- Orange
    "#00B050"                                                    -- Green
)

 

 

KrishnaPrasad23_1-1775643469878.png

 

2 ACCEPTED SOLUTIONS
cengizhanarslan
Super User
Super User

This is not possible in Power BI. There is no mechanism that automatically applies conditional formatting when a column is dragged into a table visual. The "fx" wiring step in the Format pane is always required, and it is a one-time manual setup per column per visual.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

@KrishnaPrasad23 

I don't think you can do that. That's not the correct steps in Powerbi. In Powerbi, 1st drag out the column to the table, 2nd, set the conditional formatting.





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

Proud to be a Super User!




View solution in original post

7 REPLIES 7
v-priyankata
Community Support
Community Support

Hi @KrishnaPrasad23 

Thank you for reaching out to the Microsoft Fabric Forum Community.

@cengizhanarslan @ryan_mayu Thanks for the inputs.

I hope the information provided by users was helpful. If you still have questions, please don't hesitate to reach out to the community.

 

cengizhanarslan
Super User
Super User

This is not possible in Power BI. There is no mechanism that automatically applies conditional formatting when a column is dragged into a table visual. The "fx" wiring step in the Format pane is always required, and it is a one-time manual setup per column per visual.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
ryan_mayu
Super User
Super User

@KrishnaPrasad23 

you can try this

Column2 Color =
VAR v =
    SELECTEDVALUE ( 'Table'[column] )
RETURN
SWITCH (
    TRUE(),
    v <= 100, "#FF0000",   -- Red
    v < 170,  "#FFFF00",   -- Yellow
    "#00B050"              -- Green (>= 170)
)
 
11.png
12.png
 
pls see the attachment below

 





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

Proud to be a Super User!




Hello @ryan_mayu,
Good day!!!

Thank you for the dax!!!
Once we created the dax we go to conditional formatting and selecting the fields to change the colors of the background. 
Here the requirement is, when we drag the column the color should be available. We dont need to make the background changes by selecting the field. 
can you help on this.

does that mean you will change the column to other columns?

I think we build the table first, then set up the conditional formatting. If you didn't drag out the column , I don't think we can set up the conditional formatting.

If I misunderstood, pls clarify your requirements and update the expected output.





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

Proud to be a Super User!




hi @ryan_mayu 

 

 We are creating the table 1st, then we have the column in the table. When we directly drag and drop the data in the table visual, it has to show the conditional formatting color. 
Usually, when we drag and drop into the visual from the column, we will go to conditional formatting and make the changes as per field. Here, directly when we drag and drop the column in the visual, the color must automatically change without changing anything from conditional formatting. Can we able to do with any DAX? 

@KrishnaPrasad23 

I don't think you can do that. That's not the correct steps in Powerbi. In Powerbi, 1st drag out the column to the table, 2nd, set the conditional formatting.





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

Proud to be a Super User!




Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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