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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
DLU
Helper I
Helper I

How to find corresponding data that belongs to the outcome of a max function

Dear community, 

 

I have a table with item transactions. This table also contains a column with specifications on what the item was used in. I've added a measure that shows the last outgoing transaction: 

Last date OUT = MAX('INVENTTRANS OUT MERGED'[INVENTTRANS.DATEPHYSICAL])
 
Now I want to add the specification that belongs to that date. I've just simply added that column into my visual. It showed the first, and I've changed it to last, but it seems the outcome is based on alphabetical order in stead of related to the max date. I already tried to solve it by used related but that doesn't seem to work. Here is what my current visual looks like. Does anyone have an idea on how to show the specification based upon that last date OUT?
 
DLU_0-1678275543267.png

 

I appreciate the help!

 

Gr. Diana

1 REPLY 1
amitchandak
Super User
Super User

@DLU , You can use TOPN , TOP 1 or Window for TOP N or Index for topper

 

Dynamic TOPN using TOPN/Window and Numeric parameter: https://youtu.be/vm2mdEioQPQ

Top/Bottom Performer by name and value: https://youtu.be/7O6gHx6Qizw

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.