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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
gilr1975
Helper I
Helper I

Present a chart only for a specific employee

Hello,

 

I have a table with employees data: Emp.ID, salary, average salary.

Emp.IDSalaryGroup Average Salary 
10012001500
18015001800
23020001700

 

I would like to present a visualization chart with the option to search for a specific "Emp.Id"  and present only its' employee "salary" and "group average salary" NOT within all other employees' data.

 

E.g.

I would like to search for Emp.Id 180

And present a clustered column chart with salary 1500 and average salary 1800:

chart.png

 

How to do it?

1 ACCEPTED SOLUTION
nandukrishnavs
Community Champion
Community Champion

@gilr1975 

 

Use a slicer for searching Emp.ID

 

Then write two measures

Salary=selectedvalue('Table'[Salary])

GroupAvgSalary= selectedvalue('Table'[Group Average Salary])

Use these measures in clustered column chart's values field.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

4 REPLIES 4
nandukrishnavs
Community Champion
Community Champion

@gilr1975 

 

Use a slicer for searching Emp.ID

 

Then write two measures

Salary=selectedvalue('Table'[Salary])

GroupAvgSalary= selectedvalue('Table'[Group Average Salary])

Use these measures in clustered column chart's values field.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

 

Emp.Id - type number.

In slicer, I need to have a search and it works only with text.

Is there an option to use your solution via table and not slicer ?

@nandukrishnavs 

@gilr1975 

 

You can use this slicer for searching a number https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380859?tab=Overview

 


Regards,
Nandu Krishna

Thanks a lot! It worked.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (3,656)