Forum Discussion
Formatting text value within table
- 5 years ago
Remove two of the closing brackets I think.
Assign the same formatting to each column unfortunately. So pick the column and choose the same measure field. A little tedious.
just had a look and it does helps but my knowledge is very limited as I am very new to power bi. Thanks for the reply.
cheers
Can you share the measure you are using that you referred to?
I may be able to help more with a little more detail.
- KNP5 years ago
Super User
What you're looking to do is set the conditional formatting based on your criteria.
If you go into the formatting for the matrix and set the conditional formatting you should be able to get the highlighting you want.
Have a look at this PBIX file. Very basic version of what I believe you're trying to acheive.
https://drive.google.com/file/d/1-7ToZf0rcB4xzI094EFqF_kNt484uFSc/view?usp=sharing
- Anonymous5 years agoNot applicable
Thanks for the advice and just tried and it worked . My goal for the visual is to format different colors based on the letters . for example, if letter is A then format to Orange , if letter is B then format to Blue ?
Thanks
- KNP5 years ago
Super User
So a measure like this...
Colours = VAR v = SELECTEDVALUE ( 'Table'[Column1] ) RETURN SWITCH ( TRUE (), v = "a", "rgba(255,100,10,1)", v = "b", "rgba(10,10,255,1)", v = "g", "rgba(10,255,10,1)", v = "r", "rgba(255,10,10,1)" )Used in conditional formatting...
Can produce what you want.
PBIX attached for your reference.
Hope this helps.