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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
prateekraina
Memorable Member
Memorable Member

Show Total in Stacked column chart

Hi Everyone,

 

Please look into the issue i have been facing below and help:

I have two tables with data as follows:

Q1.PNGQ2.PNGQ3.PNG

I have created a mesaure which calculates Total consumption by month so that i can put it in "Tooltips" of Stacked column chart to show totals across month.

Q4.PNG

Below is the dax used:

TotalByMOnth = SUMX(SUMMARIZE('Month','Month'[MONTH],"Total",
CALCULATE(SUM(ConsumptionFact[Consumption]))),[Total])


I am not able to get desired result. Can anyone suggest any fix in the DAX used?

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Thanks for trying buddy. It did not give the desired result though.

I found the hint of solution by using Quick Measures option. The requried DAX is

TotalByMonth = 
CALCULATE(SUM('ConsumptionFact'[Consumption]), ALLSELECTED(ConsumptionFact[Meter]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Would this work for you?

 

TotalByMOnth = TOTALMTD(
	SUM(ConsumptionFact[Consumption]),	
	ConsumptionFact[Dates]
)

Hi @Anonymous,

 

Thanks for trying buddy. It did not give the desired result though.

I found the hint of solution by using Quick Measures option. The requried DAX is

TotalByMonth = 
CALCULATE(SUM('ConsumptionFact'[Consumption]), ALLSELECTED(ConsumptionFact[Meter]))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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