March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Register NowGet certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hello dear super users
Could I please get some advice for formatting the text values in the table please .
I have created a staff leave report and each letter repressent different leave type, how can i format the letters with different colors ? In the table I have the staff names and the date (only 1-31) as it has a slicer filter out each month.
below is the value area where the letters needs to format with different colors. I have used CONCATENATEX to convert the numbers to the letter as a measure.
Many thanks
Solved! Go to Solution.
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.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
I think I understand what you're wanting to acheive. Check out this and see if you can relate it to what you're trying to do.
https://www.youtube.com/watch?v=SO4mk1H94OA&ab_channel=EnterpriseDNA
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
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.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a 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
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
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
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.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
Hi
Many thanks for that . Have used above code in the measure but got this syntax error
I was trying to change the colors for what I needed for this report , also there are 31 columns and how can i include all of them please .
Thanks
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.
Have I solved your problem? Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;). |
If you found this post helpful, please give Kudos. It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen. If you find my signature vaguely amusing, please give Kudos. | Proud to be a Super User! |
Thank you so much for your help mr. much appreciated.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
Check out the November 2024 Power BI update to learn about new features.
User | Count |
---|---|
118 | |
96 | |
87 | |
71 | |
62 |
User | Count |
---|---|
138 | |
116 | |
114 | |
99 | |
98 |