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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I currently have this statement:
Top IFD Store Current IFD =
var
rankcontext = values('All Open Retail Locations'[Division-Store])
return
calculate( [Current IFD],
topn(1, all('All Open Retail Locations'[Division-Store]), [Current IFD] ),
rankcontext )
It is returning the [Current IFD]. I need it to return the [Division-Store]. I am trying to create a table that shows the top store for each district. My table will look like this, excepet it will only display one store per district not all the stores in all districts.
@A_Scott , try like
maxx(topn(1, all('All Open Retail Locations'[Division-Store]), [Current IFD] ),'All Open Retail Locations'[Division-Store])
Also, consider index function
Power BI Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U