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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.