Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Toot tip

i have a select slicer when i select the slicer data will show in card with text format 
example  annual growth in mean rent price 
     Quater growth in mean rent price  
here i need to change the Mean in different colour rest of the text in black colour 
dos it work in power bi 
image is from tablue i want to implement same

 

  • Hi Anonymous,

    Thank you for reaching out to the Microsoft fabric community forum. Thank you Deku, for your inputs on this issue.

    In Power BI, it is currently not possible to change the colour of individual words within a single Card or Text visual. Unlike Tableau, Power BI does not support partial text formatting (such as colouring only the word “mean”) in dynamic text generated by DAX. However, there is a workaround you can use:

    Split the sentence into multiple visuals for example:

    • Visual 1: “Annual growth in” (black)
    • Visual 2: “mean” (blue)
    • Visual 3: “rent price” (black)

    You can align these visuals side-by-side to make them appear as a single sentence. This approach allows you to colour "mean" differently while keeping the rest of the text in black. Additionally, you can use a DAX measure to dynamically update the text based on the slicer selection.

    Kindly please refer to the below links for more information:
    Main sources for acquiring Power BI custom visuals - Power BI | Microsoft Learn
    Create a (new) card visual in Power BI - Power BI | Microsoft Learn

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

    Thank you for using Microsoft Community Forum.

9 Replies

  • Deku's avatar
    Deku
    Super User

    This is not possible

  • v-kpoloju-msft's avatar
    v-kpoloju-msft
    Community Support

    Hi Anonymous,

    Thank you for reaching out to the Microsoft fabric community forum. Thank you Deku, for your inputs on this issue.

    In Power BI, it is currently not possible to change the colour of individual words within a single Card or Text visual. Unlike Tableau, Power BI does not support partial text formatting (such as colouring only the word “mean”) in dynamic text generated by DAX. However, there is a workaround you can use:

    Split the sentence into multiple visuals for example:

    • Visual 1: “Annual growth in” (black)
    • Visual 2: “mean” (blue)
    • Visual 3: “rent price” (black)

    You can align these visuals side-by-side to make them appear as a single sentence. This approach allows you to colour "mean" differently while keeping the rest of the text in black. Additionally, you can use a DAX measure to dynamically update the text based on the slicer selection.

    Kindly please refer to the below links for more information:
    Main sources for acquiring Power BI custom visuals - Power BI | Microsoft Learn
    Create a (new) card visual in Power BI - Power BI | Microsoft Learn

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

    Thank you for using Microsoft Community Forum.

    • v-kpoloju-msft's avatar
      v-kpoloju-msft
      Community Support

      Hi Anonymous,

       

      May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

      Thank you.

       

      • v-kpoloju-msft's avatar
        v-kpoloju-msft
        Community Support

        Hi Anonymous,

        I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
        Thank you.