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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Super User
Super User

@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
Super User
Super User

@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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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