Forum Discussion

abukapsoun's avatar
abukapsoun
Post Patron
5 years ago
Solved

highlight cell value based on color

Hi    I have a table as visual in powerBI. i would like to apply some colors if a cell value in a certain column equals to something. for example if cell value = 2 then highglihgt the cell with re...
  • nandukrishnavs's avatar
    5 years ago

    abukapsoun 

     

    You have to create a measure and use that measure in the field format option.

     

    Example:

    DAX measure

    Color = 
    var _cellvalue= SELECTEDVALUE('Table'[LastTransaction])
    var _color= IF(_cellvalue="No","#198c19","#a500ff")
    return _color

     

     

    Attaching the pbix file for your reference.