Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
RafaelAri
Helper III
Helper III

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?

RafaelAri_0-1710855296379.png

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

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


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

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


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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

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?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
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:

vyifanwmsft_0-1710901198713.png

vyifanwmsft_1-1710901216317.png

 

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.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.