Forum Discussion

RafaelAri's avatar
RafaelAri
Icon for Helper III rankHelper III
2 years ago
Solved

Measure for sum in Clustered column

Hello all,

I have a Clustered Column visual, that display results of up to 3 years (including a slicer to select years).

What is the best way to display the total value, for each category (X-axis item), for selected years?

 

  • Hi,

    Create a Table visual and drag Category there.  Drag the same measure as the one you have dragged to the column chart visual.

4 Replies

  • Hi,

    Create a Table visual and drag Category there.  Drag the same measure as the one you have dragged to the column chart visual.

    • RafaelAri's avatar
      RafaelAri
      Icon for Helper III rankHelper III

      Thanks, very good, but is there a way to display this as an additional column, in the clustered-column chart?

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        You are welcome.  Even if you do that, wouldn't the existing columns become very small because their height will be relative to the Grand total column?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi RafaelAri ,

    Depending on the information you provided, you can follow these steps below:

    1.Add new measure and put it into Card.

    Total value = 
    VAR _selectedyear =SELECTEDVALUE('Table'[Year])
    RETURN
    CALCULATE(SUM('Table'[Sales]),FILTER('Table','Table'[Year]=_selectedyear))

    Final output:

     

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

    If it does not help, please provide more details with your desired out put and pbix file without privacy information.

     

    Best Regards,

    Ada Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.