cancel
Showing results for
Did you mean:
Frequent Visitor

## Find Latest record

Data looks like below, based on NOs. need output as "latest", "No" with reference Part. Tried below but failed.

REV = MAXX(FILTER(Part_Hist,Part_Hist[REV_NUM]>EARLIER(Part_Hist[REV_NUM])),IF(Part_Hist[Part Name]=EARLIER(Part_Hist[Part Name]),"Yes","No"))

REV = MAXX(FILTER(Table1,Table1[Nos]>EARLIER(Table1[Nos])),IF(Table1[Part]=EARLIER(Table1[Part]),"OLD","Latest"))

1 ACCEPTED SOLUTION
Community Champion

@KL718 Please try this as a New Column

```Remarks =
VAR _Max = CALCULATE(MAX(Test260FlagLatest[Nos]),ALLEXCEPT(Test260FlagLatest,Test260FlagLatest[Part]))
RETURN IF(Test260FlagLatest[Nos]=_Max,"Latest","No")```

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

Proud to be a Super User!

2 REPLIES 2
Community Champion

@KL718 Please try this as a New Column

```Remarks =
VAR _Max = CALCULATE(MAX(Test260FlagLatest[Nos]),ALLEXCEPT(Test260FlagLatest,Test260FlagLatest[Part]))
RETURN IF(Test260FlagLatest[Nos]=_Max,"Latest","No")```

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

Proud to be a Super User!

Frequent Visitor

Thanks & appreciate.

I was also able to find the solution. Sharing another way which can be used to achieve the output.

I wrote DAX>>

max = CALCULATE(MAX(Table1[Nos]),FILTER(Table1,Table1[Part]=EARLIER(Table1[Part])))

Then,

REV1 = IF(Table1[Nos]>=Table1[max],"Latest","Old")

Gives same result.

Announcements

#### Launching new user group features

Learn how to create your own user groups today!