Forum Discussion
Anonymous
6 years agoNot applicable
Calculate MTD
Hello, I am new to power bi and facing an issue where I have a table with two columns 1. Effective Date and 2. Quantity, here i have to calculate MTD and show it in a line chart, But the problem is...
amitchandak
6 years agoSuper User
Please check two functions totalmtd and datesmtd
https://docs.microsoft.com/en-us/dax/totalmtd-function-dax
https://docs.microsoft.com/en-us/dax/datesmtd-function-dax
Make sure you create a calendar table and it is marked as the date in the model view
https://docs.microsoft.com/en-us/dax/calendar-function-dax
https://powerbi.tips/2017/11/creating-a-dax-calendar/
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date Filer]))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.