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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

CONDITIONAL FORMATING - Is there a way to copy to other columns?

 Hi all,


This morning I was applying some conditional formating to my table and I came up with a doubt.

Is there any way to copy and capy my condition formating to other columns? Imagine I have these 100 columns to apply this same format, so far I need do 1 by 1, unfortunately they are not 1 colum from 1 to 100 but 100 different columns from 1 to 100

MicrosoftTeams-image (2).png

 

Sh00un_0-1649404421942.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Not sure why you have 100 columns, Unpivot in power query can help

 

Create a color measure and use the conditional formatting using field value option

 

example

 

switch(true() ,
max(Table[status]) = "Completed" , "Green",
max(Table[status]) = "Running" , "Grey"
max(Table[status]) = "Errored" , "Red"
)

Switch( True() ,
[Percent] =1 , "Green"
[percent] <.75 , "red",
[percent] <.99 , "Yellow"
)

 

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Not sure why you have 100 columns, Unpivot in power query can help

 

Create a color measure and use the conditional formatting using field value option

 

example

 

switch(true() ,
max(Table[status]) = "Completed" , "Green",
max(Table[status]) = "Running" , "Grey"
max(Table[status]) = "Errored" , "Red"
)

Switch( True() ,
[Percent] =1 , "Green"
[percent] <.75 , "red",
[percent] <.99 , "Yellow"
)

 

 

How to do conditional formatting by measure and apply it on pie? : https://youtu.be/RqBb5eBf_I4

 

 

Anonymous
Not applicable

Really well pointed the unpivot table, in fact its a help for a co-worker so, I`ll apply the unpivot, less painfull but also good tip about the switch for colors.

Thank you very much!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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