Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi,
I am trying to calculate the sum of sales for current mtd. The formula I am using is below and is working, except for the fact it is pulling sales data from 5/31.
Solved! Go to Solution.
Hi @Libbyb23 - This should give you the correct MTD sales total without including data from previous years or months
Try below logic
Sold =
CALCULATE(
TOTALMTD(
SUM('Sales Data'[sales_price]),
'Sales Data'[invoice_date]
),
FILTER(
ALL('Calendar'),
'Calendar'[Year] = YEAR(TODAY())
)
)
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi!
Thanks for the quick help!
I used the formula you provided and updated Today() to 2024. Today () was still pulling from last year.
Hi!
Thanks for the quick help!
I used the formula you provided and updated Today() to 2024. Today () was still pulling from last year.
Hi @Libbyb23 - This should give you the correct MTD sales total without including data from previous years or months
Try below logic
Sold =
CALCULATE(
TOTALMTD(
SUM('Sales Data'[sales_price]),
'Sales Data'[invoice_date]
),
FILTER(
ALL('Calendar'),
'Calendar'[Year] = YEAR(TODAY())
)
)
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
User | Count |
---|---|
116 | |
73 | |
62 | |
49 | |
47 |
User | Count |
---|---|
173 | |
123 | |
60 | |
59 | |
57 |