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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Matt_JEM
Helper I
Helper I

Find last transaction date

Good day All.

 

I am new to PowerBi and I apologise if this question have been answered before.

 

How do I create a new colomn with the date where nn is MAX when the date for both transaction dates is the same. It must return a BLANK where nn is MIN when the dates are the same.

 

For the data table below I only expect the date in a new column for where nn= 26 , where ss =19 it must return a blank date.

 

I am trynig to find the absolute last transaction date and time when a stockcode is moved from one warehouse to another. The time stamps from Syspto ERP is hh,mm,ss,nn and PowerBi use hh,mm,ss which result in 2 transactions with exactly the same date and time stamp. Because of this I can not dtermine which is the abolute last transaction. I have filtered out the dates in a column that is the last date and time as per the PowerBi date and time format as below. The NN column is the value of the nn in the Sypro time format hh,mm,ss,nn

Please also see 

https://community.fabric.microsoft.com/t5/Desktop/Tracking-stock-in-different-warehouses/m-p/4274530...

 

 

StockCodeYearMonthDaynn
F00007-INC001-A01-L00-T032024October2551
F00007-INC001-A01-L00-T07   16
F00007-INC001-A01-L00-T07   21
F00007-INC001-A01-L00-T07   24
F00007-INC001-A01-L00-T07   28
F00007-INC001-A01-L00-T07   66
F00007-INC001-A01-L00-T07   71
F00007-INC001-A01-L00-T07   74
F00007-INC001-A01-L00-T07   77
F00007-INC001-A01-L00-T07   84
F00007-INC001-A01-L00-T07   92
F00007-INC001-A01-L00-T07   98
F00007-INC001-A01-L00-T072024November719
F00007-INC001-A01-L00-T072024November726

 

I thank you in advance for your help.

 

Matt

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Matt_JEM In PQ, convert the incoming data to absolute milliseconds in a separate column and then you will have what you need.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Matt_JEM In PQ, convert the incoming data to absolute milliseconds in a separate column and then you will have what you need.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.