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
Anonymous
Not applicable

How to exclude a data from the chart and table

I have a slicer and associated chart and table. Table consists of employee and their direct manager and regional manager. If I select the one of the direct manager from the slicer, the chart should data of his employees.But currently my chart shows both his and his employee details. How to exclude the direct manager data from the chart/Table.

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

Hi @Anonymous ,

Please have a try.

Flag = if(SELECTEDVALUE('Table'[Employee Name]) in ALLSELECTED('Table'[Direct Manager]),0,1)

Then filter the data.

vpollymsft_0-1645000899477.png

vpollymsft_1-1645000942654.png

Best Regards

Community Support Team _ Polly

 

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

10 REPLIES 10
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please have a try.

Flag = if(SELECTEDVALUE('Table'[Employee Name]) in ALLSELECTED('Table'[Direct Manager]),0,1)

Then filter the data.

vpollymsft_0-1645000899477.png

vpollymsft_1-1645000942654.png

Best Regards

Community Support Team _ Polly

 

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

 

 

VijayP
Super User
Super User

@Anonymous 

then you shuld unselect the regional manager 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

</> Thats not possible, requirement itself is like that, first you need to select RM and then Direct Manager and see the data. Is there any way?

VijayP
Super User
Super User

@Anonymous 

Just Add only employee Data into Table
Add two slicers 1. Direct manager 2. Regional manager

 thats it! 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

</>

but still we need Manager Data into table..as if they select their name indvidually to see the status

VijayP
Super User
Super User

@Anonymous 
I think a sample data will give better idea. Is that Data is in single columns or multiple columns?!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

</>Please find the sample data..

If i select Regional Manager - Chart/Table should show all the employees data reporting to Regional Mangager

Ex: if select Rob - All data related to Direct Manager and Employee should show

If i select any of Direct Manager - say Peter, it should his reportees data only ,it should not show Peter Data

 

SL. NoEmployee NameDirect ManagerRegional ManagerTask Name Start DateCompletion DateStatus
1SamPeterRobDevelopment Review101.01.2131.12.21Complete
2MaryPeterRobDevelopment Review201.01.2231.12.22In Progress
3JuliePeterRobDevelopment Review301.01.2131.12.21Complete
4PeterPeterRobDevelopment Review401.01.2131.12.21Complete
5RobRobRobFinal Review31.12.2131.12.21Complete
6AlexJeffJimTest Review 101.01.2131.12.21Complete
7KarenJeffJimTest Review 201.01.2131.12.22In Progress
8SteveJeffJimTest Review 301.01.2131.12.21Complete
9GeorgeJeffJimTest Review 401.01.2131.12.21Complete
10JimJimJimFinal Test Review31.12.2131.12.21Complete

@Anonymous 
Check this file and let me know if it answers your question. Share your Kudoes




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

</>

When i select Peter, In table/Chart Peter should not come.

Capture.PNG

Anonymous
Not applicable

</> what was done in this? i know its bit tricky..looking at file it looks everything straightforward.

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.