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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

IF column value is true, add a column in the table

Hi all,

 

I have some sanity checks which are orange if there is a mismatch between 2 columns. I would like that, if a sanity check is yellow, then two other columns appear next to it so I can see what the issue is. Also a button to display such columns would be ok

BaronSdG_0-1616002766182.png

 

3 REPLIES 3
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Fair enough, but I said there wasn't enough information provided.  You didn't provide any data and I didn't know that you were setting the color that way. In your reply you've referred to #colorcode in a column, so you have created a column of hex colors? 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @Anonymous 

There's not enough information to give you an answer here.

You can't check the color of a cell in a visual using code so you'd need to check a value in these cells.

If say Orange = 1 and Green = 0 then to create these other 2 columsn you want from the Orange cell, how to know what to put in these columns?

You can't have a button to click that makes these columsn appear.  The columns will be there either with data in or without data.

You could also use a measure ( this is preferable ) rather than use a column.

Please suply some data and examples of the result you expect.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Why I can't check the color of a cell? If I have used the #colorcode as a result and the conditional formatting gives that color, I can reference to it such is if(column="#colorcode ", create and add a column to table, dont create nor add column)

 

Also, I think I found my own solution. If there is no way to do what I said in the first row, I will create a button where every time you toogle it, it will hide the old graph and show another hidden graph with the old columns + the new one of interest

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors