Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
From below screenshot how do i get col_orderstatus of max col_orderid number for same col_tnumber
Thanks,
Prathy
Solved! Go to Solution.
Hi @pmadam ,
Please try the below measure, it works on my desktop:
CALCULATE(MAX('Table (5)'[Status]),FILTER('Table (5)','Table (5)'[Orderid] = CALCULATE(MAX('Table (5)'[Orderid]),ALLEXCEPT('Table (5)','Table (5)'[Number]))))
Aiolos Zhao
Hi @pmadam ,
Please try the below measure, it works on my desktop:
CALCULATE(MAX('Table (5)'[Status]),FILTER('Table (5)','Table (5)'[Orderid] = CALCULATE(MAX('Table (5)'[Orderid]),ALLEXCEPT('Table (5)','Table (5)'[Number]))))
Aiolos Zhao
Hi,
Try these measure
max_orderid = calculate(max(data[col_orderid]),allexcept(data,data[col_orderstatus]))
order_status of max order id = if(hasonevalue(data[col_tnumber]),lookupvalue(data[col_orderstatus],data[col_tnumber],values(data[col_tnumber]),data[col_orderid],[max_orderid]),blank())
Drag the second measure to your visual.
Hope this helps.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!