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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jonathansharp
Regular Visitor

Percent change in tool tip

I have a report with a year slicer so different years can be compared, 2019 to 2021 for example.  I wanto see the percent change between the two. I created the below measure and it shows correctly when I place it on the report, but if I put the same measure on the tool tip, then it shows up as 0%. It appears to just be pulling in the most recent year to the tool tip instead of all the selected years. 

 

Any ideas how to make this work?

 

 

2021-12-17_13-56-50.png

 

 

PercChange= 
VAR __PREV_YEAR =
CALCULATE (
            Fact_Lead[Count Lead],
            FILTER (
                Dim_date,
                  Dim_date[year]  =  MIN ( Dim_date[year] )
      ))
RETURN
    DIVIDE (
        CALCULATE (
            Fact_Lead[Count Lead],
            FILTER (
                Dim_date,
                  Dim_date[year]  =  MAX ( Dim_date[year] )
      ))- __PREV_YEAR,
        __PREV_YEAR
    )

 

1 ACCEPTED SOLUTION
jonathansharp
Regular Visitor

I figured out a solution.  Not the most elegant, but gets it done.   I removed the year from the column series and then created two measures to look at leads from the first year and last year like below.   This gets the tool tip to show the change between the two.   The only down side is that now more then two year's can't be viewed at once. 

 

First Year Leads = VAR minyear = Dim_Date[minyear] RETURN CALCULATE(Fact_Lead[Count Lead],Dim_Date[Year] = minyear)

 

2021-12-30_11-07-30.png

View solution in original post

10 REPLIES 10
jonathansharp
Regular Visitor

I figured out a solution.  Not the most elegant, but gets it done.   I removed the year from the column series and then created two measures to look at leads from the first year and last year like below.   This gets the tool tip to show the change between the two.   The only down side is that now more then two year's can't be viewed at once. 

 

First Year Leads = VAR minyear = Dim_Date[minyear] RETURN CALCULATE(Fact_Lead[Count Lead],Dim_Date[Year] = minyear)

 

2021-12-30_11-07-30.png

Anonymous
Not applicable

Hi @jonathansharp 

I tested the scenario you mentioned. In fact, if there is no problem with the data displayed on the card for the measure, then there is no problem with the tooltips. When you use the Tooltips , did you turn on the Keep all filters in Tooltips ?

Ailsamsft_0-1640079040323.pngAilsamsft_1-1640079040326.png

I have attached my pbix file ,you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

I added the Numerator and Denomenator to the tool tip, and it looks like its only being passed one of the years, whichever one I am hovering over.   If I hover over the 2019 bar, then the number switch to match it. 

 

I checked the tool tip page, and it as Keep All Filters turned On. 

 

 

 

 

2021-12-22_09-27-53.png

Ashish_Mathur
Super User
Super User

Hi,

Can you share the download link of your PBI file?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur Here is a link to the file. I won't let me attach it here for some reason.  I am getting this when I try. 

jonathansharp_0-1640289620383.png

 

https://drive.google.com/file/d/1eLAXdSpmBgez7iMs2fyznzvP3ZQ8GtU9/view?usp=sharing

@Anonymous -  I uploaded a copy of my report above.  Do you have any ideas of how to make it pass both the first and second year into the tool tip?

Hi,

I tried but i cannot figure out a solution.  Sorry


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,  I am new to posting thing here so please forgive my ignorance.  How to I share the link while making sure I am not sharing any company data?  Also this PBI is getting its data from a seperate model that you wouldn't have access to, so would you even be able to view anything on the report?

 

Hi,

You will have to anonymise the data and then share it with me.  I am not sure of how much i can help, but i would like to try.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The data source is a tabular model deployed to our Power BI premium workspace.  Would anonymising mean creating a copy of the model within this report but with dummy data? Please forgive my ingnorance, I am just new enough to power bi to be unsure on this point. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors