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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Annotating graph with events

I have a graph that's plotted with a Date Table with MMM-YYYY as the x-axis (shown below):

image.png

 

I want to add annotations to it via the tooltips but need some help.

I created another table with events and MMM-YYYY and was wondering whether I can use this table to annotate the graph above.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

We can create a inactive relationship between tables based on _Date table [_Date(months)] and Event table[_Event Date(Month)]. Then we can use the measure as tooltips to work on.

 

tooltip= CALCULATE (MAX(Event table[Event]),userelationship (_Date table [_Date(months)],Event table[_Event Date(Month)]))

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Tried both proposed solutions but neither worked.

 

The events table that I have is an excel spreadsheet with 2 main columns: Event Date and Event.

 

I want to be able to hover over or click on a given month/year in the graph and have some annotation in the tooltips.

 

Here's the date table I have:

image.png

 

And here's the events table:

image.png

 

 

If I were to select/hover over the spike in the orange line right before 2018 (which would be Dec 2017), I want the tooltips to display "Dim Screen"

Hi @Anonymous ,

 

We can create a inactive relationship between tables based on _Date table [_Date(months)] and Event table[_Event Date(Month)]. Then we can use the measure as tooltips to work on.

 

tooltip= CALCULATE (MAX(Event table[Event]),userelationship (_Date table [_Date(months)],Event table[_Event Date(Month)]))

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Sure, you could do something like the following. Obviously I do not know your tables and code but hopefully this gets the idea across.

 

ToolTip Measure = 
VAR __Date = MAX('Date Table'[Date])
RETURN
  CONCANTENATEX(
    FILTER(
      'Events',
      [EventDate] = __Date
    ),
    [Description],
    ","
  )
      

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me.

But if you date table is at date level and you trying to join the data to MMM-YYYY column from another table which data in MMM-YYYY format, that will create Many to Many. Better would be

 

Create date in another table

Date = "01-" & Table[Month Year] // Only if it is in MMM-YYYY format.

Change data type of this as date. And Join using This new date to date table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.