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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SuzanneSte
Frequent Visitor

Need assistance with MTD calculation

I have been through previous requests, but cannot find an answer I can get to work correctly in those responses. 

I am trying to count the number of events until today, but this is not taking the current date into consideration

Would appreciate any guidance

MTD Start =
    CALCULATE(
        COUNT('events-export'[Invitee Email]),
           DATESMTD('events-export'[Start Date].[Date]), DateTable[Date])
3 REPLIES 3
Anonymous
Not applicable

Hi @SuzanneSte ,

Could you consider providing more context?

How to Get Your Question Answered Quickly

How to provide sample data in the Power BI Forum

 

You may also consider using only the date functions:

MTD Start = 
CALCULATE (
    COUNT ( 'events-export'[Invitee Email] ),
    FILTER (
        'DateTable',
        'DateTable'[Year] = YEAR ( TODAY () )
            && 'DateTable'[Month] = MONTH ( TODAY () )
            && DAY ( 'DateTable'[Date] ) <= DAY ( TODAY () )
    )
)

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

SuzanneSte
Frequent Visitor

I've been through your video, still floundering 😞 

Greg_Deckler
Community Champion
Community Champion

@SuzanneSte This video shows a bunch of different options for this:



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.