Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Solved! Go to Solution.
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 )
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/
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 )
Awesome! Was able to add the column and filter by date and other desired fields! Thank you both for the replies. Big help!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |