Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Change chart X axis formatting with measure

 
Hi all

 

I am trying to change some of the data to colour 1 and other to colour 2 with measure

 
Bar color =
SWITCH( TRUE(),
    CONTAINSSTRING( SELECTEDVALUE( 'Data'[PLACE] ), "EUROPE" ), "Red",
    CONTAINSSTRING( SELECTEDVALUE( 'Data'[PLACE] ), "AMERICA" ), "Green",
   BLANK()
   )
 
when used on columns it is working just fine, but when applied to x axis values nothing is changing

2 Replies