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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
shawncummins
Frequent Visitor

New to Power Bi - Need to add column with date when status changes

Hello,

 

I am trying to track the date when status changes past a certain value. For example, my statuses range from 90-900, I want power bi to calculate the day in a column named "Date Packed" when my status changes above 401. How do I do this? 

shawncummins_0-1681843741484.png

 

1 ACCEPTED SOLUTION

Hi, @shawncummins 


Which of the following is your expected output?

Column = IF([status1]>401,[DATE_TIME_STAMP])

vzhangti_0-1682058910129.png

Measure = CALCULATE(COUNT('Table'[erp_order]),FILTER(ALL('Table'),[status1]>401))

vzhangti_1-1682058937913.png

If neither, please tell us what output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @shawncummins 

 

Can you provide more sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So I am trying to figure out how many units we have packed out. The issue is the status for packing is 400 and 401, and I have statuses that come afterwards. I am just wanting to copy the time stamp and paste in a new column to capture when the order status is greater than 401. You can see below, I have order #, status, and the time stamp. The issue is, the time stamp updates when status changes, so I just want to capture it when the action occurs.

 

 erp_orderstatus1DATE_TIME_STAMP
 269291561003/13/23 5:08 PM
 262511521003/17/23 2:03 PM
 262511521003/17/23 2:03 PM
 262511521003/17/23 2:03 PM
 273962262004/20/23 5:20 PM
 273962262004/20/23 5:20 PM
 273962262004/20/23 5:20 PM
 273962262004/20/23 5:20 PM
 273962262004/20/23 5:20 PM
 273257583004/19/23 5:44 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 273918073004/19/23 7:47 PM
 274695014004/20/23 7:58 PM
 274695014004/20/23 7:58 PM
 274695014004/20/23 7:58 PM
 274695014004/20/23 7:58 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274527494014/20/23 8:03 PM
 274646564014/20/23 7:52 PM
 274597704014/20/23 7:39 PM
 274646564014/20/23 7:52 PM
 274646564014/20/23 7:44 PM
 274597704014/20/23 7:39 PM
 274597704014/20/23 7:39 PM
 274432634014/20/23 7:48 PM
 274432634014/20/23 7:48 PM
 269074706004/19/23 3:49 PM
 269080456004/18/23 4:07 PM
 269080456004/18/23 4:07 PM
 269080456004/18/23 4:07 PM
 269080456004/18/23 4:07 PM
 269080466004/18/23 4:07 PM
 269080466004/18/23 4:07 PM
 269080466004/18/23 4:07 PM
 269080466004/18/23 4:07 PM
 269074756004/18/23 4:17 PM
 241170347009/15/22 4:36 AM
 271803727003/30/23 1:42 PM
 271803727003/30/23 1:42 PM
 271803727003/30/23 1:42 PM
 273248017004/20/23 3:03 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM
 258407009004/6/23 4:58 PM

Hi, @shawncummins 


Which of the following is your expected output?

Column = IF([status1]>401,[DATE_TIME_STAMP])

vzhangti_0-1682058910129.png

Measure = CALCULATE(COUNT('Table'[erp_order]),FILTER(ALL('Table'),[status1]>401))

vzhangti_1-1682058937913.png

If neither, please tell us what output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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