Forum Discussion
MTD DAX help
Hello all,
I need some help in figuring out how to incorporate DAX to calculate the full prior months sales on the first workday of a new month. I also need to take into account when a new month starts on a weekend.
Also, is there a way for me to test it out outside of it being the first workday of the month? I missed my opportunity to test this month.
1 Reply
- lbendlinSuper User
"first workday of the month" is highly subjective. You are best served by using a Calendar table that has that information.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523