Forum Discussion

delsner's avatar
delsner
Frequent Visitor
6 years ago
Solved

Different Conditional formatting rules for each value in x-axis

I have a column chart with region on the X-axis (A,B,C,D,E). Each region has a different percent requirement (i.e. A=5%, B=4%, etc). Is there a way to have diverging conditional formatting that is se...
  • AllisonKennedy's avatar
    AllisonKennedy
    6 years ago
    Have you created a relationship between the Target table and the Store or Sales table? If you do this, and the column chart has StoreID on the Axis, then the MAX() part of the formula should find the MAX target% for the selected storeID in the column visual. If you're trying to do this for more than one store at a time, you'll need to create a more complex measure and explain further what you need.

    You should be able to use SELECTEDVALUE(Target[Target]) instead of MAX if that makes more sense.

    If you want to you could build out the DAX further to add some error checking:

    IF(HASONEVALUE(StoreID), Measure)