cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mohammed Member
Member

last order by last date

HI ,

I need Help, i want to create new calculated column  with name last order number to show last order number based on last date if the  id =id  , based on  below  table

idorder number date last  order number
150011/31/2016   450
145012/2/2016450
270010/2/2017700
24009/30/2017700

 

 

Thanks Advanve, 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: last order by last date

@mohammed 

 

One way could be

 

Column =
MAXX (
    TOPN ( 1, FILTER ( Table1, [id] = EARLIER ( [id] ) ), [date ], DESC ),
    [order number ]
)

View solution in original post

2 REPLIES 2
Super User
Super User

Re: last order by last date

@mohammed 

 

One way could be

 

Column =
MAXX (
    TOPN ( 1, FILTER ( Table1, [id] = EARLIER ( [id] ) ), [date ], DESC ),
    [order number ]
)

View solution in original post

mohammed Member
Member

Re: last order by last date

thanks @Zubair_Muhammad   🙂 

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 100 members 1,361 guests
Please welcome our newest community members: