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 th...
  • Deku's avatar
    1 year ago

    This is not possible

  • v-kpoloju-msft's avatar
    1 year ago

    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.