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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Analitika
Post Prodigy
Post Prodigy

DATESMTD('Date'[Date]) wrong subtotal

i have measure 

Fact= 

CALCULATE (
[Fact]
,DATESMTD('Date'[Date])
)
 
but in matrix it show only last month total, how to show sum of all months in matrix?
 
Analitika_0-1610656267151.png

 

2 REPLIES 2
Anonymous
Not applicable

HI @Analitika,

You can take a look at the following blog to know how to use the 'if statement' to check the current row content level, then you can write a special formula as 'lbendlin' mentioned to handle the total level calculations.

Clever Hierarchy Handling in DAX 
Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

Did you mean to use DATESYTD() ?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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