Forum Discussion

Maku12's avatar
Maku12
Frequent Visitor
2 years ago
Solved

Column chart with conditional formatting and positive or negative deviation at the top of the column

 

I have created the following diagram in Excel: It shows the sales budget per month (gray columns) and the respective overrun or underrun of the actual sales figures per month in green or red within the budget columns. The values for budget and variance are also shown. The line corresponds to the previous year.

 

I tried to recreate it in Power BI and created the following diagram.

I need it to show the positive and negative variances at the top of the columns like in the Excel chart (green for positive deviation and red for negative). In addition, only the budget values and the variance values should be displayed (the small triangle is not necessary, the deviations can be shown as values).

I have tried to format the columns conditionally via the format area, but have not found a solution to my problem, because the positive and negative deviation is within one measure, furthermore I haven't found any possibilty to shift the axis so that both deviations are on top of the columns. In order to display the necessary values, I have tried to adjust the labels for the entire data.

When I select the labels for the entire data, only the sales budget and the variance to the sales budget are displayed. However, the problem is that the sales budget adds up with the variance if it is positive. However, I would like to see them displayed separately.

How can I format my columns as required and display the most important values?

7 Replies

  • _AAndrade's avatar
    _AAndrade
    Icon for Resident Rockstar rankResident Rockstar

    Hi,

    I've made a simple example, please check if this is what you're looking for:


    If this solve your problem I can share with you the pbix file.

     

    • _AAndrade's avatar
      _AAndrade
      Icon for Resident Rockstar rankResident Rockstar

      Hi Maku12  did you see my solution? It wasn't what you are looking for?

      • Maku12's avatar
        Maku12
        Frequent Visitor

        Hi _AAndrade
        your solution looks like the graph I'm looking for. Can you please share the pbix file? 
        BR

    • Maku12's avatar
      Maku12
      Frequent Visitor

      Hi qqqqqwwwweeerrr,
      thanks for solution proposal! Unfortunately the line for Sales of the Previous Year ia not shown, although I have selected it.

       

       

      • qqqqqwwwweeerrr's avatar
        qqqqqwwwweeerrr
        Icon for Solution Sage rankSolution Sage

        Hi Maku12 

         

        Line is something not an issue try to create, and use required files in the line filed

        for pervious year i am not sure what eactly the objective is can you please explain? Do you mean in filter if you select 2024 in filter your x-axis should be display month=year for 2023 or soemthing else?

        Regards