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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
bourne2000
Helper V
Helper V

How to do Month to date calculation ?

Hi

 

I am having date table and man power table. Below is the manpower table snapshot

 

bourne2000_0-1631852988821.png

 

The table has weekly dates (Week ending column)

 

My date table as below

 

bourne2000_1-1631853029375.png

 

I would t calculate the month to date calculation for column called GF (Typical Manpower) in the man power table

 

I used the below dax formula, but it's not working

 

GF MTD = TOTALMTD(SUM(MAN Power([GF (Typical Manpower)), dates('date'))

 

The above formula is not working. My date and man power table connect through date and week ending. Can anyone advise how to calculate the MTD calculation?

 

Here is the sample fil https://we.tl/t-VzCYTQhWl2

1 ACCEPTED SOLUTION

What are you expecting to get?

 

This is what I get if I correct the typos in your measure:

AlexisOlson_0-1631913952927.png

 

GF MTD = TOTALMTD( SUM ( ManPower[GF (Typical Manpower)] ), 'Date'[Date] )

View solution in original post

5 REPLIES 5
v-janeyg-msft
Community Support
Community Support

Hi, @bourne2000 

 

Is your problem solved?

If not, I agree with @AlexisOlson What result do you want? It’s not clear in the sample file, we don’t know what you want.

 

Best Regards,

Community Support Team _ Janey

 

bourne2000
Helper V
Helper V

Hi

 

I am having date table and man power table. Below is the manpower table snapshot

 

bourne2000_0-1631909840910.png

 

 

The table has weekly dates (Week ending column)

 

My date table as below

 

bourne2000_1-1631909841082.png

 

 

I would t calculate the month to date calculation for column called GF (Typical Manpower) in the man power table

 

I used the below dax formula, but it's not working

 

GF MTD = TOTALMTD(SUM(MAN Power([GF (Typical Manpower)), dates('date'))

 

The above formula is not working. My date and man power table connect through date and week ending. Can anyone advise how to calculate the MTD calculation?

 

Here is the sample fil https://we.tl/t-VzCYTQhWl2

What are you expecting to get?

 

This is what I get if I correct the typos in your measure:

AlexisOlson_0-1631913952927.png

 

GF MTD = TOTALMTD( SUM ( ManPower[GF (Typical Manpower)] ), 'Date'[Date] )
amitchandak
Super User
Super User

@bourne2000 , Th formula seems correct. Make sure your dates table is marked as date tbale.

 

As your table is having a week end date.  The data will group in win the month having week end date.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak  Here is the sample pbix file https://we.tl/t-VzCYTQhWl2

 

I marked the date table into date table but no success

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors