- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Different colors in a text string
Is it possible to obtain two different colors, or at least change one of them in a concatenated text string?
For example: Days and %KM =
VAR vDIA = SELECTEDVALUE('Calendario'[Día])
VAR KM_RECORRIDO = DIVIDE([KM TOTAL], CALCULATE([KM TOTAL], ALL('KM_MARZO_2024')), 0)
VAR KM_RECORRIDO_PCT = FORMAT(KM_RECORRIDO, "Percent")
RETURN vDIA & UNICHAR(10) & KM_RECORRIDO_PCT
vDIA in one color KM_RECORRIDO_PCT in another color
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of showing the text you can show an SVG image. There you can play with colors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lbendlin ,thanks for the quick reply.
Hi @Dandanpy ,
Regarding your question, after my attempts, Power BI is not able to fulfill your needs for the time being, because the formatting settings take effect for the whole measure.
Perhaps you can split your measure into two separate measure.
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lbendlin ,thanks for the quick reply.
Hi @Dandanpy ,
Regarding your question, after my attempts, Power BI is not able to fulfill your needs for the time being, because the formatting settings take effect for the whole measure.
Perhaps you can split your measure into two separate measure.
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Instead of showing the text you can show an SVG image. There you can play with colors.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
09-20-2024 02:03 AM | |||
12-12-2024 05:43 AM | |||
08-05-2024 03:10 PM | |||
09-11-2024 06:31 AM | |||
10-27-2024 11:49 PM |
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |