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
I have a geography lookup table, date table and a fact table. I have a rank of sales, and I want to retrieve the location of the next store up in the rankings. I have created a measure that retrieves the sales amount of the next store up, but I can't get the location to work. DAX for value is below:
Solved! Go to Solution.
@NPIV5 , Like ?
location of Rank Above =
VAR index = [Rank] - 1
RETURN
CALCULATE (
Max( FACT[Location] ),
FILTER ( ALL (geo), index = [Rank] )
)
or
location of Rank Above =
VAR index = [Rank] - 1
RETURN
CALCULATE (
Max( geo[Location] ),
FILTER ( ALL (geo), index = [Rank] )
)
@NPIV5 , Like ?
location of Rank Above =
VAR index = [Rank] - 1
RETURN
CALCULATE (
Max( FACT[Location] ),
FILTER ( ALL (geo), index = [Rank] )
)
or
location of Rank Above =
VAR index = [Rank] - 1
RETURN
CALCULATE (
Max( geo[Location] ),
FILTER ( ALL (geo), index = [Rank] )
)
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!