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 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] )
)