Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Font with SWITch measure

Hey guys, 
Ive got the following table using this switch measure : 

MeasureSWTICH = SWITCH(MAX('Skirta Lentelėj'[Type]),"2020 FAKTAS", [2020 FAKTAS],"2019 FAKTAS",[2019 FAKTAS], "2020 PLANAS" , [2020 PLANAS], "POKYTIS NUO 2020 PLANO", FORMAT([Pokytis nuo 2020 plano per mėn], "0.0%") ,"POKYTIS NUO 2019 FAKTO", FORMAT([Pokytis nuo 2019 fakto per mėn], "0.0%"))
Now basically what I need is that the second row " 2020 FAKTAS" to be in BOLD so I could highlight it. Any ideas?
This is basically what I would need: 

 



 

 
 
 
 
 
 
 

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous 

    In addition to  

     

    Conditional formatting options (For Bold)

     

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

3 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    While you can't make it bold, you can use conditional formatting to change the font color and/or the background.  Basically, you can make a second measure similar to the one you've shown that returns "Red", "Green", etc. instead of your measures ([2020 PLANAS], etc.).  You can then use that under conditional formatting on font color or background for all of your fields (so the whole row is changed).

    https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

     

    Regards,

    Pat

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    In addition to  

     

    Conditional formatting options (For Bold)

     

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your problem.

     

    Best Regards,

    Rico Zhou