The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi everyone,
I'm encountering an issue in Power BI and would appreciate your guidance.
I want to create a tooltip with the following:
I disabled "Keep All Filters" and passed Country and Indicator as values in the "Drag tooltips fields here" section.
This approach almost works but results in Blank values instead of the expected data.
The first one would be the value at the current point (for the Country, Indicator and date on which my cursor is)
For the second one, it would be a chart which shows the evolution of this indicator (so for all dates, I should have the same figure, it should take the Country and the indicator as parameter)
Here’s the formula I’m using to handle the blank issue:
How can I modify my approach to correctly capture the data for the current date without losing the filtering for Country and Indicator?
Thanks in advance for your help!
Solved! Go to Solution.
Hi @Anonymous ,
I created a sample pbix file(see the attachment), please check if that is what you want.
1. Create a separate date dimension table
2. Create a measure as below to get the sum of values by date
Measure =
VAR _date =
SELECTEDVALUE ( 'Date'[Date] )
RETURN
CALCULATE (
SUM ( 'Test Main Table'[Value] ),
FILTER ( 'Test Main Table', 'Test Main Table'[Date] = _date ),
REMOVEFILTERS ( 'Date'[Date] )
)
3. Create a tooltip page: Create report tooltip pages in Power BI - Power BI | Microsoft Learn
4. Configure the tooltips settings
Best Regards
I think you’re trying to create a dynamic tooltip in Power BI that shows both the current value and a trend chart for a specific indicator. The challenge you’re facing is maintaining the correct filters while displaying the trend over time.
Please try below steps:
Create a Separate Measure for the Tooltip:
CurrentValue = CALCULATE( [ValueAdj], FILTER( ALL('Test Main Table'), 'Test Main Table'[Date] = SELECTEDVALUE('Test Main Table'[Date]) ) )
Create a Trend Chart Measure:
TrendValue = CALCULATE( [ValueAdj], REMOVEFILTERS('Test Main Table'[Date]) )
Set Up the Tooltip:
Configure the Tooltip:
By using REMOVEFILTERS in the TrendValue measure, you can ensure that the trend chart shows data for all dates while still respecting the Country and Indicator filters. This approach should help you display the correct values without duplicating tables or breaking the filtering.
It is not working
I adapted the current value, to check returned the selected date, but it is returning blank all the time
current
Hi @Anonymous ,
I created a sample pbix file(see the attachment), please check if that is what you want.
1. Create a separate date dimension table
2. Create a measure as below to get the sum of values by date
Measure =
VAR _date =
SELECTEDVALUE ( 'Date'[Date] )
RETURN
CALCULATE (
SUM ( 'Test Main Table'[Value] ),
FILTER ( 'Test Main Table', 'Test Main Table'[Date] = _date ),
REMOVEFILTERS ( 'Date'[Date] )
)
3. Create a tooltip page: Create report tooltip pages in Power BI - Power BI | Microsoft Learn
4. Configure the tooltips settings
Best Regards