Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

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 DataSample Data

 

 

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
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
            )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
blopez11
Resident Rockstar
Resident Rockstar

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/

 

Phil_Seamark
Employee
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
            )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Awesome! Was able to add the column and filter by date and other desired fields! Thank you both for the replies. Big help! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.