Forum Discussion

jalenm's avatar
jalenm
New Member
4 years ago
Solved

Change callout value color based on parameter

My question is simple yet I can not find any good help with this problem. I have set a color based on a rule that makes it either green when the value is above 13,000 and red if it is below that. Thi...
  • amitchandak's avatar
    amitchandak
    4 years ago

    jalenm ,

    You can create a measure, There you can use a whatif parameter measure or a meausre

     

    Example

    Meausre = Switch( True() ,

    [Bedrag Running Total Bedrag] < [What if] , "Red",

    [Bedrag Running Total Bedrag] < [What if 2] , "Green" )

     

     

    Use this in conditional formatting using field value option

     

    You can also use min and max value of what if

     

    new measure =
    var _max = maxx(allselected(whatif),whatif[value])
    var _min = minx(allselected(whatif),whatif[value])
    return

    Switch( True() ,

    [Bedrag Running Total Bedrag] <_min , "Red",

    [Bedrag Running Total Bedrag] < _max , "Green" )

     

    https://docs.microsoft.com/en-us/power-bi/desktop-what-if