A query over e-fashion that gets State and Sales Revenue , the requirement is to show these values in a Column chart so that , (if sales revenue]/1,000,000) the bar chart should be red, if the value is between 3 and 7, yellow, otherwise green.

So , this is how thew bar chart should be shown

These can be accomplished by usnig a stacked Columnr chart instead of a simple Column Chart.

Create n measure variables, one for each desired color (in our case will be 3)

[red] = If([Sales Revenue]/1,000,000 < 3;[Sales Revenue])

[yellow] = If([Sales Revenue]/1,000,000 Between(3;7);[Sales Revenue])

[green] = If([Sales Revenue]/1,000,000>7;[Sales Revenue)

Then set your chart to stacked column chart and assign each measure variable as an Value axis.

It will render the chart with the defined pallette. In order to change the color without changing the original pallette, do as follows :