Forum Discussion

walnei's avatar
walnei
Helper III
10 years ago
Solved

graphic formatting

Hello , could you help me? I would like to make a formatting as follows on the chart.  If the ' 2016 orc ' column is greater than the column ' 2016 Real' column turns red if it is lower is green . D...
  • roeder's avatar
    10 years ago

    Hi... sharing with you my attempt.  This is not really a straight-forward solution, so this is more of a work-around to approximate the visualization preferred.

     

    Basically, I've split the column with preferred conditional formatting (apologies, not sure which column, hence the sample snapshots are for either of the two) into 2 separate columns (or attributes), i.e. with (+) and (-).  And then transformed the dataset using the 'unpivot' facility thereby converting the data-value columns into "attribute" and "value" data fields instead. Then charting them using the stacked columnar visual, with 3 rows set per month (1 row for the conditional columns/attribute, 1 for the fixed column, and 1 as buffer/spacer).  The x-labels though are just plain text-box overriding the otherwise 'non-user-friendly' captions which are 'programmatic' labelling used to effect the grouping of stacked bars per month.

     

    Just in case the sample pbix files are here and here.