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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RafaelAri
Helper I
Helper I

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/
v-yifanw-msft
Community Support
Community Support

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.