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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Puja_Kumari25
Helper III
Helper III

Get details when click on the line chart

Hi All, 

I need your help on, how to get details in a table when we click on Line chart.

I am generating a line chart graph for the resource count monthly using the start date and End date, and when we click on the data marker it needs to show their details in the table

resource table
id, start date, end date, resouce_name
1,1/1/2022,1/1/2023, Ram
2,1/1/2022,1/8/2023, Riya


Number of Resources Present =
VAR EndDatePerVisual = MAX('Calendar'[Date])
VAR StartDatePerVisual = Min('Calendar'[Date])
VAR RESULT =
CALCULATE(
[Number of Resource],--(count dax to count no of resources)
REMOVEFILTERS('Calendar'),
resourcetable[Start_Date] <= EndDatePerVisual,
resourcetable[Ending_Date] >= StartDatePerVisual
||
ISBLANK( resourcetable[Ending_Date])
)
RETURN
RESULT

line chart is working fine but not able to fetch resource details.

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Puja_Kumari25 ,

 

Tooltips are an elegant way of providing more contextual information and detail to data points on a visual. 

You can add the cost to Tooltips:

vjianbolimsft_0-1669015761347.png

Output:

vjianbolimsft_1-1669015807743.png

 

For more details, please refer to:

Customizing tooltips in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @Puja_Kumari25 ,

 

Tooltips are an elegant way of providing more contextual information and detail to data points on a visual. 

You can add the cost to Tooltips:

vjianbolimsft_0-1669015761347.png

Output:

vjianbolimsft_1-1669015807743.png

 

For more details, please refer to:

Customizing tooltips in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for the help

Puja_Kumari25
Helper III
Helper III

@Puja_Kumari25 

 

The model in the file is not the same as the code depicts. Your code above refers to some Calendar table which is not present in the file. Why have you removed it from the sample file? This does not make things easier because now I don't know what the relationships are between tables...

daXtreme
Solution Sage
Solution Sage

Please supply sample data to play with. You can paste a link to a file on a shared drive (OneDrive, Google...). Don't forget to grant public access rights to the file.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.