Forum Discussion
Total Completed Orders
Hello,
I have a bit of an issue I'm not quite sure how to handle. I have a table that has Order # / Order Description / Created Date and Completed Date. The problem, is I need to be able to accurately calculate the # of completed orders per month, as I'm filtering by different things such as date, or plant or customer etc. Below is a small sample of my data. How do I accurately capture the number of completed orders in a given year and month, when the completed date might fall in the next month or two months down the road? Order # 18248 for example ...
Thanks in advance!
Sample data:
Sample Data
Hi Anonymous
One approach is to add the following calculated column to your table.
This will bucket each order into a month. If you use this new column on the axis of a visual, you can then drop a Count of Orders measure into the values to give you an accurate picture.
CompletedMonth = DATE( YEAR('Table'[CompletedDate]) , MONTH('Table'[CompletedDate]) , 1 )
3 Replies
- Phil_SeamarkMicrosoft Employee
Hi Anonymous
One approach is to add the following calculated column to your table.
This will bucket each order into a month. If you use this new column on the axis of a visual, you can then drop a Count of Orders measure into the values to give you an accurate picture.
CompletedMonth = DATE( YEAR('Table'[CompletedDate]) , MONTH('Table'[CompletedDate]) , 1 )- AnonymousNot applicable
Awesome! Was able to add the column and filter by date and other desired fields! Thank you both for the replies. Big help!
- blopez11Super User
This article should be able to give you what you want, specifically the "Shipped Orders" measure
Hope this helps,
https://www.sqlbi.com/articles/analyzing-events-with-a-duration-in-dax/