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

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.

Reply
Anonymous
Not applicable

Tooltip page is losing context, please help

OK - so I have a formula that takes all filtered and shown criteria and ranks the filtered data.  

AS a tooltip this works no problem.  As a report page tooltip this breaks and loses the context of the filtered area.  Please tell me I can do this.

Map is created using Lat and Long - when you hover over, the calculations work in the tooltip section.  But when this same calculation is used on a tooltip page, hovering over the City (in this case) causes the tooltip page to filter down to JUST THAT CITY.  This is why my ranking is breaking.

I have copied over all slicers to the tooltip page, I have synced them, I have tried many things but this does not seem like it's going to work.  Thoughts?  

This is a ranking calculation so it is very important to include any selection of data you want.  So I can't precreate the rank since the rank could change to anything based on whatever your selection is.  

 

In the below picture - the bubble colors are based on Rank or ProdByCity - same calculation copied below.  you can see that there are different colors, but my tooltip only shows RankCity = 1 and ProdbyCity = P...  well that's wrong.

jonathan_2000_0-1678295259829.png

 

I don't think there is anything I need to add to my measure below - like saying "All(this column)" - there are no more "this columns" I can add.  What I am hoping for is something that I can say "remember context" or somehow not filter the page down to just one city on those two measures.

Here is the calculation:

 

 

ColorFilterByCity = 
var _idave = selectedvalue(ProductivityByCity[Avg OF ID City])
var _Cat = ALLSELECTED(Equipment[ProductCategory])
var _mod = ALLSELECTED(Equipment[ProductModel])

var RankbySubcat2 = if(isblank([Wkld - City]),Blank(),
round(CALCULATE(Rankx(
ALLSELECTED(ProductivityByCity)
,[Wkld - City]
,
,Desc
,Skip)
,ALLSELECTED(Equipment)
,ALLSELECTED(ProductivityByCity[Avg OF ID City])

),2))

var mcocount = calculate(calculate(DISTINCTCOUNT(ProductivityByCity[CityState])

,filter(ProductivityByCity,[Wkld - City]<>blank())

,ALLEXCEPT(ProductivityByCity,ProductivityByCity[Avg OF ID City],ProductivityByCity[CityState],ProductivityByCity[EntityState])

,ALLEXCEPT(DistrictMCO,DistrictMCO[MCO],DistrictMCO[District]))


,ALLEXCEPT(ProductivityByCity,ProductivityByCity[Avg OF ID City],ProductivityByCity[CityState],ProductivityByCity[EntityState])

)

Var result = 
round(Divide(RankbySubcat2-1,mcocount),2)
var final = if(isblank([Wkld - City]),Blank(),if(result<=0.2,0.0,if(result<=0.7,0.7,if(result<=1,1)))) -- 3 Layer View

return
final

 

 

 
@amitchandak @Sahir_Maharaj @Greg_Deckler @Padycosmos @lbendlin  - if any of you want a challenge or know the answer 🙂

2 REPLIES 2
lbendlin
Super User
Super User

Please provide a couple of sample locations and their value to be ranked against.

Padycosmos
Solution Sage
Solution Sage

This video might help with regard to the rank being in scope:

https://www.youtube.com/watch?v=y2FFjfRD-Bo

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.