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
Chanleakna123
Post Prodigy
Post Prodigy

Get the Latest Result based on Date with the Duplicated Customers

hi , i have below submission result. 

and i would like to see only the last submission if i have duplicated data based on Date , Time ,

So it mean  when i filter any Date , the duplicated Customers show only 1 Customer with the latest submission. 

if i filter any date which is no duplicated customers , show the Customer there. 

 

Capture 1.PNG

1 REPLY 1
ryan_mayu
Super User
Super User

@Chanleakna123 

you can create a new table

new table = 
VAR tbl=SUMMARIZE('Table (3)','Table (3)'[customer code],'Table (3)'[customername],'Table (3)'[submission date],"time",max('Table (3)'[Time]))
return ADDCOLUMNS(tbl,"stock",MINX(FILTER('Table (3)','Table (3)'[Time]=EARLIER([time])&&'Table (3)'[customer code]=EARLIER('Table (3)'[customer code])&&'Table (3)'[submission date]=EARLIER('Table (3)'[submission date])),'Table (3)'[stock]))

1.PNG





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

Proud to be a Super User!




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.