Forum Discussion
ContabilidadBI
9 years agoHelper III
Problem with DATESMTD
Hello guys, I am new to power BI and I have been struggling to make a simple month to date sales card for a few hours. Here is the formula: MTD de Total = CALCULATE(SUM(Albaranes[Total]);DATE...
- Anonymous9 years ago
Your english is great!
*if* you calendar stopped at the end of May... this would work fine.
Ignoring that, you can add a calc column on your calendar table:
IsCurrentMonth = IF (MONTH(TODAY()) = MONTH(MyCalendar[Date]), TRUE(), FALSE())
Then set a filter on the card visual to IsCurrentMonth = TRUE ?
Anonymous
9 years agoNot applicable
Actually... In case we are lucky... I assume your calendar table is going "into the future" -- it doesn't stop at THIS month. Could that be changed? In which case... your current MTD would magically work?
ContabilidadBI
9 years agoHelper III
Thanks Scottsen, don't really understand your last reply. My Calendar table goes until 12/31/2017 so until the end of the year.
English is not my first language.