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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

When a value in a column changes to 0 i need the date it was changed to timestamp in another column?

Hi All,

 

I have created a delivery schedule tab and need to have a column within my table visulisation named "Date Changed"

 

My data is sourced from SAP and sometimes the delivery date from the vendor is not when the item actually gets delivered. To work this out there is another column named "Still to be delivered" which is either a value of 1 (still to be delivered) or 0 (been delivered).

 

When the "Still to be delivered" column changes to 0, i need it to display the date this occured in another column when i refresh the data set.

 

For example if Item 1 changes to 0 in the "still to be delivered" column on the 30/08/23, i need this date to be time stamped in the new "date changed" column. I need this date to be static so when i refresh the data the next day it still displays 30/08/23 not 31/08/23

 

Any help on this query? 

4 REPLIES 4
danextian
Super User
Super User

Hi @Anonymous 

 

I used to work for a company that used SAP and, for the most part of it, an audit trail was kept within the ERP system itself. If you're connecting directly to SAP, isn't there such a table available when you connect to SAP? If  there isn't, you might want to speak with the developer to have that added. Otherwise, you might have to do it the manual way.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
cassidy
Power Participant
Power Participant

I don't know that you can pull off the storing of the original Date in BI.

 

The simplest/manual way would be to record your original Date in an Excel Worksheet as a data source for your BI report, so that when you refresh, while your SAP Date field may update, your Excel Date field will act as the static original. 

 

You could also probably do it with a SQL procedure that adds to a Table as an automated solution.

Anonymous
Not applicable

Yeah i'm really trying to avoid the manual process and try to find a solution that creates a new column within a DAX query. I'm sure there is a way out there! 

I don't see how that would work as your Source data is being changed, the historical record is lost.  I don't know of a way for DAX to Write data to a table which is what you need.

 

I agree with @danextian that the Source should be where the static column is added.  Or create your own static Source as a SQL table

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors