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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
mvbonne
New Member

Conditional field value does not work

Hi

 

After the lastest update of Power BI in november, i can no longer chose any column which i want to format my measure on.

It shows red right from the begining even tho i havent chosen anything.
Could there be some settings which is disabled or what is wrong?

image.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mvbonne ,

 

Also, still controlled by measure, you can check the following:

vtianyichmsft_0-1707118232593.png

StatusColor = var _t = ADDCOLUMNS('Table',"rank",RANKX(FILTER(ALL('Table'),[Desc]=1),[Value],,DESC,Skip))
RETURN MAXX(_t,[rank])

Measure = IF(MAX('Table'[Desc]) = 1,SWITCH([StatusColor],1,"blue",2,"red",3,"yellow"))

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @mvbonne ,

 

You need a color selection measure and you can check the results as follows:

vtianyichmsft_0-1707111599338.png

StatusColor = SWITCH(TRUE(),MAX('Table'[Value])>50,"blue",MAX('Table'[Value])<40,"red")

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

What if i also need to change background on the first column (which is in my case is the account name).
Somehow it does not work on a specific dataset, but the function works in others dataset.

Anonymous
Not applicable

Hi @mvbonne ,

 

Adding different condition formats for different fields, which also still has some limitations, you can refer to:Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Yes that i am aware of.

I try to chose a conditional formating on a column which is in the same tabel.

For example i want to have a different background color for the cash flow header here and there is another column what is 1 for these name which i what to format.image.png

Anonymous
Not applicable

Hi @mvbonne ,

 

Also, still controlled by measure, you can check the following:

vtianyichmsft_0-1707118232593.png

StatusColor = var _t = ADDCOLUMNS('Table',"rank",RANKX(FILTER(ALL('Table'),[Desc]=1),[Value],,DESC,Skip))
RETURN MAXX(_t,[rank])

Measure = IF(MAX('Table'[Desc]) = 1,SWITCH([StatusColor],1,"blue",2,"red",3,"yellow"))

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Daniel29195
Super User
Super User

@mvbonne 

 

i didnt encounter this in the november update. 

 

try updating to the december 2023 release . and check if the bug exists. 

 

https://www.microsoft.com/en-us/download/details.aspx?id=58494

 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

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.