Forum Discussion
techiebee
9 years agoFrequent Visitor
Specify custom month for DATESMTD function in DAX
Hello, Can we mention any random month name in DATESMTD function for which we can calculate total sales? Please suggest. Thanks in Advance.
techiebee
9 years agoFrequent Visitor
Okay thanks.
Just another question:
Will DATESYTD function work in the same way?
I mean if I select May in slicer, then will that give total starting from current fiscal year till May only?
Eric_Zhang
Microsoft Employee
9 years ago
techiebee wrote:
Okay thanks.
Just another question:
Will DATESYTD function work in the same way?
I mean if I select May in slicer, then will that give total starting from current fiscal year till May only?
Slicer is not working that way, though you can use an expression like MAX(dateUsedInSlicer) to get a selected date though. What is the point of the "random" month? You could specify a date range in the slicer and the DATESYTD would work accordingly.