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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ellengrace2293
Frequent Visitor

Create a measure showing the ID matching another measure's result

I've plotted a measure with the max value of each timestep. In the tooltips, I would like to include the ID with the max value (which will likely change for each timestep and as data is filtered). Below shows my line chart and a table with the same data. Let me know if I need to provide more information and thanks for any help.Capture.JPG

 

 

 

1 ACCEPTED SOLUTION

@ellengrace2293,

 

You may refer to the measure below.

Measure =
VAR f =
    MAX ( Table1[flow] )
RETURN
    CALCULATE ( FIRSTNONBLANK ( Table1[ID], 1 ), Table1[flow] = f )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

The easiest way is probably to create a column that ranks each item within the time period, then return the max id for each time period. It is possible to do it all within one measure, however having several nested iterators may get very slow depending on your data.

Thank you for the response! Isn't the value essentially the ranking? I unfortunately can't create new IDs, if that's what you mean. I am fine with the nested iterators, if you don't mind sharing.

@ellengrace2293,

 

You may refer to the measure below.

Measure =
VAR f =
    MAX ( Table1[flow] )
RETURN
    CALCULATE ( FIRSTNONBLANK ( Table1[ID], 1 ), Table1[flow] = f )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors